< prev index next > src/hotspot/cpu/x86/interp_masm_x86.hpp
Print this page
void load_ptr(int n, Register val);
void store_ptr(int n, Register val);
// Generate a subtype check: branch to ok_is_subtype if sub_klass is
// a subtype of super_klass.
! void gen_subtype_check( Register sub_klass, Label &ok_is_subtype );
// Dispatching
void dispatch_prolog(TosState state, int step = 0);
void dispatch_epilog(TosState state, int step = 0);
// dispatch via rbx (assume rbx is loaded already)
void load_ptr(int n, Register val);
void store_ptr(int n, Register val);
// Generate a subtype check: branch to ok_is_subtype if sub_klass is
// a subtype of super_klass.
! void gen_subtype_check(Register sub_klass, Label &ok_is_subtype, bool profile = true);
// Dispatching
void dispatch_prolog(TosState state, int step = 0);
void dispatch_epilog(TosState state, int step = 0);
// dispatch via rbx (assume rbx is loaded already)
bool throw_monitor_exception = true,
bool install_monitor_exception = true,
bool notify_jvmdi = true);
void get_method_counters(Register method, Register mcs, Label& skip);
+ // Kills t1 and t2, preserves klass, return allocation in new_obj
+ void allocate_instance(Register klass, Register new_obj,
+ Register t1, Register t2,
+ bool clear_fields, Label& alloc_failed);
+
+ // Allocate instance in "obj" and read in the content of the inline field
+ // NOTES:
+ // - input holder object via "obj", which must be rax,
+ // will return new instance via the same reg
+ // - assumes holder_klass and valueKlass field klass have both been resolved
+ void read_flat_field(Register entry,
+ Register tmp1, Register tmp2,
+ Register obj = rax);
+
+ // Allocate value buffer in "obj" and read in flat element at the given index
+ // NOTES:
+ // - Return via "obj" must be rax
+ // - kills all given regs
+ // - 32 bits: kills rdi and rsi
+ void read_flat_element(Register array, Register index,
+ Register t1, Register t2,
+ Register obj = rax);
+
// Object locking
void lock_object (Register lock_reg);
void unlock_object(Register lock_reg);
// Interpreter profiling operations
void set_mdp_flag_at(Register mdp_in, int flag_constant);
void test_mdp_data_at(Register mdp_in, int offset, Register value,
Register test_value_out,
Label& not_equal_continue);
! void record_klass_in_profile(Register receiver, Register mdp,
! Register reg2, bool is_virtual_call);
- void record_klass_in_profile_helper(Register receiver, Register mdp,
- Register reg2, int start_row,
- Label& done, bool is_virtual_call);
void record_item_in_profile_helper(Register item, Register mdp, Register reg2, int start_row,
Label& done, int total_rows,
OffsetFunction item_offset_fn,
OffsetFunction item_count_offset_fn);
void set_mdp_flag_at(Register mdp_in, int flag_constant);
void test_mdp_data_at(Register mdp_in, int offset, Register value,
Register test_value_out,
Label& not_equal_continue);
! void record_klass_in_profile(Register receiver, Register mdp, Register reg2);
! void record_klass_in_profile_helper(Register receiver, Register mdp, Register reg2, int start_row, Label &done);
void record_item_in_profile_helper(Register item, Register mdp, Register reg2, int start_row,
Label& done, int total_rows,
OffsetFunction item_offset_fn,
OffsetFunction item_count_offset_fn);
void update_mdp_by_offset(Register mdp_in, Register reg, int offset_of_disp);
void update_mdp_by_constant(Register mdp_in, int constant);
void update_mdp_for_ret(Register return_bci);
void profile_taken_branch(Register mdp, Register bumped_count);
! void profile_not_taken_branch(Register mdp);
void profile_call(Register mdp);
void profile_final_call(Register mdp);
void profile_virtual_call(Register receiver, Register mdp,
Register scratch2,
bool receiver_can_be_null = false);
void update_mdp_by_offset(Register mdp_in, Register reg, int offset_of_disp);
void update_mdp_by_constant(Register mdp_in, int constant);
void update_mdp_for_ret(Register return_bci);
void profile_taken_branch(Register mdp, Register bumped_count);
! void profile_not_taken_branch(Register mdp, bool acmp = false);
void profile_call(Register mdp);
void profile_final_call(Register mdp);
void profile_virtual_call(Register receiver, Register mdp,
Register scratch2,
bool receiver_can_be_null = false);
void profile_typecheck(Register mdp, Register klass, Register scratch);
void profile_switch_default(Register mdp);
void profile_switch_case(Register index_in_scratch, Register mdp,
Register scratch2);
+ template <class ArrayData> void profile_array_type(Register mdp, Register array, Register tmp);
+
+ void profile_multiple_element_types(Register mdp, Register element, Register tmp, const Register tmp2);
+ void profile_element_type(Register mdp, Register element, Register tmp);
+ void profile_acmp(Register mdp, Register left, Register right, Register tmp);
// Debugging
// only if +VerifyOops && state == atos
#define interp_verify_oop(reg, state) _interp_verify_oop(reg, state, __FILE__, __LINE__);
void _interp_verify_oop(Register reg, TosState state, const char* file, int line);
< prev index next >