< prev index next >

src/hotspot/share/interpreter/bytecodeStream.cpp

Print this page

        

*** 23,32 **** --- 23,33 ---- */ #include "precompiled.hpp" #include "interpreter/bytecodeStream.hpp" #include "interpreter/bytecodes.hpp" + #include "runtime/handles.inline.hpp" Bytecodes::Code RawBytecodeStream::raw_next_special(Bytecodes::Code code) { assert(!is_last_bytecode(), "should have been checked"); // set next bytecode position address bcp = RawBytecodeStream::bcp();
*** 51,60 **** --- 52,66 ---- } _raw_code = code; return code; } + BaseBytecodeStream::BaseBytecodeStream(const methodHandle& method) : _method(method) { + set_interval(0, _method->code_size()); + _is_raw = false; + } + #ifdef ASSERT void BaseBytecodeStream::assert_raw_index_size(int size) const { if (raw_code() == Bytecodes::_invokedynamic && is_raw()) { // in raw mode, pretend indy is "bJJ__" assert(size == 2, "raw invokedynamic instruction has 2-byte index only");
< prev index next >