< prev index next >

src/hotspot/cpu/arm/templateInterpreterGenerator_arm.cpp

Print this page
*** 805,13 ***
  // Interpreter stub for calling a native method. (asm interpreter)
  // This sets up a somewhat different looking stack for calling the native method
  // than the typical interpreter frame setup.
  //
  
! address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
    // determine code generation flags
!   bool inc_counter  = UseCompiler || CountCompiledCalls;
  
    // Incoming registers:
    //
    // Rmethod: Method*
    // Rthread: thread
--- 805,13 ---
  // Interpreter stub for calling a native method. (asm interpreter)
  // This sets up a somewhat different looking stack for calling the native method
  // than the typical interpreter frame setup.
  //
  
! address TemplateInterpreterGenerator::generate_native_entry(bool synchronized, bool runtime_upcalls) {
    // determine code generation flags
!   bool inc_counter = (UseCompiler || CountCompiledCalls) && !PreloadOnly;
  
    // Incoming registers:
    //
    // Rmethod: Method*
    // Rthread: thread

*** 1139,13 ***
  }
  
  //
  // Generic interpreted method entry to (asm) interpreter
  //
! address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
    // determine code generation flags
!   bool inc_counter  = UseCompiler || CountCompiledCalls;
  
    // Rmethod: Method*
    // Rthread: thread
    // Rsender_sp: sender sp (could differ from SP if we were called via c2i)
    // Rparams: pointer to the last parameter in the stack
--- 1139,13 ---
  }
  
  //
  // Generic interpreted method entry to (asm) interpreter
  //
! address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized, bool runtime_upcalls) {
    // determine code generation flags
!   bool inc_counter = (UseCompiler || CountCompiledCalls) && !PreloadOnly;
  
    // Rmethod: Method*
    // Rthread: thread
    // Rsender_sp: sender sp (could differ from SP if we were called via c2i)
    // Rparams: pointer to the last parameter in the stack

*** 1563,10 ***
--- 1563,19 ---
    generate_and_dispatch(t);
  }
  
  //------------------------------------------------------------------------------------------------------------------------
  
+ void TemplateInterpreterGenerator::count_bytecode() {
+   __ inc_global_counter((address) &BytecodeCounter::_counter_value, 0, Rtemp, R2_tmp, true);
+ }
+ 
+ 
+ void TemplateInterpreterGenerator::histogram_bytecode(Template* t) {
+   __ inc_global_counter((address)&BytecodeHistogram::_counters[0], sizeof(BytecodeHistogram::_counters[0]) * t->bytecode(), Rtemp, R2_tmp, true);
+ }
+ 
  // Non-product code
  #ifndef PRODUCT
  address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
    address entry = __ pc();
  

*** 1588,21 ***
    __ ret();
  
    return entry;
  }
  
- 
- void TemplateInterpreterGenerator::count_bytecode() {
-   __ inc_global_counter((address) &BytecodeCounter::_counter_value, 0, Rtemp, R2_tmp, true);
- }
- 
- 
- void TemplateInterpreterGenerator::histogram_bytecode(Template* t) {
-   __ inc_global_counter((address)&BytecodeHistogram::_counters[0], sizeof(BytecodeHistogram::_counters[0]) * t->bytecode(), Rtemp, R2_tmp, true);
- }
- 
- 
  void TemplateInterpreterGenerator::histogram_bytecode_pair(Template* t) {
    const Register Rindex_addr = R2_tmp;
    Label Lcontinue;
    InlinedAddress Lcounters((address)BytecodePairHistogram::_counters);
    InlinedAddress Lindex((address)&BytecodePairHistogram::_index);
--- 1597,10 ---
< prev index next >