< prev index next >

src/hotspot/cpu/x86/interp_masm_x86.hpp

Print this page
*** 191,11 ***
    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)
--- 191,11 ---
    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)

*** 231,10 ***
--- 231,33 ---
                           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, perserves 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
+   //   - 32 bits: kills rdi and rsi
+   void read_inlined_field(Register holder_klass,
+                             Register field_index, Register field_offset,
+                             Register obj = rax);
+ 
+   // Allocate value buffer in "obj" and read in flattened element at the given index
+   // NOTES:
+   //   - Return via "obj" must be rax
+   //   - kills all given regs
+   //   - 32 bits: kills rdi and rsi
+   void read_flattened_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

*** 271,11 ***
    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);
--- 294,11 ---
    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);

*** 284,10 ***
--- 307,13 ---
    void profile_typecheck(Register mdp, Register klass, Register scratch);
    void profile_typecheck_failed(Register mdp);
    void profile_switch_default(Register mdp);
    void profile_switch_case(Register index_in_scratch, Register mdp,
                             Register scratch2);
+   void profile_array(Register mdp, Register array, Register tmp);
+   void profile_element(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 >