src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp
author dnsimon
Wed, 21 Nov 2018 22:02:17 +0100
changeset 52645 74cf02d5f6e2
parent 50804 f5f3deb1412c
child 52934 8deeb7bba516
permissions -rw-r--r--
8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects Reviewed-by: kvn, never
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"
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    27
#include "memory/oopFactory.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    28
#include "oops/objArrayOop.inline.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    29
#include "jvmci/jvmciRuntime.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    30
#include "jvmci/jvmciCompilerToVM.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    31
#include "jvmci/vmStructs_jvmci.hpp"
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    32
#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
    33
#include "runtime/handles.inline.hpp"
49593
4dd58ecc9912 8200105: Remove cyclic dependency between oop.inline.hpp and collectedHeap.inline.hpp
stefank
parents: 49480
diff changeset
    34
#include "runtime/sharedRuntime.hpp"
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    35
#include "utilities/resourceHash.hpp"
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    36
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
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
    39
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
    40
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    41
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
    42
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    43
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
    44
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
    45
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
    46
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
    47
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    48
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
    49
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    50
CollectedHeap* CompilerToVM::Data::Universe_collectedHeap;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    51
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
    52
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
    53
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
    54
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
    55
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
    56
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
    57
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
    58
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
    59
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    60
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
    61
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
    62
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
    63
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
    64
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
    65
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    66
jbyte* CompilerToVM::Data::cardtable_start_address;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    67
int CompilerToVM::Data::cardtable_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    68
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    69
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
    70
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    71
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
    72
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
    73
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
    74
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
    75
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
    76
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
    77
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
    78
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    79
address CompilerToVM::Data::dsin;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    80
address CompilerToVM::Data::dcos;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    81
address CompilerToVM::Data::dtan;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    82
address CompilerToVM::Data::dexp;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    83
address CompilerToVM::Data::dlog;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    84
address CompilerToVM::Data::dlog10;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    85
address CompilerToVM::Data::dpow;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    86
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    87
address CompilerToVM::Data::symbol_init;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    88
address CompilerToVM::Data::symbol_clinit;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    89
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    90
void CompilerToVM::Data::initialize(TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    91
  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
    92
  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
    93
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    94
  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
    95
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
    96
  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
    97
  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
    98
  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
    99
  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
   100
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   101
  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
   102
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   103
  Universe_collectedHeap = Universe::heap();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   104
  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
   105
  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
   106
  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
   107
  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
   108
  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
   109
  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
   110
  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
   111
  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
   112
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   113
  _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
   114
  _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
   115
  _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
   116
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   117
  _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
   118
  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
   119
  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
   120
  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
   121
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   122
  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
   123
  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
   124
52645
74cf02d5f6e2 8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects
dnsimon
parents: 50804
diff changeset
   125
  _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
   126
49754
ee93c1087584 8201362: Remove CollectedHeap::barrier_set()
pliden
parents: 49593
diff changeset
   127
  BarrierSet* bs = BarrierSet::barrier_set();
49455
848864ed9b17 8199604: Rename CardTableModRefBS to CardTableBarrierSet
eosterlund
parents: 49370
diff changeset
   128
  if (bs->is_a(BarrierSet::CardTableBarrierSet)) {
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   129
    jbyte* base = ci_card_table_address();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   130
    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
   131
    cardtable_start_address = base;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   132
    cardtable_shift = CardTable::card_shift;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   133
  } else {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   134
    // No card mark barriers
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   135
    cardtable_start_address = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   136
    cardtable_shift = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   137
  }
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
  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
   140
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   141
#define SET_TRIGFUNC(name)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   142
  if (StubRoutines::name() != NULL) {                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   143
    name = StubRoutines::name();                                \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   144
  } else {                                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   145
    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
   146
  }
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
  SET_TRIGFUNC(dsin);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   149
  SET_TRIGFUNC(dcos);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   150
  SET_TRIGFUNC(dtan);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   151
  SET_TRIGFUNC(dexp);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   152
  SET_TRIGFUNC(dlog10);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   153
  SET_TRIGFUNC(dlog);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   154
  SET_TRIGFUNC(dpow);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   155
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   156
#undef SET_TRIGFUNC
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   157
}
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
objArrayHandle CompilerToVM::initialize_intrinsics(TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   160
  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
   161
  int index = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   162
  // 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
   163
  // 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
   164
  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
   165
  Handle kls_str;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   166
#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
   167
  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
   168
#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
   169
    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
   170
    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
   171
    if (kls_sid != sid) {                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   172
      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
   173
      kls_sid = sid;                                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   174
    }                                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   175
    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
   176
    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
   177
    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
   178
    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
   179
    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
   180
    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
   181
      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
   182
  }
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
  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
   185
