src/share/vm/interpreter/bytecodeStream.hpp

changeset 2314
f95d63e2154a
parent 1934
e9ff18c4ace7
child 2462
8012aa3ccede
equal deleted inserted replaced
2313:e33f46fc48ed 2314:f95d63e2154a
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24
25 #ifndef SHARE_VM_INTERPRETER_BYTECODESTREAM_HPP
26 #define SHARE_VM_INTERPRETER_BYTECODESTREAM_HPP
27
28 #include "interpreter/bytecode.hpp"
29 #include "memory/allocation.hpp"
30 #include "oops/methodOop.hpp"
31 #ifdef TARGET_ARCH_x86
32 # include "bytes_x86.hpp"
33 #endif
34 #ifdef TARGET_ARCH_sparc
35 # include "bytes_sparc.hpp"
36 #endif
37 #ifdef TARGET_ARCH_zero
38 # include "bytes_zero.hpp"
39 #endif
24 40
25 // A BytecodeStream is used for fast iteration over the bytecodes 41 // A BytecodeStream is used for fast iteration over the bytecodes
26 // of a methodOop. 42 // of a methodOop.
27 // 43 //
28 // Usage: 44 // Usage:
212 return bytecode()->get_index_u2_cpcache(raw_code()); } 228 return bytecode()->get_index_u2_cpcache(raw_code()); }
213 int get_index_u4() const { assert_raw_stream(false); 229 int get_index_u4() const { assert_raw_stream(false);
214 return bytecode()->get_index_u4(raw_code()); } 230 return bytecode()->get_index_u4(raw_code()); }
215 bool has_index_u4() const { return bytecode()->has_index_u4(raw_code()); } 231 bool has_index_u4() const { return bytecode()->has_index_u4(raw_code()); }
216 }; 232 };
233
234 #endif // SHARE_VM_INTERPRETER_BYTECODESTREAM_HPP

mercurial