Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/klass.hpp @ 18058:54bc75c144b0
Merge
author | asaha |
---|---|
date | Thu, 29 May 2014 13:14:25 -0700 |
parents | 096a7e12d63f 386dd1c71858 |
children | eaf39a954227 8cb56c8cb30d |
comparison
equal
deleted
inserted
replaced
18055:1fa005fb28f5 | 18058:54bc75c144b0 |
---|---|
181 Klass(); | 181 Klass(); |
182 | 182 |
183 void* operator new(size_t size, ClassLoaderData* loader_data, size_t word_size, TRAPS) throw(); | 183 void* operator new(size_t size, ClassLoaderData* loader_data, size_t word_size, TRAPS) throw(); |
184 | 184 |
185 public: | 185 public: |
186 enum MethodLookupMode { normal, skip_overpass, skip_defaults }; | |
187 | |
186 bool is_klass() const volatile { return true; } | 188 bool is_klass() const volatile { return true; } |
187 | 189 |
188 // super | 190 // super |
189 Klass* super() const { return _super; } | 191 Klass* super() const { return _super; } |
190 void set_super(Klass* k) { _super = k; } | 192 void set_super(Klass* k) { _super = k; } |
421 // initializes the klass | 423 // initializes the klass |
422 virtual void initialize(TRAPS); | 424 virtual void initialize(TRAPS); |
423 // lookup operation for MethodLookupCache | 425 // lookup operation for MethodLookupCache |
424 friend class MethodLookupCache; | 426 friend class MethodLookupCache; |
425 virtual Klass* find_field(Symbol* name, Symbol* signature, fieldDescriptor* fd) const; | 427 virtual Klass* find_field(Symbol* name, Symbol* signature, fieldDescriptor* fd) const; |
426 virtual Method* uncached_lookup_method(Symbol* name, Symbol* signature) const; | 428 virtual Method* uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const; |
427 public: | 429 public: |
428 Method* lookup_method(Symbol* name, Symbol* signature) const { | 430 Method* lookup_method(Symbol* name, Symbol* signature) const { |
429 return uncached_lookup_method(name, signature); | 431 return uncached_lookup_method(name, signature, normal); |
430 } | 432 } |
431 | 433 |
432 // array class with specific rank | 434 // array class with specific rank |
433 Klass* array_klass(int rank, TRAPS) { return array_klass_impl(false, rank, THREAD); } | 435 Klass* array_klass(int rank, TRAPS) { return array_klass_impl(false, rank, THREAD); } |
434 | 436 |
695 virtual void oop_print_on (oop obj, outputStream* st); | 697 virtual void oop_print_on (oop obj, outputStream* st); |
696 | 698 |
697 virtual const char* internal_name() const = 0; | 699 virtual const char* internal_name() const = 0; |
698 | 700 |
699 // Verification | 701 // Verification |
700 virtual void verify_on(outputStream* st, bool check_dictionary); | 702 virtual void verify_on(outputStream* st); |
701 void verify(bool check_dictionary = true) { verify_on(tty, check_dictionary); } | 703 void verify() { verify_on(tty); } |
702 | 704 |
703 #ifndef PRODUCT | 705 #ifndef PRODUCT |
704 bool verify_vtable_index(int index); | 706 bool verify_vtable_index(int index); |
705 bool verify_itable_index(int index); | 707 bool verify_itable_index(int index); |
706 #endif | 708 #endif |