src/hotspot/share/interpreter/templateTable.cpp
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 37480 hotspot/src/share/vm/interpreter/templateTable.cpp@291ee208fb72
child 48826 c4d9d1b08e2e
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30117
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: 3261
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3261
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: 3261
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: 5882
diff changeset
    25
#include "precompiled.hpp"
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30117
diff changeset
    26
#include "gc/shared/collectedHeap.hpp"
25715
d5a8dbdc5150 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents: 13728
diff changeset
    27
#include "interpreter/interp_masm.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    28
#include "interpreter/templateTable.hpp"
37161
e881f320966e 8150015: Integrate TraceTime with Unified Logging more seamlessly
rehn
parents: 36178
diff changeset
    29
#include "runtime/timerTrace.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
#ifdef CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
void templateTable_init() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// Implementation of Template
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
void Template::initialize(int flags, TosState tos_in, TosState tos_out, generator gen, int arg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  _flags   = flags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
  _tos_in  = tos_in;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  _tos_out = tos_out;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  _gen     = gen;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  _arg     = arg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
Bytecodes::Code Template::bytecode() const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  int i = this - TemplateTable::_template_table;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  if (i < 0 || i >= Bytecodes::number_of_codes) i = this - TemplateTable::_template_table_wide;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  return Bytecodes::cast(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
void Template::generate(InterpreterMacroAssembler* masm) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  // parameter passing
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  TemplateTable::_desc = this;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  TemplateTable::_masm = masm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  // code generation
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  _gen(_arg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  masm->flush();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
// Implementation of TemplateTable: Platform-independent helper routines
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
void TemplateTable::call_VM(Register oop_result, address entry_point) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  _masm->call_VM(oop_result, entry_point);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
void TemplateTable::call_VM(Register oop_result, address entry_point, Register arg_1) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
  _masm->call_VM(oop_result, entry_point, arg_1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
void TemplateTable::call_VM(Register oop_result, address entry_point, Register arg_1, Register arg_2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  _masm->call_VM(oop_result, entry_point, arg_1, arg_2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
void TemplateTable::call_VM(Register oop_result, address entry_point, Register arg_1, Register arg_2, Register arg_3) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  _masm->call_VM(oop_result, entry_point, arg_1, arg_2, arg_3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
void TemplateTable::call_VM(Register oop_result, Register last_java_sp, address entry_point) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  _masm->call_VM(oop_result, last_java_sp, entry_point);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
void TemplateTable::call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  _masm->call_VM(oop_result, last_java_sp, entry_point, arg_1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
void TemplateTable::call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1, Register arg_2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  _masm->call_VM(oop_result, last_java_sp, entry_point, arg_1, arg_2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
void TemplateTable::call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1, Register arg_2, Register arg_3) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  assert(_desc->calls_vm(), "inconsistent calls_vm information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  _masm->call_VM(oop_result, last_java_sp, entry_point, arg_1, arg_2, arg_3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
// Implementation of TemplateTable: Platform-independent bytecodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
void TemplateTable::float_cmp(int unordered_result) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  transition(ftos, itos);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  float_cmp(true, unordered_result);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
void TemplateTable::double_cmp(int unordered_result) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  transition(dtos, itos);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  float_cmp(false, unordered_result);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
void TemplateTable::_goto() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  transition(vtos, vtos);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  branch(false, false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
void TemplateTable::goto_w() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  transition(vtos, vtos);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  branch(false, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
void TemplateTable::jsr_w() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  transition(vtos, vtos);       // result is not an oop, so do not transition to atos
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  branch(true, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
void TemplateTable::jsr() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  transition(vtos, vtos);       // result is not an oop, so do not transition to atos
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  branch(true, false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
// Implementation of TemplateTable: Debugging
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
void TemplateTable::transition(TosState tos_in, TosState tos_out) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  assert(_desc->tos_in()  == tos_in , "inconsistent tos_in  information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  assert(_desc->tos_out() == tos_out, "inconsistent tos_out information");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
//----------------------------------------------------------------------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
// Implementation of TemplateTable: Initialization
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
bool                       TemplateTable::_is_initialized = false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
Template                   TemplateTable::_template_table     [Bytecodes::number_of_codes];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
Template                   TemplateTable::_template_table_wide[Bytecodes::number_of_codes];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
Template*                  TemplateTable::_desc;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
InterpreterMacroAssembler* TemplateTable::_masm;
1374
4c24294029a9 6711316: Open source the Garbage-First garbage collector
ysr
parents: 1
diff changeset
   177
BarrierSet*                TemplateTable::_bs;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(), char filler) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  assert(filler == ' ', "just checkin'");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  def(code, flags, in, out, (Template::generator)gen, 0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(int arg), int arg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  // should factor out these constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
  const int ubcp = 1 << Template::uses_bcp_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  const int disp = 1 << Template::does_dispatch_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  const int clvm = 1 << Template::calls_vm_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  const int iswd = 1 << Template::wide_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  // determine which table to use
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  bool is_wide = (flags & iswd) != 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  // make sure that wide instructions have a vtos entry point
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  // (since they are executed extremely rarely, it doesn't pay out to have an
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  // extra set of 5 dispatch tables for the wide instructions - for simplicity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  // they all go with one table)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  assert(in == vtos || !is_wide, "wide instructions have vtos entry point only");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  Template* t = is_wide ? template_for_wide(code) : template_for(code);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  // setup entry
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  t->initialize(flags, in, out, gen, arg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  assert(t->bytecode() == code, "just checkin'");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(Operation op), Operation op) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  def(code, flags, in, out, (Template::generator)gen, (int)op);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(bool arg    ), bool arg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  def(code, flags, in, out, (Template::generator)gen, (int)arg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(TosState tos), TosState tos) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  def(code, flags, in, out, (Template::generator)gen, (int)tos);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
void TemplateTable::def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(Condition cc), Condition cc) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  def(code, flags, in, out, (Template::generator)gen, (int)cc);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
#if defined(TEMPLATE_TABLE_BUG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
// It appears that gcc (version 2.91) generates bad code for the template
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
// table init if this macro is not defined.  My symptom was an assertion
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
// assert(Universe::heap()->is_in(obj), "sanity check") in handles.cpp line 24.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
// when called from interpreterRuntime.resolve_invoke().
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
  #define iload  TemplateTable::iload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
  #define lload  TemplateTable::lload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  #define fload  TemplateTable::fload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
  #define dload  TemplateTable::dload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
  #define aload  TemplateTable::aload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  #define istore TemplateTable::istore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
  #define lstore TemplateTable::lstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
  #define fstore TemplateTable::fstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  #define dstore TemplateTable::dstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
  #define astore TemplateTable::astore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
#endif // TEMPLATE_TABLE_BUG
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
void TemplateTable::initialize() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
  if (_is_initialized) return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
  // Initialize table
37161
e881f320966e 8150015: Integrate TraceTime with Unified Logging more seamlessly
rehn
parents: 36178
diff changeset
   248
  TraceTime timer("TemplateTable initialization", TRACETIME_LOG(Info, startuptime));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
1374
4c24294029a9 6711316: Open source the Garbage-First garbage collector
ysr
parents: 1
diff changeset
   250
  _bs = Universe::heap()->barrier_set();
4c24294029a9 6711316: Open source the Garbage-First garbage collector
ysr
parents: 1
diff changeset
   251
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
  // For better readability
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
  const char _    = ' ';
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
  const int  ____ = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
  const int  ubcp = 1 << Template::uses_bcp_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
  const int  disp = 1 << Template::does_dispatch_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
  const int  clvm = 1 << Template::calls_vm_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
  const int  iswd = 1 << Template::wide_bit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
  //                                    interpr. templates
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
  // Java spec bytecodes                ubcp|disp|clvm|iswd  in    out   generator             argument
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  def(Bytecodes::_nop                 , ____|____|____|____, vtos, vtos, nop                 ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  def(Bytecodes::_aconst_null         , ____|____|____|____, vtos, atos, aconst_null         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
  def(Bytecodes::_iconst_m1           , ____|____|____|____, vtos, itos, iconst              , -1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  def(Bytecodes::_iconst_0            , ____|____|____|____, vtos, itos, iconst              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
  def(Bytecodes::_iconst_1            , ____|____|____|____, vtos, itos, iconst              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  def(Bytecodes::_iconst_2            , ____|____|____|____, vtos, itos, iconst              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
  def(Bytecodes::_iconst_3            , ____|____|____|____, vtos, itos, iconst              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
  def(Bytecodes::_iconst_4            , ____|____|____|____, vtos, itos, iconst              ,  4           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
  def(Bytecodes::_iconst_5            , ____|____|____|____, vtos, itos, iconst              ,  5           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  def(Bytecodes::_lconst_0            , ____|____|____|____, vtos, ltos, lconst              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
  def(Bytecodes::_lconst_1            , ____|____|____|____, vtos, ltos, lconst              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  def(Bytecodes::_fconst_0            , ____|____|____|____, vtos, ftos, fconst              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
  def(Bytecodes::_fconst_1            , ____|____|____|____, vtos, ftos, fconst              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
  def(Bytecodes::_fconst_2            , ____|____|____|____, vtos, ftos, fconst              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
  def(Bytecodes::_dconst_0            , ____|____|____|____, vtos, dtos, dconst              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
  def(Bytecodes::_dconst_1            , ____|____|____|____, vtos, dtos, dconst              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
  def(Bytecodes::_bipush              , ubcp|____|____|____, vtos, itos, bipush              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
  def(Bytecodes::_sipush              , ubcp|____|____|____, vtos, itos, sipush              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
  def(Bytecodes::_ldc                 , ubcp|____|clvm|____, vtos, vtos, ldc                 ,  false       );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
  def(Bytecodes::_ldc_w               , ubcp|____|clvm|____, vtos, vtos, ldc                 ,  true        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
  def(Bytecodes::_ldc2_w              , ubcp|____|____|____, vtos, vtos, ldc2_w              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
  def(Bytecodes::_iload               , ubcp|____|clvm|____, vtos, itos, iload               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
  def(Bytecodes::_lload               , ubcp|____|____|____, vtos, ltos, lload               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
  def(Bytecodes::_fload               , ubcp|____|____|____, vtos, ftos, fload               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
  def(Bytecodes::_dload               , ubcp|____|____|____, vtos, dtos, dload               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
  def(Bytecodes::_aload               , ubcp|____|clvm|____, vtos, atos, aload               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  def(Bytecodes::_iload_0             , ____|____|____|____, vtos, itos, iload               ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
  def(Bytecodes::_iload_1             , ____|____|____|____, vtos, itos, iload               ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
  def(Bytecodes::_iload_2             , ____|____|____|____, vtos, itos, iload               ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
  def(Bytecodes::_iload_3             , ____|____|____|____, vtos, itos, iload               ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
  def(Bytecodes::_lload_0             , ____|____|____|____, vtos, ltos, lload               ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
  def(Bytecodes::_lload_1             , ____|____|____|____, vtos, ltos, lload               ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
  def(Bytecodes::_lload_2             , ____|____|____|____, vtos, ltos, lload               ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
  def(Bytecodes::_lload_3             , ____|____|____|____, vtos, ltos, lload               ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
  def(Bytecodes::_fload_0             , ____|____|____|____, vtos, ftos, fload               ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
  def(Bytecodes::_fload_1             , ____|____|____|____, vtos, ftos, fload               ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
  def(Bytecodes::_fload_2             , ____|____|____|____, vtos, ftos, fload               ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
  def(Bytecodes::_fload_3             , ____|____|____|____, vtos, ftos, fload               ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  def(Bytecodes::_dload_0             , ____|____|____|____, vtos, dtos, dload               ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
  def(Bytecodes::_dload_1             , ____|____|____|____, vtos, dtos, dload               ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
  def(Bytecodes::_dload_2             , ____|____|____|____, vtos, dtos, dload               ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
  def(Bytecodes::_dload_3             , ____|____|____|____, vtos, dtos, dload               ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
  def(Bytecodes::_aload_0             , ubcp|____|clvm|____, vtos, atos, aload_0             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
  def(Bytecodes::_aload_1             , ____|____|____|____, vtos, atos, aload               ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
  def(Bytecodes::_aload_2             , ____|____|____|____, vtos, atos, aload               ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
  def(Bytecodes::_aload_3             , ____|____|____|____, vtos, atos, aload               ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
  def(Bytecodes::_iaload              , ____|____|____|____, itos, itos, iaload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
  def(Bytecodes::_laload              , ____|____|____|____, itos, ltos, laload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
  def(Bytecodes::_faload              , ____|____|____|____, itos, ftos, faload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
  def(Bytecodes::_daload              , ____|____|____|____, itos, dtos, daload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
  def(Bytecodes::_aaload              , ____|____|____|____, itos, atos, aaload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
  def(Bytecodes::_baload              , ____|____|____|____, itos, itos, baload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
  def(Bytecodes::_caload              , ____|____|____|____, itos, itos, caload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
  def(Bytecodes::_saload              , ____|____|____|____, itos, itos, saload              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
  def(Bytecodes::_istore              , ubcp|____|clvm|____, itos, vtos, istore              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
  def(Bytecodes::_lstore              , ubcp|____|____|____, ltos, vtos, lstore              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
  def(Bytecodes::_fstore              , ubcp|____|____|____, ftos, vtos, fstore              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
  def(Bytecodes::_dstore              , ubcp|____|____|____, dtos, vtos, dstore              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
  def(Bytecodes::_astore              , ubcp|____|clvm|____, vtos, vtos, astore              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
  def(Bytecodes::_istore_0            , ____|____|____|____, itos, vtos, istore              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
  def(Bytecodes::_istore_1            , ____|____|____|____, itos, vtos, istore              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
  def(Bytecodes::_istore_2            , ____|____|____|____, itos, vtos, istore              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  def(Bytecodes::_istore_3            , ____|____|____|____, itos, vtos, istore              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
  def(Bytecodes::_lstore_0            , ____|____|____|____, ltos, vtos, lstore              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  def(Bytecodes::_lstore_1            , ____|____|____|____, ltos, vtos, lstore              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
  def(Bytecodes::_lstore_2            , ____|____|____|____, ltos, vtos, lstore              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
  def(Bytecodes::_lstore_3            , ____|____|____|____, ltos, vtos, lstore              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
  def(Bytecodes::_fstore_0            , ____|____|____|____, ftos, vtos, fstore              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
  def(Bytecodes::_fstore_1            , ____|____|____|____, ftos, vtos, fstore              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
  def(Bytecodes::_fstore_2            , ____|____|____|____, ftos, vtos, fstore              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
  def(Bytecodes::_fstore_3            , ____|____|____|____, ftos, vtos, fstore              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
  def(Bytecodes::_dstore_0            , ____|____|____|____, dtos, vtos, dstore              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
  def(Bytecodes::_dstore_1            , ____|____|____|____, dtos, vtos, dstore              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
  def(Bytecodes::_dstore_2            , ____|____|____|____, dtos, vtos, dstore              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
  def(Bytecodes::_dstore_3            , ____|____|____|____, dtos, vtos, dstore              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
  def(Bytecodes::_astore_0            , ____|____|____|____, vtos, vtos, astore              ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
  def(Bytecodes::_astore_1            , ____|____|____|____, vtos, vtos, astore              ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
  def(Bytecodes::_astore_2            , ____|____|____|____, vtos, vtos, astore              ,  2           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
  def(Bytecodes::_astore_3            , ____|____|____|____, vtos, vtos, astore              ,  3           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
  def(Bytecodes::_iastore             , ____|____|____|____, itos, vtos, iastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
  def(Bytecodes::_lastore             , ____|____|____|____, ltos, vtos, lastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
  def(Bytecodes::_fastore             , ____|____|____|____, ftos, vtos, fastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
  def(Bytecodes::_dastore             , ____|____|____|____, dtos, vtos, dastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
  def(Bytecodes::_aastore             , ____|____|clvm|____, vtos, vtos, aastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
  def(Bytecodes::_bastore             , ____|____|____|____, itos, vtos, bastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
  def(Bytecodes::_castore             , ____|____|____|____, itos, vtos, castore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
  def(Bytecodes::_sastore             , ____|____|____|____, itos, vtos, sastore             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
  def(Bytecodes::_pop                 , ____|____|____|____, vtos, vtos, pop                 ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  def(Bytecodes::_pop2                , ____|____|____|____, vtos, vtos, pop2                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
  def(Bytecodes::_dup                 , ____|____|____|____, vtos, vtos, dup                 ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
  def(Bytecodes::_dup_x1              , ____|____|____|____, vtos, vtos, dup_x1              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
  def(Bytecodes::_dup_x2              , ____|____|____|____, vtos, vtos, dup_x2              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
  def(Bytecodes::_dup2                , ____|____|____|____, vtos, vtos, dup2                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
  def(Bytecodes::_dup2_x1             , ____|____|____|____, vtos, vtos, dup2_x1             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
  def(Bytecodes::_dup2_x2             , ____|____|____|____, vtos, vtos, dup2_x2             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
  def(Bytecodes::_swap                , ____|____|____|____, vtos, vtos, swap                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
  def(Bytecodes::_iadd                , ____|____|____|____, itos, itos, iop2                , add          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
  def(Bytecodes::_ladd                , ____|____|____|____, ltos, ltos, lop2                , add          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
  def(Bytecodes::_fadd                , ____|____|____|____, ftos, ftos, fop2                , add          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
  def(Bytecodes::_dadd                , ____|____|____|____, dtos, dtos, dop2                , add          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
  def(Bytecodes::_isub                , ____|____|____|____, itos, itos, iop2                , sub          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
  def(Bytecodes::_lsub                , ____|____|____|____, ltos, ltos, lop2                , sub          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
  def(Bytecodes::_fsub                , ____|____|____|____, ftos, ftos, fop2                , sub          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
  def(Bytecodes::_dsub                , ____|____|____|____, dtos, dtos, dop2                , sub          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
  def(Bytecodes::_imul                , ____|____|____|____, itos, itos, iop2                , mul          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
  def(Bytecodes::_lmul                , ____|____|____|____, ltos, ltos, lmul                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
  def(Bytecodes::_fmul                , ____|____|____|____, ftos, ftos, fop2                , mul          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
  def(Bytecodes::_dmul                , ____|____|____|____, dtos, dtos, dop2                , mul          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
  def(Bytecodes::_idiv                , ____|____|____|____, itos, itos, idiv                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
  def(Bytecodes::_ldiv                , ____|____|____|____, ltos, ltos, ldiv                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
  def(Bytecodes::_fdiv                , ____|____|____|____, ftos, ftos, fop2                , div          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
  def(Bytecodes::_ddiv                , ____|____|____|____, dtos, dtos, dop2                , div          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  def(Bytecodes::_irem                , ____|____|____|____, itos, itos, irem                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
  def(Bytecodes::_lrem                , ____|____|____|____, ltos, ltos, lrem                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
  def(Bytecodes::_frem                , ____|____|____|____, ftos, ftos, fop2                , rem          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
  def(Bytecodes::_drem                , ____|____|____|____, dtos, dtos, dop2                , rem          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  def(Bytecodes::_ineg                , ____|____|____|____, itos, itos, ineg                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
  def(Bytecodes::_lneg                , ____|____|____|____, ltos, ltos, lneg                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
  def(Bytecodes::_fneg                , ____|____|____|____, ftos, ftos, fneg                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
  def(Bytecodes::_dneg                , ____|____|____|____, dtos, dtos, dneg                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
  def(Bytecodes::_ishl                , ____|____|____|____, itos, itos, iop2                , shl          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
  def(Bytecodes::_lshl                , ____|____|____|____, itos, ltos, lshl                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
  def(Bytecodes::_ishr                , ____|____|____|____, itos, itos, iop2                , shr          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
  def(Bytecodes::_lshr                , ____|____|____|____, itos, ltos, lshr                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
  def(Bytecodes::_iushr               , ____|____|____|____, itos, itos, iop2                , ushr         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  def(Bytecodes::_lushr               , ____|____|____|____, itos, ltos, lushr               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
  def(Bytecodes::_iand                , ____|____|____|____, itos, itos, iop2                , _and         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
  def(Bytecodes::_land                , ____|____|____|____, ltos, ltos, lop2                , _and         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
  def(Bytecodes::_ior                 , ____|____|____|____, itos, itos, iop2                , _or          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
  def(Bytecodes::_lor                 , ____|____|____|____, ltos, ltos, lop2                , _or          );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
  def(Bytecodes::_ixor                , ____|____|____|____, itos, itos, iop2                , _xor         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
  def(Bytecodes::_lxor                , ____|____|____|____, ltos, ltos, lop2                , _xor         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
  def(Bytecodes::_iinc                , ubcp|____|clvm|____, vtos, vtos, iinc                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
  def(Bytecodes::_i2l                 , ____|____|____|____, itos, ltos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
  def(Bytecodes::_i2f                 , ____|____|____|____, itos, ftos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
  def(Bytecodes::_i2d                 , ____|____|____|____, itos, dtos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
  def(Bytecodes::_l2i                 , ____|____|____|____, ltos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
  def(Bytecodes::_l2f                 , ____|____|____|____, ltos, ftos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
  def(Bytecodes::_l2d                 , ____|____|____|____, ltos, dtos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
  def(Bytecodes::_f2i                 , ____|____|____|____, ftos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
  def(Bytecodes::_f2l                 , ____|____|____|____, ftos, ltos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
  def(Bytecodes::_f2d                 , ____|____|____|____, ftos, dtos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
  def(Bytecodes::_d2i                 , ____|____|____|____, dtos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
  def(Bytecodes::_d2l                 , ____|____|____|____, dtos, ltos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
  def(Bytecodes::_d2f                 , ____|____|____|____, dtos, ftos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
  def(Bytecodes::_i2b                 , ____|____|____|____, itos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
  def(Bytecodes::_i2c                 , ____|____|____|____, itos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
  def(Bytecodes::_i2s                 , ____|____|____|____, itos, itos, convert             ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
  def(Bytecodes::_lcmp                , ____|____|____|____, ltos, itos, lcmp                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
  def(Bytecodes::_fcmpl               , ____|____|____|____, ftos, itos, float_cmp           , -1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
  def(Bytecodes::_fcmpg               , ____|____|____|____, ftos, itos, float_cmp           ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
  def(Bytecodes::_dcmpl               , ____|____|____|____, dtos, itos, double_cmp          , -1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
  def(Bytecodes::_dcmpg               , ____|____|____|____, dtos, itos, double_cmp          ,  1           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
  def(Bytecodes::_ifeq                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , equal        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
  def(Bytecodes::_ifne                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , not_equal    );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
  def(Bytecodes::_iflt                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , less         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
  def(Bytecodes::_ifge                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , greater_equal);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
  def(Bytecodes::_ifgt                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , greater      );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
  def(Bytecodes::_ifle                , ubcp|____|clvm|____, itos, vtos, if_0cmp             , less_equal   );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
  def(Bytecodes::_if_icmpeq           , ubcp|____|clvm|____, itos, vtos, if_icmp             , equal        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
  def(Bytecodes::_if_icmpne           , ubcp|____|clvm|____, itos, vtos, if_icmp             , not_equal    );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
  def(Bytecodes::_if_icmplt           , ubcp|____|clvm|____, itos, vtos, if_icmp             , less         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   423
  def(Bytecodes::_if_icmpge           , ubcp|____|clvm|____, itos, vtos, if_icmp             , greater_equal);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   424
  def(Bytecodes::_if_icmpgt           , ubcp|____|clvm|____, itos, vtos, if_icmp             , greater      );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
  def(Bytecodes::_if_icmple           , ubcp|____|clvm|____, itos, vtos, if_icmp             , less_equal   );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   426
  def(Bytecodes::_if_acmpeq           , ubcp|____|clvm|____, atos, vtos, if_acmp             , equal        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
  def(Bytecodes::_if_acmpne           , ubcp|____|clvm|____, atos, vtos, if_acmp             , not_equal    );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
  def(Bytecodes::_goto                , ubcp|disp|clvm|____, vtos, vtos, _goto               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   429
  def(Bytecodes::_jsr                 , ubcp|disp|____|____, vtos, vtos, jsr                 ,  _           ); // result is not an oop, so do not transition to atos
489c9b5090e2 Initial load
duke
parents:
diff changeset
   430
  def(Bytecodes::_ret                 , ubcp|disp|____|____, vtos, vtos, ret                 ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
  def(Bytecodes::_tableswitch         , ubcp|disp|____|____, itos, vtos, tableswitch         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   432
  def(Bytecodes::_lookupswitch        , ubcp|disp|____|____, itos, itos, lookupswitch        ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   433
  def(Bytecodes::_ireturn             , ____|disp|clvm|____, itos, itos, _return             , itos         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
  def(Bytecodes::_lreturn             , ____|disp|clvm|____, ltos, ltos, _return             , ltos         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
  def(Bytecodes::_freturn             , ____|disp|clvm|____, ftos, ftos, _return             , ftos         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
  def(Bytecodes::_dreturn             , ____|disp|clvm|____, dtos, dtos, _return             , dtos         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
  def(Bytecodes::_areturn             , ____|disp|clvm|____, atos, atos, _return             , atos         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
  def(Bytecodes::_return              , ____|disp|clvm|____, vtos, vtos, _return             , vtos         );
5688
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   439
  def(Bytecodes::_getstatic           , ubcp|____|clvm|____, vtos, vtos, getstatic           , f1_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   440
  def(Bytecodes::_putstatic           , ubcp|____|clvm|____, vtos, vtos, putstatic           , f2_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   441
  def(Bytecodes::_getfield            , ubcp|____|clvm|____, vtos, vtos, getfield            , f1_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   442
  def(Bytecodes::_putfield            , ubcp|____|clvm|____, vtos, vtos, putfield            , f2_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   443
  def(Bytecodes::_invokevirtual       , ubcp|disp|clvm|____, vtos, vtos, invokevirtual       , f2_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   444
  def(Bytecodes::_invokespecial       , ubcp|disp|clvm|____, vtos, vtos, invokespecial       , f1_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   445
  def(Bytecodes::_invokestatic        , ubcp|disp|clvm|____, vtos, vtos, invokestatic        , f1_byte      );
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   446
  def(Bytecodes::_invokeinterface     , ubcp|disp|clvm|____, vtos, vtos, invokeinterface     , f1_byte      );
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13391
diff changeset
   447
  def(Bytecodes::_invokedynamic       , ubcp|disp|clvm|____, vtos, vtos, invokedynamic       , f1_byte      );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   448
  def(Bytecodes::_new                 , ubcp|____|clvm|____, vtos, atos, _new                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   449
  def(Bytecodes::_newarray            , ubcp|____|clvm|____, itos, atos, newarray            ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   450
  def(Bytecodes::_anewarray           , ubcp|____|clvm|____, itos, atos, anewarray           ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   451
  def(Bytecodes::_arraylength         , ____|____|____|____, atos, itos, arraylength         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   452
  def(Bytecodes::_athrow              , ____|disp|____|____, atos, vtos, athrow              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   453
  def(Bytecodes::_checkcast           , ubcp|____|clvm|____, atos, atos, checkcast           ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   454
  def(Bytecodes::_instanceof          , ubcp|____|clvm|____, atos, itos, instanceof          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   455
  def(Bytecodes::_monitorenter        , ____|disp|clvm|____, atos, vtos, monitorenter        ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   456
  def(Bytecodes::_monitorexit         , ____|____|clvm|____, atos, vtos, monitorexit         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   457
  def(Bytecodes::_wide                , ubcp|disp|____|____, vtos, vtos, wide                ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   458
  def(Bytecodes::_multianewarray      , ubcp|____|clvm|____, vtos, atos, multianewarray      ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
  def(Bytecodes::_ifnull              , ubcp|____|clvm|____, atos, vtos, if_nullcmp          , equal        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   460
  def(Bytecodes::_ifnonnull           , ubcp|____|clvm|____, atos, vtos, if_nullcmp          , not_equal    );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   461
  def(Bytecodes::_goto_w              , ubcp|____|clvm|____, vtos, vtos, goto_w              ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   462
  def(Bytecodes::_jsr_w               , ubcp|____|____|____, vtos, vtos, jsr_w               ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   463
489c9b5090e2 Initial load
duke
parents:
diff changeset
   464
  // wide Java spec bytecodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   465
  def(Bytecodes::_iload               , ubcp|____|____|iswd, vtos, itos, wide_iload          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   466
  def(Bytecodes::_lload               , ubcp|____|____|iswd, vtos, ltos, wide_lload          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   467
  def(Bytecodes::_fload               , ubcp|____|____|iswd, vtos, ftos, wide_fload          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   468
  def(Bytecodes::_dload               , ubcp|____|____|iswd, vtos, dtos, wide_dload          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   469
  def(Bytecodes::_aload               , ubcp|____|____|iswd, vtos, atos, wide_aload          ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   470
  def(Bytecodes::_istore              , ubcp|____|____|iswd, vtos, vtos, wide_istore         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   471
  def(Bytecodes::_lstore              , ubcp|____|____|iswd, vtos, vtos, wide_lstore         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   472
  def(Bytecodes::_fstore              , ubcp|____|____|iswd, vtos, vtos, wide_fstore         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
  def(Bytecodes::_dstore              , ubcp|____|____|iswd, vtos, vtos, wide_dstore         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   474
  def(Bytecodes::_astore              , ubcp|____|____|iswd, vtos, vtos, wide_astore         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   475
  def(Bytecodes::_iinc                , ubcp|____|____|iswd, vtos, vtos, wide_iinc           ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
  def(Bytecodes::_ret                 , ubcp|disp|____|iswd, vtos, vtos, wide_ret            ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   477
  def(Bytecodes::_breakpoint          , ubcp|disp|clvm|____, vtos, vtos, _breakpoint         ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   478
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
  // JVM bytecodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   480
  def(Bytecodes::_fast_agetfield      , ubcp|____|____|____, atos, atos, fast_accessfield    ,  atos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   481
  def(Bytecodes::_fast_bgetfield      , ubcp|____|____|____, atos, itos, fast_accessfield    ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   482
  def(Bytecodes::_fast_cgetfield      , ubcp|____|____|____, atos, itos, fast_accessfield    ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   483
  def(Bytecodes::_fast_dgetfield      , ubcp|____|____|____, atos, dtos, fast_accessfield    ,  dtos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   484
  def(Bytecodes::_fast_fgetfield      , ubcp|____|____|____, atos, ftos, fast_accessfield    ,  ftos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   485
  def(Bytecodes::_fast_igetfield      , ubcp|____|____|____, atos, itos, fast_accessfield    ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   486
  def(Bytecodes::_fast_lgetfield      , ubcp|____|____|____, atos, ltos, fast_accessfield    ,  ltos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   487
  def(Bytecodes::_fast_sgetfield      , ubcp|____|____|____, atos, itos, fast_accessfield    ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   488
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
  def(Bytecodes::_fast_aputfield      , ubcp|____|____|____, atos, vtos, fast_storefield ,   atos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   490
  def(Bytecodes::_fast_bputfield      , ubcp|____|____|____, itos, vtos, fast_storefield ,   itos        );
37480
291ee208fb72 8132051: Better byte behavior
coleenp
parents: 37161
diff changeset
   491
  def(Bytecodes::_fast_zputfield      , ubcp|____|____|____, itos, vtos, fast_storefield ,   itos        );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   492
  def(Bytecodes::_fast_cputfield      , ubcp|____|____|____, itos, vtos, fast_storefield  ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   493
  def(Bytecodes::_fast_dputfield      , ubcp|____|____|____, dtos, vtos, fast_storefield  ,  dtos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
  def(Bytecodes::_fast_fputfield      , ubcp|____|____|____, ftos, vtos, fast_storefield  ,  ftos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   495
  def(Bytecodes::_fast_iputfield      , ubcp|____|____|____, itos, vtos, fast_storefield  ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
  def(Bytecodes::_fast_lputfield      , ubcp|____|____|____, ltos, vtos, fast_storefield  ,  ltos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
  def(Bytecodes::_fast_sputfield      , ubcp|____|____|____, itos, vtos, fast_storefield  ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   498
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
  def(Bytecodes::_fast_aload_0        , ____|____|____|____, vtos, atos, aload               ,  0           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
  def(Bytecodes::_fast_iaccess_0      , ubcp|____|____|____, vtos, itos, fast_xaccess        ,  itos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
  def(Bytecodes::_fast_aaccess_0      , ubcp|____|____|____, vtos, atos, fast_xaccess        ,  atos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
  def(Bytecodes::_fast_faccess_0      , ubcp|____|____|____, vtos, ftos, fast_xaccess        ,  ftos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
  def(Bytecodes::_fast_iload          , ubcp|____|____|____, vtos, itos, fast_iload          ,  _       );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
  def(Bytecodes::_fast_iload2         , ubcp|____|____|____, vtos, itos, fast_iload2         ,  _       );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
  def(Bytecodes::_fast_icaload        , ubcp|____|____|____, vtos, itos, fast_icaload        ,  _       );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
5688
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 3261
diff changeset
   508
  def(Bytecodes::_fast_invokevfinal   , ubcp|disp|clvm|____, vtos, vtos, fast_invokevfinal   , f2_byte      );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
  def(Bytecodes::_fast_linearswitch   , ubcp|disp|____|____, itos, vtos, fast_linearswitch   ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
  def(Bytecodes::_fast_binaryswitch   , ubcp|disp|____|____, itos, vtos, fast_binaryswitch   ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5702
diff changeset
   513
  def(Bytecodes::_fast_aldc           , ubcp|____|clvm|____, vtos, atos, fast_aldc           ,  false       );
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5702
diff changeset
   514
  def(Bytecodes::_fast_aldc_w         , ubcp|____|clvm|____, vtos, atos, fast_aldc           ,  true        );
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5702
diff changeset
   515
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
  def(Bytecodes::_return_register_finalizer , ____|disp|clvm|____, vtos, vtos, _return       ,  vtos        );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   517
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13391
diff changeset
   518
  def(Bytecodes::_invokehandle        , ubcp|disp|clvm|____, vtos, vtos, invokehandle        , f1_byte      );
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   519
30117
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   520
  def(Bytecodes::_nofast_getfield     , ubcp|____|clvm|____, vtos, vtos, nofast_getfield     , f1_byte      );
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   521
  def(Bytecodes::_nofast_putfield     , ubcp|____|clvm|____, vtos, vtos, nofast_putfield     , f2_byte      );
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   522
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   523
  def(Bytecodes::_nofast_aload_0      , ____|____|clvm|____, vtos, atos, nofast_aload_0      ,  _           );
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   524
  def(Bytecodes::_nofast_iload        , ubcp|____|clvm|____, vtos, itos, nofast_iload        ,  _           );
cce2cdac56dc 8074345: Enable RewriteBytecodes when VM runs with CDS
minqi
parents: 25715
diff changeset
   525
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
  def(Bytecodes::_shouldnotreachhere   , ____|____|____|____, vtos, vtos, shouldnotreachhere ,  _           );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
  // platform specific bytecodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
  pd_initialize();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
  _is_initialized = true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   532
489c9b5090e2 Initial load
duke
parents:
diff changeset
   533
#if defined(TEMPLATE_TABLE_BUG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   534
  #undef iload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   535
  #undef lload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   536
  #undef fload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   537
  #undef dload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
  #undef aload
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
  #undef istore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   540
  #undef lstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
  #undef fstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
  #undef dstore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
  #undef astore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
#endif // TEMPLATE_TABLE_BUG
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
489c9b5090e2 Initial load
duke
parents:
diff changeset
   547
void templateTable_init() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
  TemplateTable::initialize();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   549
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   550
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
489c9b5090e2 Initial load
duke
parents:
diff changeset
   552
void TemplateTable::unimplemented_bc() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   553
  _masm->unimplemented( Bytecodes::name(_desc->bytecode()));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   554
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   555
#endif /* !CC_INTERP */