hotspot/src/cpu/sparc/vm/interpreter_sparc.cpp
author coleenp
Sat, 05 Dec 2015 10:40:22 -0500
changeset 34651 07b1cc0f6040
parent 33070 54f3f085b165
child 35214 d86005e0b4c2
permissions -rw-r--r--
8144534: Refactor templateInterpreter and templateInterpreterGenerator functions Summary: merged templateInterpreter_x86_32/64 into templateInterpreterGenerator_x86.cpp (some 32/64 functions remain for the hand coded crc functions). Reviewed-by: goetz, jrose, twisti
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
34651
07b1cc0f6040 8144534: Refactor templateInterpreter and templateInterpreterGenerator functions
coleenp
parents: 33070
diff changeset
     2
 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5416
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5416
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5416
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#include "precompiled.hpp"
14631
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13728
diff changeset
    26
#include "asm/macroAssembler.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
#include "interpreter/bytecodeHistogram.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "interpreter/interpreter.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "interpreter/interpreterGenerator.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "interpreter/interpreterRuntime.hpp"
25715
d5a8dbdc5150 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents: 14631
diff changeset
    31
#include "interpreter/interp_masm.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    32
#include "interpreter/templateTable.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    33
#include "oops/arrayOop.hpp"
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13391
diff changeset
    34
#include "oops/methodData.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13391
diff changeset
    35
