src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp
author herrick
Wed, 27 Mar 2019 08:27:58 -0400
branchJDK-8200758-branch
changeset 57288 0be43184f52a
parent 54110 f4f0dce5d0bb
child 54669 ad45b3802d4e
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     1
/*
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     2
 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     4
 *
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     8
 *
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    13
 * accompanied this code).
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    14
 *
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    18
 *
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    21
 * questions.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    22
 */
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    23
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    24
// no precompiled headers
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    25
#include "ci/ciUtilities.hpp"
49754
ee93c1087584 8201362: Remove CollectedHeap::barrier_set()
pliden
parents: 49593
diff changeset
    26
#include "gc/shared/barrierSet.hpp"
54110
f4f0dce5d0bb 8220301: Remove jbyte use in CardTable
tschatzl
parents: 52934
diff changeset
    27
#include "gc/shared/cardTable.hpp"
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    28
#include "memory/oopFactory.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    29
#include "oops/objArrayOop.inline.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    30
#include "jvmci/jvmciRuntime.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    31
#include "jvmci/jvmciCompilerToVM.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    32
#include "jvmci/vmStructs_jvmci.hpp"
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    33
#include "runtime/flags/jvmFlag.hpp"
49480
d7df2dd501ce 8199809: Don't include frame.inline.hpp and other.inline.hpp from .hpp files
coleenp
parents: 49455
diff changeset
    34
#include "runtime/handles.inline.hpp"
49593
4dd58ecc9912 8200105: Remove cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp
stefank
parents: 49480
diff changeset
    35
#include "runtime/sharedRuntime.hpp"
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    36
#include "utilities/resourceHash.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    37
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    38
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    39
int CompilerToVM::Data::Klass_vtable_start_offset;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    40
int CompilerToVM::Data::Klass_vtable_length_offset;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    41
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    42
int CompilerToVM::Data::Method_extra_stack_entries;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    43
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    44
address CompilerToVM::Data::SharedRuntime_ic_miss_stub;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    45
address CompilerToVM::Data::SharedRuntime_handle_wrong_method_stub;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    46
address CompilerToVM::Data::SharedRuntime_deopt_blob_unpack;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    47
address CompilerToVM::Data::SharedRuntime_deopt_blob_uncommon_trap;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    48
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    49
size_t CompilerToVM::Data::ThreadLocalAllocBuffer_alignment_reserve;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    50
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    51
CollectedHeap* CompilerToVM::Data::Universe_collectedHeap;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    52
int CompilerToVM::Data::Universe_base_vtable_size;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    53
address CompilerToVM::Data::Universe_narrow_oop_base;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    54
int CompilerToVM::Data::Universe_narrow_oop_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    55
address CompilerToVM::Data::Universe_narrow_klass_base;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    56
int CompilerToVM::Data::Universe_narrow_klass_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    57
void* CompilerToVM::Data::Universe_non_oop_bits;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    58
uintptr_t CompilerToVM::Data::Universe_verify_oop_mask;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    59
uintptr_t CompilerToVM::Data::Universe_verify_oop_bits;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    60
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    61
bool       CompilerToVM::Data::_supports_inline_contig_alloc;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    62
HeapWord** CompilerToVM::Data::_heap_end_addr;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    63
HeapWord* volatile* CompilerToVM::Data::_heap_top_addr;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    64
int CompilerToVM::Data::_max_oop_map_stack_offset;
52645
74cf02d5f6e2 8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects
dnsimon
parents: 50804
diff changeset
    65
int CompilerToVM::Data::_fields_annotations_base_offset;
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    66
54110
f4f0dce5d0bb 8220301: Remove jbyte use in CardTable
tschatzl
parents: 52934
diff changeset
    67