#undef VM_SYMBOL_TO_STRING
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   186
#undef VM_INTRINSIC_INFO
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   187
  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
   188
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   189
  return vmIntrinsics;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   190
}
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
 * 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
   194
 */
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   195
#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
   196
  do_intx_flag(AllocateInstancePrefetchLines)                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   197
  do_intx_flag(AllocatePrefetchDistance)                                   \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   198
  do_intx_flag(AllocatePrefetchInstr)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   199
  do_intx_flag(AllocatePrefetchLines)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   200
  do_intx_flag(AllocatePrefetchStepSize)                                   \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   201
  do_intx_flag(AllocatePrefetchStyle)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   202
  do_intx_flag(BciProfileWidth)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   203
  do_bool_flag(BootstrapJVMCI)                                             \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   204
  do_bool_flag(CITime)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   205
  do_bool_flag(CITimeEach)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   206
  do_uintx_flag(CodeCacheSegmentSize)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   207
  do_intx_flag(CodeEntryAlignment)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   208
  do_bool_flag(CompactFields)                                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   209
  NOT_PRODUCT(do_intx_flag(CompileTheWorldStartAt))                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   210
  NOT_PRODUCT(do_intx_flag(CompileTheWorldStopAt))                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   211
  do_intx_flag(ContendedPaddingWidth)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   212
  do_bool_flag(DontCompileHugeMethods)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   213
  do_bool_flag(EagerJVMCI)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   214
  do_bool_flag(EnableContended)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   215
  do_intx_flag(FieldsAllocationStyle)                                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   216
  do_bool_flag(FoldStableValues)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   217
  do_bool_flag(ForceUnreachable)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   218
  do_intx_flag(HugeMethodLimit)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   219
  do_bool_flag(Inline)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   220
  do_intx_flag(JVMCICounterSize)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   221
  do_bool_flag(JVMCIPrintProperties)                                       \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   222
  do_bool_flag(JVMCIUseFastLocking)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   223
  do_intx_flag(MethodProfileWidth)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   224
  do_intx_flag(ObjectAlignmentInBytes)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   225
  do_bool_flag(PrintInlining)                                              \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   226
  do_bool_flag(ReduceInitialCardMarks)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   227
  do_bool_flag(RestrictContended)                                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   228
  do_intx_flag(StackReservedPages)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   229
  do_intx_flag(StackShadowPages)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   230
  do_bool_flag(TLABStats)                                                  \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   231
  do_uintx_flag(TLABWasteIncrement)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   232
  do_intx_flag(TypeProfileWidth)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   233
  do_bool_flag(UseAESIntrinsics)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   234
  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
   235
  do_bool_flag(UseBiasedLocking)                                           \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   236
  do_bool_flag(UseCRC32Intrinsics)                                         \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   237
  do_bool_flag(UseCompressedClassPointers)                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   238
  do_bool_flag(UseCompressedOops)                                          \
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(UseCountLeadingZerosInstruction))                  \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   240
  X86_ONLY(do_bool_flag(UseCountTrailingZerosInstruction))                 \
50804
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   241
  do_bool_flag(UseConcMarkSweepGC)                                         \
49370
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   242
  do_bool_flag(UseG1GC)                                                    \
50804
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   243
  do_bool_flag(UseParallelGC)                                              \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   244
  do_bool_flag(UseParallelOldGC)                                           \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   245
  do_bool_flag(UseSerialGC)                                                \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   246
  do_bool_flag(UseZGC)                                                     \
f5f3deb1412c 8205703: [JVMCI] Expose all GC selection flags
dnsimon
parents: 49902
diff changeset
   247
  do_bool_flag(UseEpsilonGC)                                               \
49370
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(UseMontgomeryMultiplyIntrinsic))          \
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(UseMontgomerySquareIntrinsic))            \
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(UseMulAddIntrinsic))                      \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   251
  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
   252
  do_bool_flag(UsePopCountInstruction)                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   253
  do_bool_flag(UseSHA1Intrinsics)                                          \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   254
  do_bool_flag(UseSHA256Intrinsics)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   255
  do_bool_flag(UseSHA512Intrinsics)                                        \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   256
  do_intx_flag(UseSSE)                                                     \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   257
  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
   258
  do_bool_flag(UseStackBanging)                                            \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   259
  do_bool_flag(UseTLAB)                                                    \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   260
  do_bool_flag(VerifyOops)                                                 \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   261
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   262
#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
   263
#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
   264
