本文整理汇总了C++中oop::is_method方法的典型用法代码示例。如果您正苦于以下问题:C++ oop::is_method方法的具体用法?C++ oop::is_method怎么用?C++ oop::is_method使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oop
的用法示例。
在下文中一共展示了oop::is_method方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: do_object
void do_object(oop obj) {
if (obj->is_method()) {
methodOop mobj = (methodOop)obj;
ResourceMark rm;
(new Fingerprinter(mobj))->fingerprint();
}
}
示例2: set_method
void InterpretedIC_Iterator::set_method(oop m) {
if (m->is_mem()) {
assert(m->is_method(), "must be a method");
_method = (methodOop)m;
_nm = NULL;
} else {
jumpTableEntry* e = (jumpTableEntry*)m;
_nm = e->method();
_method = _nm->method();
}
}
示例3: 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;
}
示例4: oop_is_parsable
bool methodKlass::oop_is_parsable(oop obj) const {
assert(obj->is_method(), "must be method oop");
return methodOop(obj)->object_is_parsable();
}
示例5: oop_size
int methodKlass::oop_size(oop obj) const {
assert(obj->is_method(), "must be method oop");
return methodOop(obj)->object_size();
}