src/hotspot/cpu/zero/compiledIC_zero.cpp
author stefank
Thu, 09 May 2019 14:28:30 +0200
changeset 54786 ebf733a324d4
parent 47216 71c04702a3d5
permissions -rw-r--r--
8223624: Cleanup includes of universe.hpp Reviewed-by: coleenp, lkorinth
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     1
/*
38035
a6105022c551 8153818: Move similar CompiledIC platform specific code to shared code.
kvn
parents: 33461
diff changeset
     2
 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     4
 *
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     7
 * published by the Free Software Foundation.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     8
 *
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    13
 * accompanied this code).
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    14
 *
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    18
 *
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    21
 * questions.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    22
 *
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    23
 */
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    24
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    25
#include "precompiled.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    26
#include "classfile/systemDictionary.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    27
#include "code/codeCache.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    28
#include "code/compiledIC.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    29
#include "code/icBuffer.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    30
#include "code/nmethod.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    31
#include "code/vtableStubs.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    32
#include "interpreter/interpreter.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    33
#include "interpreter/linkResolver.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    34
#include "memory/metadataFactory.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    35
#include "memory/oopFactory.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    36
#include "oops/method.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    37
#include "oops/oop.inline.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    38
#include "oops/symbol.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    39
#include "runtime/icache.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    40
#include "runtime/sharedRuntime.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    41
#include "runtime/stubRoutines.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    42
#include "utilities/events.hpp"
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    43
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    44
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    45
// ----------------------------------------------------------------------------
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    46
33461
4f430ebdf117 8140238: Zero fails to build from source
enevill
parents: 32082
diff changeset
    47
address CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf, address mark) {
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    48
  ShouldNotReachHere(); // Only needed for COMPILER2.
32082
2a3323e25de1 8130309: Need to bailout cleanly if creation of stubs fails when codecache is out of space
thartmann
parents: 25359
diff changeset
    49
  return NULL;
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    50
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    51
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    52
int CompiledStaticCall::to_interp_stub_size() {
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    53
  ShouldNotReachHere(); // Only needed for COMPILER2.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    54
  return 0;
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    55
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    56
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    57
// Relocation entries for call stub, compiled java to interpreter.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    58
int CompiledStaticCall::reloc_to_interp_stub() {
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    59
  ShouldNotReachHere(); // Only needed for COMPILER2.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    60
  return 0;
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    61
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    62
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 38035
diff changeset
    63
void CompiledDirectStaticCall::set_to_interpreted(const methodHandle& callee, address entry) {
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    64
  ShouldNotReachHere(); // Only needed for COMPILER2.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    65
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    66
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 38035
diff changeset
    67
void CompiledDirectStaticCall::set_stub_to_clean(static_stub_Relocation* static_stub) {
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    68
  ShouldNotReachHere(); // Only needed for COMPILER2.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    69
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    70
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    71
//-----------------------------------------------------------------------------
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    72
// Non-product mode code.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    73
#ifndef PRODUCT
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    74
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 38035
diff changeset
    75
void CompiledDirectStaticCall::verify() {
17094
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    76
  ShouldNotReachHere(); // Only needed for COMPILER2.
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    77
}
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    78
29c4955396d2 8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff changeset
    79
#endif // !PRODUCT