Mercurial > hg > graal-compiler
comparison src/share/vm/oops/klass.hpp @ 10408:836a62f43af9
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 19 Jun 2013 10:45:56 +0200 |
parents | ab85c49630e2 6bd680e9ea35 |
children | 6b0fd0964b87 |
comparison
equal
deleted
inserted
replaced
10086:e0fb8a213650 | 10408:836a62f43af9 |
---|---|
396 } | 396 } |
397 #endif | 397 #endif |
398 | 398 |
399 // vtables | 399 // vtables |
400 virtual klassVtable* vtable() const { return NULL; } | 400 virtual klassVtable* vtable() const { return NULL; } |
401 virtual int vtable_length() const { return 0; } | |
401 | 402 |
402 // subclass check | 403 // subclass check |
403 bool is_subclass_of(Klass* k) const; | 404 bool is_subclass_of(const Klass* k) const; |
404 // subtype check: true if is_subclass_of, or if k is interface and receiver implements it | 405 // subtype check: true if is_subclass_of, or if k is interface and receiver implements it |
405 bool is_subtype_of(Klass* k) const { | 406 bool is_subtype_of(Klass* k) const { |
406 juint off = k->super_check_offset(); | 407 juint off = k->super_check_offset(); |
407 Klass* sup = *(Klass**)( (address)this + off ); | 408 Klass* sup = *(Klass**)( (address)this + off ); |
408 const juint secondary_offset = in_bytes(secondary_super_cache_offset()); | 409 const juint secondary_offset = in_bytes(secondary_super_cache_offset()); |
447 // These will return NULL instead of allocating on the heap: | 448 // These will return NULL instead of allocating on the heap: |
448 // NB: these can block for a mutex, like other functions with TRAPS arg. | 449 // NB: these can block for a mutex, like other functions with TRAPS arg. |
449 Klass* array_klass_or_null(int rank); | 450 Klass* array_klass_or_null(int rank); |
450 Klass* array_klass_or_null(); | 451 Klass* array_klass_or_null(); |
451 | 452 |
452 virtual oop protection_domain() { return NULL; } | 453 virtual oop protection_domain() const = 0; |
453 | 454 |
454 oop class_loader() const; | 455 oop class_loader() const; |
455 | 456 |
456 virtual oop klass_holder() const { return class_loader(); } | 457 virtual oop klass_holder() const { return class_loader(); } |
457 | 458 |