Searched defs:bcp (Results 1 - 25 of 27) sorted by relevance

12

/openjdk7/hotspot/src/share/vm/interpreter/
H A DbytecodeStream.cpp32 address bcp = RawBytecodeStream::bcp(); local
34 int l = Bytecodes::raw_special_length_at(bcp, end);
44 if (bcp + 1 >= end) {
47 code = (Bytecodes::Code)bcp[1];
H A DinterpreterRuntime.hpp52 friend class BytecodeClosure; // for method and bcp
53 friend class PrintingClosure; // for method and bcp
59 static address bcp(JavaThread *thread) { return last_frame(thread).interpreter_frame_bcp(); } function in class:InterpreterRuntime
61 static void set_bcp_and_mdp(address bcp, JavaThread*thread);
64 return Bytecodes::code_at(method(thread), bcp(thread));
67 static Bytecode bytecode(JavaThread *thread) { return Bytecode(method(thread), bcp(thread)); }
76 static int number_of_dimensions(JavaThread *thread) { return bcp(thread)[3]; }
79 static ConstantPoolCacheEntry* cache_entry(JavaThread *thread) { return cache_entry_at(thread, Bytes::get_native_u2(bcp(thread) + 1)); }
127 static void _breakpoint(JavaThread* thread, methodOopDesc* method, address bcp);
128 static Bytecodes::Code get_original_bytecode_at(JavaThread* thread, methodOopDesc* method, address bcp);
[all...]
H A DbytecodeStream.hpp113 address bcp() const { return method()->code_base() + _bci; } function in class:BaseBytecodeStream
114 Bytecode bytecode() const { return Bytecode(_method(), bcp()); }
124 int get_index_u1() const { assert_raw_index_size(1); return *(jubyte*)(bcp()+1); }
147 address bcp = this->bcp(); local
148 code = Bytecodes::code_or_bp_at(bcp);
166 int get_index() const { return (is_wide()) ? get_index_u2_raw(bcp() + 2) : get_index_u1(); }
168 int get_index_u2() const { assert(!is_wide(), ""); return get_index_u2_raw(bcp() + 1); }
197 address bcp = this->bcp(); local
[all...]
H A Dbytecodes.cpp64 bool Bytecodes::check_method(const methodOopDesc* method, address bcp) { argument
65 return method->contains(bcp);
96 Bytecodes::Code Bytecodes::non_breakpoint_code_at(const methodOopDesc* method, address bcp) { argument
98 assert(method->contains(bcp), "must be valid bcp in method");
99 return method->orig_bytecode_at(method->bci_from(bcp));
102 int Bytecodes::special_length_at(Bytecodes::Code code, address bcp, address end) { argument
105 if (end != NULL && bcp + 1 >= end) {
108 return wide_length_for(cast(*(bcp + 1)));
110 { address aligned_bcp = (address)round_to((intptr_t)bcp
152 raw_special_length_at(address bcp, address end) argument
[all...]
H A Dinterpreter.cpp317 address AbstractInterpreter::deopt_continue_after_entry(methodOop method, address bcp, int callee_parameters, bool is_top_frame) { argument
318 assert(method->contains(bcp), "just checkin'");
319 Bytecodes::Code code = Bytecodes::java_code_at(method, bcp);
321 int bci = method->bci_from(bcp);
324 length = Bytecodes::length_at(method, bcp);
340 int index = Bytes::get_native_u2(bcp+1);
354 int index = Bytes::get_native_u4(bcp+1);
387 address AbstractInterpreter::deopt_reexecute_entry(methodOop method, address bcp) { argument
388 assert(method->contains(bcp), "just checkin'");
389 Bytecodes::Code code = Bytecodes::java_code_at(method, bcp);
[all...]
H A Drewriter.cpp110 case Bytecodes::_return: *bcs.bcp() = Bytecodes::_return_register_finalizer; break;
134 void Rewriter::rewrite_member_reference(address bcp, int offset, bool reverse) { argument
135 address p = bcp + offset;
195 void Rewriter::rewrite_invokedynamic(address bcp, int offset, bool reverse) { argument
196 address p = bcp + offset;
231 void Rewriter::maybe_rewrite_ldc(address bcp, int offset, bool is_wide, argument
234 assert((*bcp) == (is_wide ? Bytecodes::_ldc_w : Bytecodes::_ldc), "not ldc bytecode");
235 address p = bcp + offset;
241 (*bcp) = Bytecodes::_fast_aldc_w;
245 (*bcp)
290 address bcp = code_base + bci; local
386 address bcp = original_method->bcp_from(0); local
[all...]
H A Dbytecode.hpp51 // to the bcp.
71 Bytecode(methodOop method, address bcp): _bcp(bcp), _code(Bytecodes::code_at(method, addr_at(0))) { argument
75 inline Bytecode(const ciBytecodeStream* stream, address bcp = NULL);
78 address bcp() const { return _bcp; } function in class:Bytecode
79 int instruction_size() const { return Bytecodes::length_for_code_at(_code, bcp()); }
153 LookupswitchPair(address bcp): _bcp(bcp) {} argument
161 Bytecode_lookupswitch(methodOop method, address bcp): Bytecode(method, bcp) { verif argument
177 Bytecode_tableswitch(methodOop method, address bcp) argument
281 Bytecode_checkcast(methodOop method, address bcp) argument
291 Bytecode_instanceof(methodOop method, address bcp) argument
300 Bytecode_new(methodOop method, address bcp) argument
309 Bytecode_multianewarray(methodOop method, address bcp) argument
318 Bytecode_anewarray(methodOop method, address bcp) argument
[all...]
H A DbytecodeTracer.cpp85 void trace(methodHandle method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st) { argument
102 // bcp wasn't advanced if previous bytecode was _wide.
103 code = Bytecodes::code_at(method(), bcp+1);
105 code = Bytecodes::code_at(method(), bcp);
108 int bci = bcp - method->code_base();
117 _next_pc = is_wide() ? bcp+2 : bcp+1;
125 // Used for methodOop::print_codes(). The input bcp comes from
127 void trace(methodHandle method, address bcp, outputStream* st) { argument
130 Bytecodes::Code code = Bytecodes::code_at(method(), bcp);
167 trace(methodHandle method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st) argument
186 trace(methodHandle method, address bcp, outputStream* st) argument
[all...]
H A DbytecodeInterpreter.hpp198 inline address bcp() { return _bcp; } function in class:BytecodeInterpreter
H A DinterpreterRuntime.cpp96 void InterpreterRuntime::set_bcp_and_mdp(address bcp, JavaThread *thread) { argument
97 last_frame(thread).interpreter_frame_set_bcp(bcp);
274 int trap_bci = trap_method->bci_from(bcp(thread));
366 // the exception oop (via TLS) and sets the bci/bcp for the continuation.
450 JvmtiExport::post_exception_throw(thread, h_method(), bcp(thread), h_exception());
460 // Forward exception to callee (leaving bci/bcp untouched) because (a) no
469 // handler in this method => change bci/bcp to handler bci/bcp and continue there
647 IRT_ENTRY(Bytecodes::Code, InterpreterRuntime::get_original_bytecode_at(JavaThread* thread, methodOopDesc* method, address bcp))
648 return method->orig_bytecode_at(method->bci_from(bcp));
[all...]
/openjdk7/hotspot/src/share/vm/shark/
H A DsharkRuntime.hpp77 static address bcp(JavaThread *thread, int bci) { function in class:SharkRuntime
81 return Bytes::get_Java_u2(bcp(thread, bci) + 1);
/openjdk7/jdk/src/share/back/
H A DMethodImpl.c178 unsigned char * bcp; local
195 bcp = NULL;
200 (gdata->jvmti, method, &bytecodeCount, &bcp);
205 (void)outStream_writeByteArray(out, bytecodeCount, (jbyte *)bcp);
206 jvmtiDeallocate(bcp);
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ia64/
H A DcInterpreter.java130 public Address bcp() { method in class:cInterpreter
/openjdk7/jdk/src/share/classes/sun/misc/
H A DLauncher.java360 static final URLClassPath bcp; field in class:Launcher.BootClassPathHolder
388 bcp = new URLClassPath(urls, factory);
393 return BootClassPathHolder.bcp;
/openjdk7/hotspot/src/share/vm/ci/
H A DciMethod.hpp114 address bcp = _code + bci; local
115 *bcp = code;
174 address bcp = code() + bci; local
175 return Bytecodes::java_code_at(NULL, bcp);
H A DciStreams.hpp120 address cur_bcp() const { return _bc_start; } // Returns bcp to current instruction
419 Bytecode::Bytecode(const ciBytecodeStream* stream, address bcp): _bcp(bcp != NULL ? bcp : stream->cur_bcp()), _code(Bytecodes::code_at(NULL, addr_at(0))) {} argument
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiClassFileReconstituter.cpp703 address bcp = bs.bcp(); local
710 memcpy(p+1, bcp+1, len-1);
732 int cpci = Bytes::get_native_u2(bcp+1);
735 cpci = Bytes::get_native_u4(bcp+1);
H A DjvmtiImpl.hpp283 // quickly test whether the bcp matches a cached breakpoint in the list
284 static inline bool is_breakpoint(address bcp);
290 // quickly test whether the bcp matches a cached breakpoint in the list
291 bool JvmtiCurrentBreakpoints::is_breakpoint(address bcp) { argument
295 if ((*bps) == bcp) return true;
H A DjvmtiRedefineClasses.cpp1463 address bcp = code_base + bci; local
1464 Bytecodes::Code c = (Bytecodes::Code)(*bcp);
1470 bc_length = Bytecodes::length_at(method(), bcp);
1478 int cp_index = *(bcp + 1);
1493 bcp, cp_index, new_index));
1494 *(bcp + 1) = new_index;
1498 Bytecodes::name(c), bcp, cp_index, new_index));
1501 bcp = (address)inst_buffer;
1503 *bcp = Bytecodes::_ldc_w;
1504 bcp
[all...]
/openjdk7/hotspot/src/share/vm/runtime/
H A DvframeArray.cpp167 // Look at bci and decide on bcp and continuation pc
168 address bcp; local
173 // rather than the one associated with bcp
176 bcp = method()->bcp_from(0); // first byte code
180 bcp = method()->bcp_from(bci());
181 pc = Interpreter::deopt_reexecute_entry(method(), bcp);
183 bcp = method()->bcp_from(bci());
184 pc = Interpreter::deopt_continue_after_entry(method(), bcp, callee_parameters, is_top_frame);
187 assert(Bytecodes::is_defined(*bcp), "must be a valid bytecode");
199 // in which case bcp shoul
[all...]
H A Dvframe.cpp224 u_char* interpretedVFrame::bcp() const { function in class:interpretedVFrame
228 void interpretedVFrame::set_bcp(u_char* bcp) { argument
229 fr().interpreter_frame_set_bcp(bcp);
249 return method()->bci_from(bcp());
H A Dframe.cpp411 // The bcx was just converted from bci to bcp.
421 // The bcx was just converted from bcp to bci.
453 void frame::interpreter_frame_set_bcp(address bcp) { argument
455 assert(!is_bci(interpreter_frame_bcx()), "should not set bcp during GC");
456 interpreter_frame_set_bcx((intptr_t)bcp);
625 // bcp
626 st->print(" - bcp [" INTPTR_FORMAT "]", interpreter_frame_bcp());
1161 // set bcx back to bcp for interpreter
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DFrame.java93 protected int bcpToBci(Address bcp, ConstMethod cm) { argument
94 // bcp will be null for interpreter native methods
96 // be a bcp or a bci.
97 if (bcp == null) return 0;
98 long bci = bcp.minus(null);
100 return (int) (bcp.minus(cm.getHandle()) - constMethodOopDescSize);
103 protected int bcpToBci(Address bcp, Method m) { argument
104 return bcpToBci(bcp, m.getConstMethod());
/openjdk7/hotspot/src/share/vm/oops/
H A DgenerateOopMap.cpp537 { Bytecode_tableswitch tableswitch(method(), bcs->bcp());
548 { Bytecode_lookupswitch lookupswitch(method(), bcs->bcp());
998 address bcp = _method->bcp_from(bb->_end_bci); local
999 int bc_len = Bytecodes::java_length_at(_method(), bcp);
1006 address bcp = _method->bcp_from(bb->_end_bci); local
1007 int bc_len = Bytecodes::java_length_at(_method(), bcp);
1609 case Bytecodes::_multianewarray: do_multianewarray(*(itr->bcp()+3), itr->bci()); break;
2364 int ilen = Bytecodes::length_at(_method(), bcs->bcp());
2386 address bcp; local
2390 bcp
[all...]
H A DmethodOop.cpp175 int methodOopDesc::bci_from(address bcp) const {
178 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(),
179 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string()));
182 return bcp - code_base();
212 address bcp = code_base() + bci; local
213 assert(is_native() && bcp == code_base() || contains(bcp), "bc
[all...]

Completed in 188 milliseconds

12