< prev index next >

src/share/vm/interpreter/rewriter.hpp

Print this page

        

*** 32,42 **** // The Rewriter adds caches to the constant pool and rewrites bytecode indices // pointing into the constant pool for better interpreter performance. class Rewriter: public StackObj { private: ! instanceKlassHandle _klass; constantPoolHandle _pool; Array<Method*>* _methods; GrowableArray<int> _cp_map; GrowableArray<int> _cp_cache_map; // for Methodref, Fieldref, // InterfaceMethodref and InvokeDynamic --- 32,42 ---- // The Rewriter adds caches to the constant pool and rewrites bytecode indices // pointing into the constant pool for better interpreter performance. class Rewriter: public StackObj { private: ! InstanceKlass* _klass; constantPoolHandle _pool; Array<Method*>* _methods; GrowableArray<int> _cp_map; GrowableArray<int> _cp_cache_map; // for Methodref, Fieldref, // InterfaceMethodref and InvokeDynamic
*** 186,196 **** int cp_index = _cp_cache_map.at(cache_index); return cp_index; } // All the work goes in here: ! Rewriter(instanceKlassHandle klass, const constantPoolHandle& cpool, Array<Method*>* methods, TRAPS); void compute_index_maps(); void make_constant_pool_cache(TRAPS); void scan_method(Method* m, bool reverse, bool* invokespecial_error); void rewrite_Object_init(methodHandle m, TRAPS); --- 186,196 ---- int cp_index = _cp_cache_map.at(cache_index); return cp_index; } // All the work goes in here: ! Rewriter(InstanceKlass* klass, const constantPoolHandle& cpool, Array<Method*>* methods, TRAPS); void compute_index_maps(); void make_constant_pool_cache(TRAPS); void scan_method(Method* m, bool reverse, bool* invokespecial_error); void rewrite_Object_init(methodHandle m, TRAPS);
*** 209,217 **** void restore_bytecodes(); static methodHandle rewrite_jsrs(methodHandle m, TRAPS); public: // Driver routine: ! static void rewrite(instanceKlassHandle klass, TRAPS); }; #endif // SHARE_VM_INTERPRETER_REWRITER_HPP --- 209,217 ---- void restore_bytecodes(); static methodHandle rewrite_jsrs(methodHandle m, TRAPS); public: // Driver routine: ! static void rewrite(InstanceKlass* klass, TRAPS); }; #endif // SHARE_VM_INTERPRETER_REWRITER_HPP
< prev index next >