#define BOXED_LONG(name, value) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   265
  oop name; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   266
  do { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   267
    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
   268
    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
   269
    if (e == NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   270
      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
   271
      Handle h(THREAD, o); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   272
      longs.put(p.j, h); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   273
      name = h(); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   274
    } else { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   275
      name = (*e)(); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   276
    } \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   277
  } while (0)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   278
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   279
#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
   280
  Handle name; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   281
  do { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   282
    if (value != NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   283
      Handle* e = strings.get(value); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   284
      if (e == NULL) { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   285
        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
   286
        strings.put(value, h); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   287
        name = h; \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   288
      } else { \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   289
        name = (*e); \
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
    } \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   292
  } while (0)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   293
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   294
jobjectArray readConfiguration0(JNIEnv *env, TRAPS) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   295
  ResourceMark rm;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   296
  HandleMark hm;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   297
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   298
  // 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
   299
  ResourceHashtable<jlong, Handle> longs;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   300
  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
   301
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   302
  jvalue prim;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   303
  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
   304
  Handle boxedTrue(THREAD, boxedTrueOop);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   305
  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
   306
  Handle boxedFalse(THREAD, boxedFalseOop);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   307
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   308
  CompilerToVM::Data::initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   309
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   310
  VMField::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   311
  VMFlag::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   312
  VMIntrinsicMethod::klass()->initialize(CHECK_NULL);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   313
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   314
  int len = JVMCIVMStructs::localHotSpotVMStructs_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   315
  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
   316
  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
   317
    VMStructEntry vmField = JVMCIVMStructs::localHotSpotVMStructs[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   318
    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
   319
    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
   320
    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
   321
    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
   322
    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
   323
    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
   324
    VMField::set_name(vmFieldObj, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   325
    VMField::set_type(vmFieldObj, type());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   326
    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
   327
    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
   328
    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
   329
      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
   330
        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
   331
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   332
      } 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
   333
                 strcmp(vmField.typeString, "jint") == 0) {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   334
        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
   335
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   336
      } 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
   337
        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
   338
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   339
      } 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
   340
                 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
   341
                 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
   342
                 strcmp(vmField.typeString, "OopHandle") == 0 ||
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   343
                 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
   344
                 // All foo* types are addresses.
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   345
                 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
   346
        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
   347
        VMField::set_value(vmFieldObj, box);
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   348
      } else {
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   349
        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
   350
      }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   351
    }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   352
    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
   353
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   354
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   355
  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
   356
  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
   357
  len = ints_len + longs_len;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   358
  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
   359
  int insert = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   360
  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
   361
    VMIntConstantEntry c = JVMCIVMStructs::localHotSpotVMIntConstants[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   362
    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
   363
    BOXED_LONG(value, c.value);
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++, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   365
    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
   366
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   367
  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
   368
    VMLongConstantEntry c = JVMCIVMStructs::localHotSpotVMLongConstants[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   369
    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
   370
    BOXED_LONG(value, c.value);
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++, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   372
    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
   373
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   374
  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
   375
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   376
  len = JVMCIVMStructs::localHotSpotVMAddresses_count();
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   377
  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
   378
  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
   379
    VMAddressEntry a = JVMCIVMStructs::localHotSpotVMAddresses[i];
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   380
    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
   381
    BOXED_LONG(value, a.value);
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, name());
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   383
    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
   384
  }
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   385
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   386
#define COUNT_FLAG(ignore) +1
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   387
#ifdef ASSERT
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   388
#define CHECK_FLAG(type, name) { \
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
   389
  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
   390
  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
   391
  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
   392
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   393
#else
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   394
#define CHECK_FLAG(type, name)
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   395
#endif
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   396
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   397
#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
   398
  CHECK_FLAG(type, name) \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   399
  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
   400
  CSTRING_TO_JSTRING(fname, #name); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   401
  CSTRING_TO_JSTRING(ftype, #type); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   402
  VMFlag::set_name(vmFlagObj, fname()); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   403
  VMFlag::set_type(vmFlagObj, ftype()); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   404
  convert(value, name); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   405
  VMFlag::set_value(vmFlagObj, value); \
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   406
  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
   407
}
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   408
#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
   409
#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
   410
#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
   411
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   412
  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
   413
  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
   414
  int i = 0;
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   415
  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
   416
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   417
  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
   418
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   419
  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
   420
  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
   421
  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
   422
  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
   423
  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
   424
  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
   425
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   426
  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
   427
#undef COUNT_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   428
#undef ADD_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   429
#undef ADD_BOOL_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   430
#undef ADD_INTX_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   431
#undef ADD_UINTX_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   432
#undef CHECK_FLAG
81bc1dc36a53 8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff changeset
   433
}