CardTable::CardValue* CompilerToVM::Data::cardtable_start_address;
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    68
int CompilerToVM::Data::cardtable_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    69
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    70
int CompilerToVM::Data::vm_page_size;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    71
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    72
int CompilerToVM::Data::sizeof_vtableEntry = sizeof(vtableEntry);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    73
int CompilerToVM::Data::sizeof_ExceptionTableElement = sizeof(ExceptionTableElement);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    74
int CompilerToVM::Data::sizeof_LocalVariableTableElement = sizeof(LocalVariableTableElement);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    75
int CompilerToVM::Data::sizeof_ConstantPool = sizeof(ConstantPool);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    76
int CompilerToVM::Data::sizeof_narrowKlass = sizeof(narrowKlass);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    77
int CompilerToVM::Data::sizeof_arrayOopDesc = sizeof(arrayOopDesc);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    78
int CompilerToVM::Data::sizeof_BasicLock = sizeof(BasicLock);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    79
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    80
address CompilerToVM::Data::dsin;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    81
address CompilerToVM::Data::dcos;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    82
address CompilerToVM::Data::dtan;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    83
address CompilerToVM::Data::dexp;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    84
address CompilerToVM::Data::dlog;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    85
address CompilerToVM::Data::dlog10;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    86
address CompilerToVM::Data::dpow;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    87
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    88
address CompilerToVM::Data::symbol_init;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    89
address CompilerToVM::Data::symbol_clinit;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    90
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    91
void CompilerToVM::Data::initialize(TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    92
  Klass_vtable_start_offset = in_bytes(Klass::vtable_start_offset());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    93
  Klass_vtable_length_offset = in_bytes(Klass::vtable_length_offset());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    94
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    95
  Method_extra_stack_entries = Method::extra_stack_entries();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    96
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    97
  SharedRuntime_ic_miss_stub = SharedRuntime::get_ic_miss_stub();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    98
  SharedRuntime_handle_wrong_method_stub = SharedRuntime::get_handle_wrong_method_stub();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    99
  SharedRuntime_deopt_blob_unpack = SharedRuntime::deopt_blob()->unpack();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   100
  SharedRuntime_deopt_blob_uncommon_trap = SharedRuntime::deopt_blob()->uncommon_trap();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   101
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   102
  ThreadLocalAllocBuffer_alignment_reserve = ThreadLocalAllocBuffer::alignment_reserve();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   103
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   104
  Universe_collectedHeap = Universe::heap();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   105
  Universe_base_vtable_size = Universe::base_vtable_size();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   106
  Universe_narrow_oop_base = Universe::narrow_oop_base();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   107
  Universe_narrow_oop_shift = Universe::narrow_oop_shift();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   108
  Universe_narrow_klass_base = Universe::narrow_klass_base();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   109
  Universe_narrow_klass_shift = Universe::narrow_klass_shift();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   110
  Universe_non_oop_bits = Universe::non_oop_word();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   111
  Universe_verify_oop_mask = Universe::verify_oop_mask();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   112
  Universe_verify_oop_bits = Universe::verify_oop_bits();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   113
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   114
  _supports_inline_contig_alloc = Universe::heap()->supports_inline_contig_alloc();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   115
  _heap_end_addr = _supports_inline_contig_alloc ? Universe::heap()->end_addr() : (HeapWord**) -1;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   116
  _heap_top_addr = _supports_inline_contig_alloc ? Universe::heap()->top_addr() : (HeapWord* volatile*) -1;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   117
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   118
  _max_oop_map_stack_offset = (OopMapValue::register_mask - VMRegImpl::stack2reg(0)->value()) * VMRegImpl::stack_slot_size;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   119
  int max_oop_map_stack_index = _max_oop_map_stack_offset / VMRegImpl::stack_slot_size;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   120
  assert(OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index)), "should be valid");
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   121
  assert(!OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index + 1)), "should be invalid");
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   122
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   123
  symbol_init = (address) vmSymbols::object_initializer_name();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   124
  symbol_clinit = (address) vmSymbols::class_initializer_name();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   125
52645
74cf02d5f6e2 8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects
dnsimon
parents: 50804
diff changeset
   126
  _fields_annotations_base_offset = Array<AnnotationArray*>::base_offset_in_bytes();
74cf02d5f6e2 8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects
dnsimon
parents: 50804
diff changeset
   127
49754
ee93c1087584 8201362: Remove CollectedHeap::barrier_set()
pliden
parents: 49593
diff changeset
   128
  BarrierSet* bs = BarrierSet::barrier_set();
