Struct_Method::Struct_Method(Method const &method) : exceptionHandlerTable(NULL) , offsetHandlers(0) , lengthHandlers(0) , exceptionsTable(NULL) , offsetExceptions(0) , lengthExceptions(0) , accessFlags(method.accessFlags()) , nameIndex(method.nameIndex()) , descriptorIndex(method.descriptorIndex()) , maxStacks(method.maxStack()) , maxLocals(method.maxLocals()) , nativeFunction(NULL) , code(method.code()) , parameterTypes(method.parameters()) , exceptionHandlers(method.exceptionHandlers()) , exceptions(method.exceptions()) , name(method.name()) , descriptor(method.descriptor()) { }
jboolean DTraceJSDT::is_probe_enabled(jmethodID method) { Method* m = Method::resolve_jmethod_id(method); return nativeInstruction_at(m->code()->trap_address())->is_dtrace_trap(); }