#include "oops/method.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    36
#include "oops/oop.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    37
#include "prims/jvmtiExport.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    38
#include "prims/jvmtiThreadState.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    39
#include "prims/methodHandles.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    40
#include "runtime/arguments.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    41
#include "runtime/frame.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    42
#include "runtime/sharedRuntime.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    43
#include "runtime/stubRoutines.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    44
#include "runtime/synchronizer.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    45
#include "runtime/timer.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    46
#include "runtime/vframeArray.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    47
#include "utilities/debug.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    48
#ifdef COMPILER1
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    49
#include "c1/c1_Runtime1.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    50
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
// Generation of Interpreter
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
// The InterpreterGenerator generates the interpreter into Interpreter::_code.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
#define __ _masm->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
#ifndef _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
address AbstractInterpreterGenerator::generate_slow_signature_handler() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  address entry = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  Argument argv(0, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  // We are in the jni transition frame. Save the last_java_frame corresponding to the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
  // outer interpreter frame
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  //
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  __ set_last_Java_frame(FP, noreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  // make sure the interpreter frame we've pushed has a valid return pc
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
  __ mov(O7, I7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  __ mov(Lmethod, G3_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  __ mov(Llocals, G4_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
  __ save_frame(0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  __ mov(G2_thread, L7_thread_cache);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
  __ add(argv.address_in_frame(), O3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  __ mov(G2_thread, O0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  __ mov(G3_scratch, O1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  __ call(CAST_FROM_FN_PTR(address, InterpreterRuntime::slow_signature_handler), relocInfo::runtime_call_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  __ delayed()->mov(G4_scratch, O2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  __ mov(L7_thread_cache, G2_thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  __ reset_last_Java_frame();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  // load the register arguments (the C code packed them as varargs)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  for (Argument ldarg = argv.successor(); ldarg.is_register(); ldarg = ldarg.successor()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
      __ ld_ptr(ldarg.address_in_frame(), ldarg.as_register());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  __ ret();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  __ delayed()->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
     restore(O0, 0, Lscratch);  // caller's Lscratch gets the result handler
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  return entry;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
// LP64 passes floating point arguments in F1, F3, F5, etc. instead of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
// O0, O1, O2 etc..
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
// Doubles are passed in D0, D2, D4
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
// We store the signature of the first 16 arguments in the first argument
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
// slot because it will be overwritten prior to calling the native
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
// function, with the pointer to the JNIEnv.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
// If LP64 there can be up to 16 floating point arguments in registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
// or 6 integer registers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
address AbstractInterpreterGenerator::generate_slow_signature_handler() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
    non_float  = 0,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
    float_sig  = 1,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
    double_sig = 2,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
    sig_mask   = 3
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  address entry = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  Argument argv(0, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  // We are in the jni transition frame. Save the last_java_frame corresponding to the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  // outer interpreter frame
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  //
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  __ set_last_Java_frame(FP, noreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  // make sure the interpreter frame we've pushed has a valid return pc
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  __ mov(O7, I7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  __ mov(Lmethod, G3_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
  __ mov(Llocals, G4_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  __ save_frame(0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  __ mov(G2_thread, L7_thread_cache);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  __ add(argv.address_in_frame(), O3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  __ mov(G2_thread, O0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
  __ mov(G3_scratch, O1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  __ call(CAST_FROM_FN_PTR(address, InterpreterRuntime::slow_signature_handler), relocInfo::runtime_call_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  __ delayed()->mov(G4_scratch, O2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  __ mov(L7_thread_cache, G2_thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  __ reset_last_Java_frame();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  // load the register arguments (the C code packed them as varargs)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  Address Sig = argv.address_in_frame();        // Argument 0 holds the signature
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  __ ld_ptr( Sig, G3_scratch );                   // Get register argument signature word into G3_scratch
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  __ mov( G3_scratch, G4_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  __ srl( G4_scratch, 2, G4_scratch);             // Skip Arg 0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
  Label done;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  for (Argument ldarg = argv.successor(); ldarg.is_float_register(); ldarg = ldarg.successor()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
    Label NonFloatArg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
    Label LoadFloatArg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    Label LoadDoubleArg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
    Label NextArg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
    Address a = ldarg.address_in_frame();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
    __ andcc(G4_scratch, sig_mask, G3_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
    __ br(Assembler::zero, false, Assembler::pt, NonFloatArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    __ delayed()->nop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
    __ cmp(G3_scratch, float_sig );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
    __ br(Assembler::equal, false, Assembler::pt, LoadFloatArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
    __ delayed()->nop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
    __ cmp(G3_scratch, double_sig );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
    __ br(Assembler::equal, false, Assembler::pt, LoadDoubleArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    __ delayed()->nop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
    __ bind(NonFloatArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
    // There are only 6 integer register arguments!
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
    if ( ldarg.is_register() )
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
      __ ld_ptr(ldarg.address_in_frame(), ldarg.as_register());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
    else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
    // Optimization, see if there are any more args and get out prior to checking
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
    // all 16 float registers.  My guess is that this is rare.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
    // If is_register is false, then we are done the first six integer args.
10252
0981ce1c3eef 7063628: Use cbcond on T4
kvn
parents: 9636
diff changeset
   170
      __ br_null_short(G4_scratch, Assembler::pt, done);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
    }
10252
0981ce1c3eef 7063628: Use cbcond on T4
kvn
parents: 9636
diff changeset
   172
    __ ba(NextArg);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
    __ delayed()->srl( G4_scratch, 2, G4_scratch );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
    __ bind(LoadFloatArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
    __ ldf( FloatRegisterImpl::S, a, ldarg.as_float_register(), 4);
10252
0981ce1c3eef 7063628: Use cbcond on T4
kvn
parents: 9636
diff changeset
   177
    __ ba(NextArg);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
    __ delayed()->srl( G4_scratch, 2, G4_scratch );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
    __ bind(LoadDoubleArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
    __ ldf( FloatRegisterImpl::D, a, ldarg.as_double_register() );
10252
0981ce1c3eef 7063628: Use cbcond on T4
kvn
parents: 9636
diff changeset
   182
    __ ba(NextArg);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
    __ delayed()->srl( G4_scratch, 2, G4_scratch );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
    __ bind(NextArg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  __ bind(done);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  __ ret();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  __ delayed()->
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
     restore(O0, 0, Lscratch);  // caller's Lscratch gets the result handler
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  return entry;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
void InterpreterGenerator::generate_counter_overflow(Label& Lcontinue) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  // Generate code to initiate compilation on the counter overflow.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  // InterpreterRuntime::frequency_counter_overflow takes two arguments,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  // the first indicates if the counter overflow occurs at a backwards branch (NULL bcp)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  // and the second is only used when the first is true.  We pass zero for both.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  // The call returns the address of the verified entry point for the method or NULL
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  // if the compilation did not complete (either went background or bailed out).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  __ set((int)false, O2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::frequency_counter_overflow), O2, O2, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  // returns verified_entry_point or NULL
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  // we ignore it in any case
10252
0981ce1c3eef 7063628: Use cbcond on T4
kvn
parents: 9636
diff changeset
   210
  __ ba_short(Lcontinue);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
// End of helpers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
// Various method entries
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
// Abstract method entry
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
// Attempt to execute abstract method. Throw exception
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
address InterpreterGenerator::generate_abstract_entry(void) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  address entry = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  // abstract method entry
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  // throw exception
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
  __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_AbstractMethodError));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  // the call_VM checks for exception, so we should never return here.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  __ should_not_reach_here();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  return entry;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
}