49455
848864ed9b17 8199604: Rename CardTableModRefBS to CardTableBarrierSet
eosterlund
parents: 49370
diff changeset
   129
  if (bs->is_a(BarrierSet::CardTableBarrierSet)) {
54110
f4f0dce5d0bb 8220301: Remove jbyte use in CardTable
tschatzl
parents: 52934
diff changeset
   130
    CardTable::CardValue* base = ci_card_table_address();
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   131
    assert(base != NULL, "unexpected byte_map_base");
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   132
    cardtable_start_address = base;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   133
    cardtable_shift = CardTable::card_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   134
  } else {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   135
    // No card mark barriers
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   136
    cardtable_start_address = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   137
    cardtable_shift = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   138
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   139
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   140
  vm_page_size = os::vm_page_size();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   141
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   142
#define SET_TRIGFUNC(name)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   143
  if (StubRoutines::name() != NULL) {                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   144
    name = StubRoutines::name();                                \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   145
  } else {                                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   146
    name = CAST_FROM_FN_PTR(address, SharedRuntime::name);      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   147
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   148
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   149
  SET_TRIGFUNC(dsin);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   150
  SET_TRIGFUNC(dcos);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   151
  SET_TRIGFUNC(dtan);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   152
  SET_TRIGFUNC(dexp);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   153
  SET_TRIGFUNC(dlog10);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   154
  SET_TRIGFUNC(dlog);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   155
  SET_TRIGFUNC(dpow);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   156
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   157
#undef SET_TRIGFUNC
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   158
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   159
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   160
objArrayHandle CompilerToVM::initialize_intrinsics(TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   161
  objArrayHandle vmIntrinsics = oopFactory::new_objArray_handle(VMIntrinsicMethod::klass(), (vmIntrinsics::ID_LIMIT - 1), CHECK_(objArrayHandle()));
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   162
  int index = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   163
  // The intrinsics for a class are usually adjacent to each other.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   164
  // When they are, the string for the class name can be reused.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   165
  vmSymbols::SID kls_sid = vmSymbols::NO_SID;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   166
  Handle kls_str;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   167
#define VM_SYMBOL_TO_STRING(s) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   168
  java_lang_String::create_from_symbol(vmSymbols::symbol_at(vmSymbols::VM_SYMBOL_ENUM_NAME(s)), CHECK_(objArrayHandle()))
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   169
#define VM_INTRINSIC_INFO(id, kls, name, sig, ignore_fcode) {             \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   170
    instanceHandle vmIntrinsicMethod = InstanceKlass::cast(VMIntrinsicMethod::klass())->allocate_instance_handle(CHECK_(objArrayHandle())); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   171
    vmSymbols::SID sid = vmSymbols::VM_SYMBOL_ENUM_NAME(kls);             \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   172
    if (kls_sid != sid) {                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   173
      kls_str = VM_SYMBOL_TO_STRING(kls);                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   174
      kls_sid = sid;                                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   175
    }                                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   176
    Handle name_str = VM_SYMBOL_TO_STRING(name);                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   177
    Handle sig_str = VM_SYMBOL_TO_STRING(sig);                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   178
    VMIntrinsicMethod::set_declaringClass(vmIntrinsicMethod, kls_str());  \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   179
    VMIntrinsicMethod::set_name(vmIntrinsicMethod, name_str());           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   180
    VMIntrinsicMethod::set_descriptor(vmIntrinsicMethod, sig_str());      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   181
    VMIntrinsicMethod::set_id(vmIntrinsicMethod, vmIntrinsics::id);       \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   182
      vmIntrinsics->obj_at_put(index++, vmIntrinsicMethod());             \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   183
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   184
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   185
  VM_INTRINSICS_DO(VM_INTRINSIC_INFO, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   186
#undef VM_SYMBOL_TO_STRING
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   187
#undef VM_INTRINSIC_INFO
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   188
  assert(index == vmIntrinsics::ID_LIMIT - 1, "must be");
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   189
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   190
  return vmIntrinsics;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   191
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   192
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   193
/**
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   194
 * The set of VM flags known to be used.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   195
 */
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   196
#define PREDEFINED_CONFIG_FLAGS(do_bool_flag, do_intx_flag, do_uintx_flag) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   197
  do_intx_flag(AllocateInstancePrefetchLines)                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   198
  do_intx_flag(AllocatePrefetchDistance)                                   \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   199
  do_intx_flag(AllocatePrefetchInstr)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   200
  do_intx_flag(AllocatePrefetchLines)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   201
  do_intx_flag(AllocatePrefetchStepSize)                                   \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   202
  do_intx_flag(AllocatePrefetchStyle)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   203
  do_intx_flag(BciProfileWidth)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   204
  do_bool_flag(BootstrapJVMCI)                                             \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   205
  do_bool_flag(CITime)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   206
  do_bool_flag(CITimeEach)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   207
  do_uintx_flag(CodeCacheSegmentSize)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   208
  do_intx_flag(CodeEntryAlignment)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   209
  do_bool_flag(CompactFields)                                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   210
  do_intx_flag(ContendedPaddingWidth)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   211
  do_bool_flag(DontCompileHugeMethods)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   212
  do_bool_flag(EagerJVMCI)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   213
  do_bool_flag(EnableContended)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   214
  do_intx_flag(FieldsAllocationStyle)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   215
  do_bool_flag(FoldStableValues)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   216
  do_bool_flag(ForceUnreachable)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   217
  do_intx_flag(HugeMethodLimit)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   218
  do_bool_flag(Inline)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   219
  do_intx_flag(JVMCICounterSize)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   220
  do_bool_flag(JVMCIPrintProperties)                                       \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   221
  do_bool_flag(JVMCIUseFastLocking)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   222
  do_intx_flag(MethodProfileWidth)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   223
  do_intx_flag(ObjectAlignmentInBytes)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   224
  do_bool_flag(PrintInlining)                                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   225
  do_bool_flag(ReduceInitialCardMarks)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   226
  do_bool_flag(RestrictContended)                                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   227
  do_intx_flag(StackReservedPages)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   228
  do_intx_flag(StackShadowPages)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   229
  do_bool_flag(TLABStats)                                                  \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   230
  do_uintx_flag(TLABWasteIncrement)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   231
  do_intx_flag(TypeProfileWidth)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   232
  do_bool_flag(UseAESIntrinsics)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   233
  X86_ONLY(do_intx_flag(UseAVX))                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   234
  do_bool_flag(UseBiasedLocking)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   235
  do_bool_flag(UseCRC32Intrinsics)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   236
  do_bool_flag(UseCompressedClassPointers)                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   237
  do_bool_flag(UseCompressedOops)                                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   238
  X86_ONLY(do_bool_flag(UseCountLeadingZerosInstruction))                  \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   239
  X86_ONLY(do_bool_flag(UseCountTrailingZerosInstruction))                 \
50804
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   240
  do_bool_flag(UseConcMarkSweepGC)                                         \
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   241
  do_bool_flag(UseG1GC)                                                    \
50804
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   242
  do_bool_flag(UseParallelGC)                                              \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   243
  do_bool_flag(UseParallelOldGC)                                           \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   244
  do_bool_flag(UseSerialGC)                                                \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   245
  do_bool_flag(UseZGC)                                                     \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   246
  do_bool_flag(UseEpsilonGC)                                               \
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   247
  COMPILER2_PRESENT(do_bool_flag(UseMontgomeryMultiplyIntrinsic))          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   248
  COMPILER2_PRESENT(do_bool_flag(UseMontgomerySquareIntrinsic))            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   249
  COMPILER2_PRESENT(do_bool_flag(UseMulAddIntrinsic))                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   250
  COMPILER2_PRESENT(do_bool_flag(UseMultiplyToLenIntrinsic))               \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   251
  do_bool_flag(UsePopCountInstruction)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   252
  do_bool_flag(UseSHA1Intrinsics)                                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   253
  do_bool_flag(UseSHA256Intrinsics)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   254
  do_bool_flag(UseSHA512Intrinsics)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   255
  do_intx_flag(UseSSE)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   256
  COMPILER2_PRESENT(do_bool_flag(UseSquareToLenIntrinsic))                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   257
  do_bool_flag(UseStackBanging)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   258
  do_bool_flag(UseTLAB)                                                    \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   259
  do_bool_flag(VerifyOops)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   260
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   261
#define BOXED_BOOLEAN(name, value) oop name = ((jboolean)(value) ? boxedTrue() : boxedFalse())
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   262
#define BOXED_DOUBLE(name, value) oop name; do { jvalue p; p.d = (jdouble) (value); name = java_lang_boxing_object::create(T_DOUBLE, &p, CHECK_NULL);} while(0)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   263
#define BOXED_LONG(name, value) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   264
  oop name; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   265
  do { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   266
    jvalue p; p.j = (jlong) (value); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   267
    Handle* e = longs.get(p.j); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   268
    if (e == NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   269
      oop o = java_lang_boxing_object::create(T_LONG, &p, CHECK_NULL); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   270
      Handle h(THREAD, o); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   271
      longs.put(p.j, h); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   272
      name = h(); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   273
    } else { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   274
      name = (*e)(); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   275
    } \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   276
  } while (0)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   277
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   278
#define CSTRING_TO_JSTRING(name, value) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   279
  Handle name; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   280
  do { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   281
    if (value != NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   282
      Handle* e = strings.get(value); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   283
      if (e == NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   284
        Handle h = java_lang_String::create_from_str(value, CHECK_NULL); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   285
        strings.put(value, h); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   286
        name = h; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   287
      } else { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   288
        name = (*e); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   289
      } \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   290
    } \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   291
  } while (0)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   292
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   293
jobjectArray readConfiguration0(JNIEnv *env, TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   294
  ResourceMark rm;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   295
  HandleMark hm;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   296
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   297
  // Used to canonicalize Long and String values.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   298
  ResourceHashtable<jlong, Handle> longs;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   299
  ResourceHashtable<const char*, Handle, &CompilerToVM::cstring_hash, &CompilerToVM::cstring_equals> strings;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   300
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   301
  jvalue prim;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   302
  prim.z = true;  oop boxedTrueOop =  java_lang_boxing_object::create(T_BOOLEAN, &prim, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   303
  Handle boxedTrue(THREAD, boxedTrueOop);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   304
  prim.z = false; oop boxedFalseOop = java_lang_boxing_object::create(T_BOOLEAN, &prim, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   305
  Handle boxedFalse(THREAD, boxedFalseOop);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   306
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   307
  CompilerToVM::Data::initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   308
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   309
  VMField::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   310
  VMFlag::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   311
  VMIntrinsicMethod::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   312
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   313
  int len = JVMCIVMStructs::localHotSpotVMStructs_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   314
  objArrayHandle vmFields = oopFactory::new_objArray_handle(VMField::klass(), len, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   315
  for (int i = 0; i < len ; i++) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   316
    VMStructEntry vmField = JVMCIVMStructs::localHotSpotVMStructs[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   317
    instanceHandle vmFieldObj = InstanceKlass::cast(VMField::klass())->allocate_instance_handle(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   318
    size_t name_buf_len = strlen(vmField.typeName) + strlen(vmField.fieldName) + 2 /* "::" */;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   319
    char* name_buf = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, name_buf_len + 1);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   320
    sprintf(name_buf, "%s::%s", vmField.typeName, vmField.fieldName);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   321
    CSTRING_TO_JSTRING(name, name_buf);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   322
    CSTRING_TO_JSTRING(type, vmField.typeString);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   323
    VMField::set_name(vmFieldObj, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   324
    VMField::set_type(vmFieldObj, type());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   325
    VMField::set_offset(vmFieldObj, vmField.offset);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   326
    VMField::set_address(vmFieldObj, (jlong) vmField.address);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   327
    if (vmField.isStatic && vmField.typeString != NULL) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   328
      if (strcmp(vmField.typeString, "bool") == 0) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   329
        BOXED_BOOLEAN(box, *(jbyte*) vmField.address);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   330
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   331
      } else if (strcmp(vmField.typeString, "int") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   332
                 strcmp(vmField.typeString, "jint") == 0) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   333
        BOXED_LONG(box, *(jint*) vmField.address);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   334
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   335
      } else if (strcmp(vmField.typeString, "uint64_t") == 0) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   336
        BOXED_LONG(box, *(uint64_t*) vmField.address);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   337
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   338
      } else if (strcmp(vmField.typeString, "address") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   339
                 strcmp(vmField.typeString, "intptr_t") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   340
                 strcmp(vmField.typeString, "uintptr_t") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   341
                 strcmp(vmField.typeString, "OopHandle") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   342
                 strcmp(vmField.typeString, "size_t") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   343
                 // All foo* types are addresses.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   344
                 vmField.typeString[strlen(vmField.typeString) - 1] == '*') {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   345
        BOXED_LONG(box, *((address*) vmField.address));
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   346
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   347
      } else {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   348
        JVMCI_ERROR_NULL("VM field %s has unsupported type %s", name_buf, vmField.typeString);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   349
      }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   350
    }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   351
    vmFields->obj_at_put(i, vmFieldObj());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   352
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   353
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   354
  int ints_len = JVMCIVMStructs::localHotSpotVMIntConstants_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   355
  int longs_len = JVMCIVMStructs::localHotSpotVMLongConstants_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   356
  len = ints_len + longs_len;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   357
  objArrayHandle vmConstants = oopFactory::new_objArray_handle(SystemDictionary::Object_klass(), len * 2, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   358
  int insert = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   359
  for (int i = 0; i < ints_len ; i++) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   360
    VMIntConstantEntry c = JVMCIVMStructs::localHotSpotVMIntConstants[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   361
    CSTRING_TO_JSTRING(name, c.name);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   362
    BOXED_LONG(value, c.value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   363
    vmConstants->obj_at_put(insert++, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   364
    vmConstants->obj_at_put(insert++, value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   365
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   366
  for (int i = 0; i < longs_len ; i++) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   367
    VMLongConstantEntry c = JVMCIVMStructs::localHotSpotVMLongConstants[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   368
    CSTRING_TO_JSTRING(name, c.name);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   369
    BOXED_LONG(value, c.value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   370
    vmConstants->obj_at_put(insert++, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   371
    vmConstants->obj_at_put(insert++, value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   372
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   373
  assert(insert == len * 2, "must be");
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   374
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   375
  len = JVMCIVMStructs::localHotSpotVMAddresses_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   376
  objArrayHandle vmAddresses = oopFactory::new_objArray_handle(SystemDictionary::Object_klass(), len * 2, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   377
  for (int i = 0; i < len ; i++) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   378
    VMAddressEntry a = JVMCIVMStructs::localHotSpotVMAddresses[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   379
    CSTRING_TO_JSTRING(name, a.name);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   380
    BOXED_LONG(value, a.value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   381
    vmAddresses->obj_at_put(i * 2, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   382
    vmAddresses->obj_at_put(i * 2 + 1, value);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   383
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   384
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   385
#define COUNT_FLAG(ignore) +1
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   386
#ifdef ASSERT
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   387
#define CHECK_FLAG(type, name) { \
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
   388
  JVMFlag* flag = JVMFlag::find_flag(#name, strlen(#name), /*allow_locked*/ true, /* return_flag */ true); \
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   389
  assert(flag != NULL, "No such flag named " #name); \
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
   390
  assert(flag->is_##type(), "JVMFlag " #name " is not of type " #type); \
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   391
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   392
#else
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   393
#define CHECK_FLAG(type, name)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   394
#endif
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   395
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   396
#define ADD_FLAG(type, name, convert) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   397
  CHECK_FLAG(type, name) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   398
  instanceHandle vmFlagObj = InstanceKlass::cast(VMFlag::klass())->allocate_instance_handle(CHECK_NULL); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   399
  CSTRING_TO_JSTRING(fname, #name); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   400
  CSTRING_TO_JSTRING(ftype, #type); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   401
  VMFlag::set_name(vmFlagObj, fname()); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   402
  VMFlag::set_type(vmFlagObj, ftype()); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   403
  convert(value, name); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   404
  VMFlag::set_value(vmFlagObj, value); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   405
  vmFlags->obj_at_put(i++, vmFlagObj()); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   406
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   407
#define ADD_BOOL_FLAG(name)  ADD_FLAG(bool, name, BOXED_BOOLEAN)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   408
#define ADD_INTX_FLAG(name)  ADD_FLAG(intx, name, BOXED_LONG)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   409
#define ADD_UINTX_FLAG(name) ADD_FLAG(uintx, name, BOXED_LONG)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   410
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   411
  len = 0 + PREDEFINED_CONFIG_FLAGS(COUNT_FLAG, COUNT_FLAG, COUNT_FLAG);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   412
  objArrayHandle vmFlags = oopFactory::new_objArray_handle(VMFlag::klass(), len, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   413
  int i = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   414
  PREDEFINED_CONFIG_FLAGS(ADD_BOOL_FLAG, ADD_INTX_FLAG, ADD_UINTX_FLAG)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   415
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   416
  objArrayHandle vmIntrinsics = CompilerToVM::initialize_intrinsics(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   417
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   418
  objArrayOop data = oopFactory::new_objArray(SystemDictionary::Object_klass(), 5, CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   419
  data->obj_at_put(0, vmFields());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   420
  data->obj_at_put(1, vmConstants());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   421
  data->obj_at_put(2, vmAddresses());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   422
  data->obj_at_put(3, vmFlags());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   423
  data->obj_at_put(4, vmIntrinsics());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   424
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   425
  return (jobjectArray) JNIHandles::make_local(THREAD, data);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   426
#undef COUNT_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   427
#undef ADD_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   428
#undef ADD_BOOL_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   429
#undef ADD_INTX_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   430
#undef ADD_UINTX_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   431
#undef CHECK_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   432
}