本文整理汇总了C++中oop::is_symbol方法的典型用法代码示例。如果您正苦于以下问题:C++ oop::is_symbol方法的具体用法?C++ oop::is_symbol怎么用?C++ oop::is_symbol使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oop
的用法示例。
在下文中一共展示了oop::is_symbol方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch_pointers
void symbolTable::switch_pointers(oop from, oop to) {
if (! from->is_symbol()) return;
assert(to->is_symbol(),
"cannot replace a symbol with a non-symbol");
symbolTableEntry* e;
FOR_ALL_ENTRIES(e) {
symbolOop* addr;
FOR_ALL_SYMBOL_ADDR(e, addr, SWITCH_POINTERS_TEMPLATE(addr));
}
}
示例2: oop_adjust_pointers
int symbolKlass::oop_adjust_pointers(oop obj) {
assert(obj->is_symbol(), "should be symbol");
symbolOop s = symbolOop(obj);
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
int size = s->object_size();
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::symbolKlassObj never moves.
return size;
}
示例3: oop_oop_iterate_m
int symbolKlass::oop_oop_iterate_m(oop obj, OopClosure* blk, MemRegion mr) {
assert(obj->is_symbol(), "object must be symbol");
symbolOop s = symbolOop(obj);
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
int size = s->object_size();
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::symbolKlassObj never moves.
return size;
}
示例4: markSymbol
PRIM_DECL_2(behaviorPrimitives::methodFor, oop receiver, oop selector) {
PROLOGUE_2("methodFor", receiver, selector);
ASSERT_RECEIVER;
if (!selector->is_symbol())
return markSymbol(vmSymbols::first_argument_has_wrong_type());
methodOop m = klassOop(receiver)->klass_part()->lookup(symbolOop(selector));
if (m) return m;
return markSymbol(vmSymbols::not_found());
}
示例5: classify_object
object_type ClassifyObjectClosure::classify_object(oop obj, bool count) {
object_type type = unknown_type;
Klass* k = obj->blueprint();
if (k->as_klassOop() == SystemDictionary::Object_klass()) {
tty->print_cr("Found the class!");
}
if (count) {
k->set_alloc_count(k->alloc_count() + 1);
}
if (obj->is_instance()) {
if (k->oop_is_instanceRef()) {
type = instanceRef_type;
} else {
type = instance_type;
}
} else if (obj->is_typeArray()) {
type = typeArray_type;
} else if (obj->is_objArray()) {
type = objArray_type;
} else if (obj->is_symbol()) {
type = symbol_type;
} else if (obj->is_klass()) {
Klass* k = ((klassOop)obj)->klass_part();
if (k->oop_is_instance()) {
type = instanceKlass_type;
} else {
type = klass_type;
}
} else if (obj->is_method()) {
type = method_type;
} else if (obj->is_constMethod()) {
type = constMethod_type;
} else if (obj->is_methodData()) {
ShouldNotReachHere();
} else if (obj->is_constantPool()) {
type = constantPool_type;
} else if (obj->is_constantPoolCache()) {
type = constantPoolCache_type;
} else if (obj->is_compiledICHolder()) {
type = compiledICHolder_type;
} else {
ShouldNotReachHere();
}
assert(type != unknown_type, "found object of unknown type.");
return type;
}
示例6: oop_follow_contents
void symbolKlass::oop_follow_contents(oop obj) {
assert (obj->is_symbol(), "object must be symbol");
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::symbolKlassObj never moves.
// Note: do not follow next link here (see SymbolTable::follow_contents)
}
示例7: oop_is_parsable
bool symbolKlass::oop_is_parsable(oop obj) const {
assert(obj->is_symbol(),"must be a symbol");
symbolOop s = symbolOop(obj);
return s->object_is_parsable();
}
示例8: oop_size
int symbolKlass::oop_size(oop obj) const {
assert(obj->is_symbol(),"must be a symbol");
symbolOop s = symbolOop(obj);
int size = s->object_size();
return size;
}
示例9: oop_copy_contents
void symbolKlass::oop_copy_contents(PSPromotionManager* pm, oop obj) {
assert(obj->is_symbol(), "should be symbol");
}
示例10: oop_update_pointers
int symbolKlass::oop_update_pointers(ParCompactionManager* cm, oop obj,
HeapWord* beg_addr, HeapWord* end_addr) {
assert(obj->is_symbol(), "should be symbol");
return symbolOop(obj)->object_size();
}