hotspot/src/share/vm/opto/c2compiler.cpp
author zmajo
Mon, 03 Aug 2015 09:39:29 +0200
changeset 32085 d869c505b624
parent 31962 d05e0a4d1b43
child 32371 8815f2d1447f
permissions -rw-r--r--
8132457: Unify command-line flags controlling the usage of compiler intrinsics Summary: Cleanup processing of command-line flags controlling intrinsics. Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
25715
d5a8dbdc5150 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents: 24673
diff changeset
     2
 * Copyright (c) 1999, 2014, 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: 5353
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5353
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: 5353
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: 6180
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6180
diff changeset
    26
#include "opto/c2compiler.hpp"
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
    27
#include "opto/compile.hpp"
25715
d5a8dbdc5150 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents: 24673
diff changeset
    28
#include "opto/optoreg.hpp"
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
    29
#include "opto/output.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6180
diff changeset
    30
#include "opto/runtime.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
// register information defined by ADLC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
extern const char register_save_policy[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
extern const int  register_save_type[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
const char* C2Compiler::retry_no_subsuming_loads() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
  return "retry without subsuming loads";
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
}
211
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
    39
const char* C2Compiler::retry_no_escape_analysis() {
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
    40
  return "retry without escape analysis";
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
    41
}
28395
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
    42
const char* C2Compiler::retry_class_loading_during_parsing() {
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
    43
  return "retry class loading during parsing";
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
    44
}
20707
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    45
bool C2Compiler::init_c2_runtime() {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  // Check assumptions used while running ADLC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  Compile::adlc_verification();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  assert(REG_COUNT <= ConcreteRegisterImpl::number_of_registers, "incompatible register counts");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  for (int i = 0; i < ConcreteRegisterImpl::number_of_registers ; i++ ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
      OptoReg::vm2opto[i] = OptoReg::Bad;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(REG_COUNT); i = OptoReg::add(i,1) ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    VMReg r = OptoReg::as_VMReg(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    if (r->is_valid()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
      OptoReg::vm2opto[r->value()] = i;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  // Check that runtime and architecture description agree on callee-saved-floats
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  bool callee_saved_floats = false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(_last_Mach_Reg); i = OptoReg::add(i,1) ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
    // Is there a callee-saved float or double?
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
    if( register_save_policy[i] == 'E' /* callee-saved */ &&
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
       (register_save_type[i] == Op_RegF || register_save_type[i] == Op_RegD) ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
      callee_saved_floats = true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  DEBUG_ONLY( Node::init_NodeProperty(); )
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
  Compile::pd_compiler2_init();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  CompilerThread* thread = CompilerThread::current();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
20707
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    78
  HandleMark handle_mark(thread);
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    79
  return OptoRuntime::generate(thread->env());
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
void C2Compiler::initialize() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  // The first compiler thread that gets here will initialize the
20707
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    84
  // small amount of global state (and runtime stubs) that C2 needs.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  // There is a race possible once at startup and then we're fine
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  // Note that this is being called from a compiler thread not the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  // main startup thread.
20707
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    90
  if (should_perform_init()) {
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    91
    bool successful = C2Compiler::init_c2_runtime();
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    92
    int new_state = (successful) ? initialized : failed;
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    93
    set_state(new_state);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
20707
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    97
void C2Compiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) {
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    98
  assert(is_initialized(), "Compiler thread must be initialized");
b3b658c6d1f8 8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents: 17383
diff changeset
    99
6180
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   100
  bool subsume_loads = SubsumeLoads;
22893
e3a2b513713a 8035493: JVMTI PopFrame capability must instruct compilers not to prune locals
mgronlun
parents: 22234
diff changeset
   101
  bool do_escape_analysis = DoEscapeAnalysis && !env->should_retain_local_variables();
17383
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   102
  bool eliminate_boxing = EliminateAutoBox;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  while (!env->failing()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
    // Attempt to compile while subsuming loads into machine instructions.
17383
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   105
    Compile C(env, this, target, entry_bci, subsume_loads, do_escape_analysis, eliminate_boxing);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
    // Check result and retry if appropriate.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
    if (C.failure_reason() != NULL) {
28395
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
   109
      if (C.failure_reason_is(retry_class_loading_during_parsing())) {
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
   110
        env->report_failure(C.failure_reason());
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
   111
        continue;  // retry
fbe08d791778 8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents: 27706
diff changeset
   112
      }
211
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   113
      if (C.failure_reason_is(retry_no_subsuming_loads())) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
        assert(subsume_loads, "must make progress");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
        subsume_loads = false;
27706
3f10f4ac2bd6 8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents: 26913
diff changeset
   116
        env->report_failure(C.failure_reason());
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
        continue;  // retry
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
      }
211
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   119
      if (C.failure_reason_is(retry_no_escape_analysis())) {
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   120
        assert(do_escape_analysis, "must make progress");
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   121
        do_escape_analysis = false;
27706
3f10f4ac2bd6 8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents: 26913
diff changeset
   122
        env->report_failure(C.failure_reason());
211
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   123
        continue;  // retry
e2b60448c234 6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents: 1
diff changeset
   124
      }
17383
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   125
      if (C.has_boxed_value()) {
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   126
        // Recompile without boxing elimination regardless failure reason.
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   127
        assert(eliminate_boxing, "must make progress");
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   128
        eliminate_boxing = false;
27706
3f10f4ac2bd6 8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents: 26913
diff changeset
   129
        env->report_failure(C.failure_reason());
17383
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   130
        continue;  // retry
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 8921
diff changeset
   131
      }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
      // Pass any other failure reason up to the ciEnv.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
      // Note that serious, irreversible failures are already logged
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
      // on the ciEnv via env->record_method_not_compilable().
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
      env->record_failure(C.failure_reason());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
    }
6180
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   137
    if (StressRecompilation) {
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   138
      if (subsume_loads) {
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   139
        subsume_loads = false;
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   140
        continue;  // retry
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   141
      }
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   142
      if (do_escape_analysis) {
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   143
        do_escape_analysis = false;
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   144
        continue;  // retry
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   145
      }
53c1bf468c81 6973963: SEGV in ciBlock::start_bci() with EA
kvn
parents: 5547
diff changeset
   146
    }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
24673
2ec56802b829 8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents: 22894
diff changeset
   148
    // print inlining for last compilation only
2ec56802b829 8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents: 22894
diff changeset
   149
    C.dump_print_inlining();
2ec56802b829 8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents: 22894
diff changeset
   150
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
    // No retry; just break the loop.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
void C2Compiler::print_timers() {
26913
9ad70cd32368 8058968: Compiler time traces should be improved
shade
parents: 26796
diff changeset
   157
  Compile::print_timers();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
}
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
   159
31962
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   160
bool C2Compiler::is_intrinsic_supported(methodHandle method, bool is_virtual) {
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   161
  vmIntrinsics::ID id = method->intrinsic_id();
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   162
  assert(id != vmIntrinsics::_none, "must be a VM intrinsic");
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   163
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   164
  if (id < vmIntrinsics::FIRST_ID || id >= vmIntrinsics::LAST_COMPILER_INLINE) {
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   165
    return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   166
  }
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   167
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   168
  // Only Object.hashCode and Object.clone intrinsics implement also a virtual
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   169
  // dispatch because calling both methods is expensive but both methods are
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   170
  // frequently overridden. All other intrinsics implement only a non-virtual
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   171
  // dispatch.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   172
  if (is_virtual) {
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   173
    switch (id) {
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   174
    case vmIntrinsics::_hashCode:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   175
    case vmIntrinsics::_clone:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   176
      break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   177
    default:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   178
      return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   179
    }
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   180
  }
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   181
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   182
  switch (id) {
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   183
  case vmIntrinsics::_compareTo:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   184
    if (!Matcher::match_rule_supported(Op_StrComp)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   185
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   186
  case vmIntrinsics::_equals:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   187
    if (!Matcher::match_rule_supported(Op_StrEquals)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   188
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   189
  case vmIntrinsics::_equalsC:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   190
    if (!Matcher::match_rule_supported(Op_AryEq)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   191
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   192
  case vmIntrinsics::_copyMemory:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   193
    if (StubRoutines::unsafe_arraycopy() == NULL) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   194
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   195
  case vmIntrinsics::_encodeISOArray:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   196
    if (!Matcher::match_rule_supported(Op_EncodeISOArray)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   197
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   198
  case vmIntrinsics::_bitCount_i:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   199
    if (!Matcher::match_rule_supported(Op_PopCountI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   200
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   201
  case vmIntrinsics::_bitCount_l:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   202
    if (!Matcher::match_rule_supported(Op_PopCountL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   203
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   204
  case vmIntrinsics::_numberOfLeadingZeros_i:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   205
    if (!Matcher::match_rule_supported(Op_CountLeadingZerosI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   206
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   207
  case vmIntrinsics::_numberOfLeadingZeros_l:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   208
    if (!Matcher::match_rule_supported(Op_CountLeadingZerosL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   209
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   210
  case vmIntrinsics::_numberOfTrailingZeros_i:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   211
    if (!Matcher::match_rule_supported(Op_CountTrailingZerosI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   212
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   213
  case vmIntrinsics::_numberOfTrailingZeros_l:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   214
    if (!Matcher::match_rule_supported(Op_CountTrailingZerosL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   215
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   216
  case vmIntrinsics::_reverseBytes_c:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   217
    if (!Matcher::match_rule_supported(Op_ReverseBytesUS)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   218
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   219
  case vmIntrinsics::_reverseBytes_s:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   220
    if (!Matcher::match_rule_supported(Op_ReverseBytesS)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   221
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   222
  case vmIntrinsics::_reverseBytes_i:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   223
    if (!Matcher::match_rule_supported(Op_ReverseBytesI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   224
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   225
  case vmIntrinsics::_reverseBytes_l:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   226
    if (!Matcher::match_rule_supported(Op_ReverseBytesL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   227
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   228
  case vmIntrinsics::_compareAndSwapObject:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   229
#ifdef _LP64
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   230
    if (!UseCompressedOops && !Matcher::match_rule_supported(Op_CompareAndSwapP)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   231
#endif
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   232
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   233
  case vmIntrinsics::_compareAndSwapLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   234
    if (!Matcher::match_rule_supported(Op_CompareAndSwapL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   235
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   236
  case vmIntrinsics::_getAndAddInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   237
    if (!Matcher::match_rule_supported(Op_GetAndAddI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   238
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   239
  case vmIntrinsics::_getAndAddLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   240
    if (!Matcher::match_rule_supported(Op_GetAndAddL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   241
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   242
  case vmIntrinsics::_getAndSetInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   243
    if (!Matcher::match_rule_supported(Op_GetAndSetI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   244
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   245
  case vmIntrinsics::_getAndSetLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   246
    if (!Matcher::match_rule_supported(Op_GetAndSetL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   247
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   248
  case vmIntrinsics::_getAndSetObject:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   249
#ifdef _LP64
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   250
    if (!UseCompressedOops && !Matcher::match_rule_supported(Op_GetAndSetP)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   251
    if (UseCompressedOops && !Matcher::match_rule_supported(Op_GetAndSetN)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   252
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   253
#else
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   254
    if (!Matcher::match_rule_supported(Op_GetAndSetP)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   255
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   256
#endif
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   257
  case vmIntrinsics::_incrementExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   258
  case vmIntrinsics::_addExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   259
    if (!Matcher::match_rule_supported(Op_OverflowAddI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   260
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   261
  case vmIntrinsics::_incrementExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   262
  case vmIntrinsics::_addExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   263
    if (!Matcher::match_rule_supported(Op_OverflowAddL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   264
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   265
  case vmIntrinsics::_decrementExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   266
  case vmIntrinsics::_subtractExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   267
    if (!Matcher::match_rule_supported(Op_OverflowSubI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   268
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   269
  case vmIntrinsics::_decrementExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   270
  case vmIntrinsics::_subtractExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   271
    if (!Matcher::match_rule_supported(Op_OverflowSubL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   272
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   273
  case vmIntrinsics::_negateExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   274
    if (!Matcher::match_rule_supported(Op_OverflowSubI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   275
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   276
  case vmIntrinsics::_negateExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   277
    if (!Matcher::match_rule_supported(Op_OverflowSubL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   278
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   279
  case vmIntrinsics::_multiplyExactI:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   280
    if (!Matcher::match_rule_supported(Op_OverflowMulI)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   281
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   282
  case vmIntrinsics::_multiplyExactL:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   283
    if (!Matcher::match_rule_supported(Op_OverflowMulL)) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   284
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   285
  case vmIntrinsics::_getCallerClass:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   286
    if (SystemDictionary::reflect_CallerSensitive_klass() == NULL) return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   287
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   288
  case vmIntrinsics::_hashCode:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   289
  case vmIntrinsics::_identityHashCode:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   290
  case vmIntrinsics::_getClass:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   291
  case vmIntrinsics::_dsin:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   292
  case vmIntrinsics::_dcos:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   293
  case vmIntrinsics::_dtan:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   294
  case vmIntrinsics::_dabs:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   295
  case vmIntrinsics::_datan2:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   296
  case vmIntrinsics::_dsqrt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   297
  case vmIntrinsics::_dexp:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   298
  case vmIntrinsics::_dlog:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   299
  case vmIntrinsics::_dlog10:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   300
  case vmIntrinsics::_dpow:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   301
  case vmIntrinsics::_min:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   302
  case vmIntrinsics::_max:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   303
  case vmIntrinsics::_arraycopy:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   304
  case vmIntrinsics::_indexOf:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   305
  case vmIntrinsics::_getObject:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   306
  case vmIntrinsics::_getBoolean:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   307
  case vmIntrinsics::_getByte:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   308
  case vmIntrinsics::_getShort:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   309
  case vmIntrinsics::_getChar:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   310
  case vmIntrinsics::_getInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   311
  case vmIntrinsics::_getLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   312
  case vmIntrinsics::_getFloat:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   313
  case vmIntrinsics::_getDouble:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   314
  case vmIntrinsics::_putObject:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   315
  case vmIntrinsics::_putBoolean:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   316
  case vmIntrinsics::_putByte:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   317
  case vmIntrinsics::_putShort:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   318
  case vmIntrinsics::_putChar:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   319
  case vmIntrinsics::_putInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   320
  case vmIntrinsics::_putLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   321
  case vmIntrinsics::_putFloat:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   322
  case vmIntrinsics::_putDouble:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   323
  case vmIntrinsics::_getByte_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   324
  case vmIntrinsics::_getShort_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   325
  case vmIntrinsics::_getChar_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   326
  case vmIntrinsics::_getInt_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   327
  case vmIntrinsics::_getLong_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   328
  case vmIntrinsics::_getFloat_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   329
  case vmIntrinsics::_getDouble_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   330
  case vmIntrinsics::_getAddress_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   331
  case vmIntrinsics::_putByte_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   332
  case vmIntrinsics::_putShort_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   333
  case vmIntrinsics::_putChar_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   334
  case vmIntrinsics::_putInt_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   335
  case vmIntrinsics::_putLong_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   336
  case vmIntrinsics::_putFloat_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   337
  case vmIntrinsics::_putDouble_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   338
  case vmIntrinsics::_putAddress_raw:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   339
  case vmIntrinsics::_getObjectVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   340
  case vmIntrinsics::_getBooleanVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   341
  case vmIntrinsics::_getByteVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   342
  case vmIntrinsics::_getShortVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   343
  case vmIntrinsics::_getCharVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   344
  case vmIntrinsics::_getIntVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   345
  case vmIntrinsics::_getLongVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   346
  case vmIntrinsics::_getFloatVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   347
  case vmIntrinsics::_getDoubleVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   348
  case vmIntrinsics::_putObjectVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   349
  case vmIntrinsics::_putBooleanVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   350
  case vmIntrinsics::_putByteVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   351
  case vmIntrinsics::_putShortVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   352
  case vmIntrinsics::_putCharVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   353
  case vmIntrinsics::_putIntVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   354
  case vmIntrinsics::_putLongVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   355
  case vmIntrinsics::_putFloatVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   356
  case vmIntrinsics::_putDoubleVolatile:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   357
  case vmIntrinsics::_getShortUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   358
  case vmIntrinsics::_getCharUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   359
  case vmIntrinsics::_getIntUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   360
  case vmIntrinsics::_getLongUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   361
  case vmIntrinsics::_putShortUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   362
  case vmIntrinsics::_putCharUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   363
  case vmIntrinsics::_putIntUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   364
  case vmIntrinsics::_putLongUnaligned:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   365
  case vmIntrinsics::_compareAndSwapInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   366
  case vmIntrinsics::_putOrderedObject:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   367
  case vmIntrinsics::_putOrderedInt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   368
  case vmIntrinsics::_putOrderedLong:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   369
  case vmIntrinsics::_loadFence:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   370
  case vmIntrinsics::_storeFence:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   371
  case vmIntrinsics::_fullFence:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   372
  case vmIntrinsics::_currentThread:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   373
  case vmIntrinsics::_isInterrupted:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   374
#ifdef TRACE_HAVE_INTRINSICS
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   375
  case vmIntrinsics::_classID:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   376
  case vmIntrinsics::_threadID:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   377
  case vmIntrinsics::_counterTime:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   378
#endif
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   379
  case vmIntrinsics::_currentTimeMillis:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   380
  case vmIntrinsics::_nanoTime:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   381
  case vmIntrinsics::_allocateInstance:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   382
  case vmIntrinsics::_newArray:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   383
  case vmIntrinsics::_getLength:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   384
  case vmIntrinsics::_copyOf:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   385
  case vmIntrinsics::_copyOfRange:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   386
  case vmIntrinsics::_clone:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   387
  case vmIntrinsics::_isAssignableFrom:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   388
  case vmIntrinsics::_isInstance:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   389
  case vmIntrinsics::_getModifiers:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   390
  case vmIntrinsics::_isInterface:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   391
  case vmIntrinsics::_isArray:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   392
  case vmIntrinsics::_isPrimitive:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   393
  case vmIntrinsics::_getSuperclass:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   394
  case vmIntrinsics::_getClassAccessFlags:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   395
  case vmIntrinsics::_floatToRawIntBits:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   396
  case vmIntrinsics::_floatToIntBits:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   397
  case vmIntrinsics::_intBitsToFloat:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   398
  case vmIntrinsics::_doubleToRawLongBits:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   399
  case vmIntrinsics::_doubleToLongBits:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   400
  case vmIntrinsics::_longBitsToDouble:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   401
  case vmIntrinsics::_Reference_get:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   402
  case vmIntrinsics::_Class_cast:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   403
  case vmIntrinsics::_aescrypt_encryptBlock:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   404
  case vmIntrinsics::_aescrypt_decryptBlock:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   405
  case vmIntrinsics::_cipherBlockChaining_encryptAESCrypt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   406
  case vmIntrinsics::_cipherBlockChaining_decryptAESCrypt:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   407
  case vmIntrinsics::_sha_implCompress:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   408
  case vmIntrinsics::_sha2_implCompress:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   409
  case vmIntrinsics::_sha5_implCompress:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   410
  case vmIntrinsics::_digestBase_implCompressMB:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   411
  case vmIntrinsics::_multiplyToLen:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   412
  case vmIntrinsics::_squareToLen:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   413
  case vmIntrinsics::_mulAdd:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   414
  case vmIntrinsics::_montgomeryMultiply:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   415
  case vmIntrinsics::_montgomerySquare:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   416
  case vmIntrinsics::_ghash_processBlocks:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   417
  case vmIntrinsics::_updateCRC32:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   418
  case vmIntrinsics::_updateBytesCRC32:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   419
  case vmIntrinsics::_updateByteBufferCRC32:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   420
  case vmIntrinsics::_updateBytesCRC32C:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   421
  case vmIntrinsics::_updateDirectByteBufferCRC32C:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   422
  case vmIntrinsics::_profileBoolean:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   423
  case vmIntrinsics::_isCompileConstant:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   424
    break;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   425
  default:
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   426
    return false;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   427
  }
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   428
  return true;
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   429
}
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 28395
diff changeset
   430
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
   431
int C2Compiler::initial_code_buffer_size() {
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
   432
  assert(SegmentedCodeCache, "Should be only used with a segmented code cache");
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
   433
  return Compile::MAX_inst_size + Compile::MAX_locs_size + initial_const_capacity;
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 25715
diff changeset
   434
}