annotate src/share/vm/runtime/javaCalls.hpp @ 9126:bc26f978b0ce

HotSpotResolvedObjectType: implement hasFinalizeSubclass() correctly don't use the (wrong) cached value, but ask the runtime on each request. Fixes regression on xml.* benchmarks @ specjvm2008. The problem was: After the constructor of Object was deoptimized due to an assumption violation, it was recompiled again after some time. However, on recompilation, the value of hasFinalizeSubclass for the class was not updated and it was compiled again with a, now wrong, assumption, which then triggers deoptimization again. This was repeated until it hit the recompilation limit (defined by PerMethodRecompilationCutoff), and therefore only executed by the interpreter from now on, causing the performance regression.
author Bernhard Urban <bernhard.urban@jku.at>
date Mon, 15 Apr 2013 19:54:58 +0200
parents 2156359ee519
children 6b0fd0964b87
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1506
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1506
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1506
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_RUNTIME_JAVACALLS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_RUNTIME_JAVACALLS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "memory/allocation.hpp"
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
29 #include "oops/method.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #include "runtime/handles.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 #include "runtime/javaFrameAnchor.hpp"
7180
f34d701e952e 8003935: Simplify the needed includes for using Thread::current()
stefank
parents: 6725
diff changeset
32 #include "runtime/thread.inline.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33 #include "runtime/vmThread.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
34 #ifdef TARGET_ARCH_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
35 # include "jniTypes_x86.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
36 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
37 #ifdef TARGET_ARCH_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
38 # include "jniTypes_sparc.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
39 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
40 #ifdef TARGET_ARCH_zero
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
41 # include "jniTypes_zero.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
42 #endif
2192
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
43 #ifdef TARGET_ARCH_arm
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
44 # include "jniTypes_arm.hpp"
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
45 #endif
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
46 #ifdef TARGET_ARCH_ppc
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
47 # include "jniTypes_ppc.hpp"
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 2177
diff changeset
48 #endif
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
49
0
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // A JavaCallWrapper is constructed before each JavaCall and destructed after the call.
a61af66fc99e Initial load
duke
parents:
diff changeset
51 // Its purpose is to allocate/deallocate a new handle block and to save/restore the last
a61af66fc99e Initial load
duke
parents:
diff changeset
52 // Java fp/sp. A pointer to the JavaCallWrapper is stored on the stack.
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 class JavaCallWrapper: StackObj {
a61af66fc99e Initial load
duke
parents:
diff changeset
55 friend class VMStructs;
a61af66fc99e Initial load
duke
parents:
diff changeset
56 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
57 JavaThread* _thread; // the thread to which this call belongs
a61af66fc99e Initial load
duke
parents:
diff changeset
58 JNIHandleBlock* _handles; // the saved handle block
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
59 Method* _callee_method; // to be able to collect arguments if entry frame is top frame
0
a61af66fc99e Initial load
duke
parents:
diff changeset
60 oop _receiver; // the receiver of the call (if a non-static call)
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 JavaFrameAnchor _anchor; // last thread anchor state that we must restore
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 JavaValue* _result; // result value
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
67 // Construction/destruction
a61af66fc99e Initial load
duke
parents:
diff changeset
68 JavaCallWrapper(methodHandle callee_method, Handle receiver, JavaValue* result, TRAPS);
a61af66fc99e Initial load
duke
parents:
diff changeset
69 ~JavaCallWrapper();
a61af66fc99e Initial load
duke
parents:
diff changeset
70
a61af66fc99e Initial load
duke
parents:
diff changeset
71 // Accessors
a61af66fc99e Initial load
duke
parents:
diff changeset
72 JavaThread* thread() const { return _thread; }
a61af66fc99e Initial load
duke
parents:
diff changeset
73 JNIHandleBlock* handles() const { return _handles; }
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 JavaFrameAnchor* anchor(void) { return &_anchor; }
a61af66fc99e Initial load
duke
parents:
diff changeset
76
a61af66fc99e Initial load
duke
parents:
diff changeset
77 JavaValue* result() const { return _result; }
a61af66fc99e Initial load
duke
parents:
diff changeset
78 // GC support
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
79 Method* callee_method() { return _callee_method; }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80 oop receiver() { return _receiver; }
a61af66fc99e Initial load
duke
parents:
diff changeset
81 void oops_do(OopClosure* f);
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 };
a61af66fc99e Initial load
duke
parents:
diff changeset
84
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 // Encapsulates arguments to a JavaCall (faster, safer, and more convenient than using var-args)
a61af66fc99e Initial load
duke
parents:
diff changeset
87 class JavaCallArguments : public StackObj {
a61af66fc99e Initial load
duke
parents:
diff changeset
88 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
89 enum Constants {
a61af66fc99e Initial load
duke
parents:
diff changeset
90 _default_size = 8 // Must be at least # of arguments in JavaCalls methods
a61af66fc99e Initial load
duke
parents:
diff changeset
91 };
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 intptr_t _value_buffer [_default_size + 1];
a61af66fc99e Initial load
duke
parents:
diff changeset
94 bool _is_oop_buffer[_default_size + 1];
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 intptr_t* _value;
a61af66fc99e Initial load
duke
parents:
diff changeset
97 bool* _is_oop;
a61af66fc99e Initial load
duke
parents:
diff changeset
98 int _size;
a61af66fc99e Initial load
duke
parents:
diff changeset
99 int _max_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
100 bool _start_at_zero; // Support late setting of receiver
8151
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
101 #ifdef GRAAL
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
102 nmethod* _alternative_target; // Nmethod that should be called instead of normal target
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
103 #endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
104
a61af66fc99e Initial load
duke
parents:
diff changeset
105 void initialize() {
a61af66fc99e Initial load
duke
parents:
diff changeset
106 // Starts at first element to support set_receiver.
a61af66fc99e Initial load
duke
parents:
diff changeset
107 _value = &_value_buffer[1];
a61af66fc99e Initial load
duke
parents:
diff changeset
108 _is_oop = &_is_oop_buffer[1];
a61af66fc99e Initial load
duke
parents:
diff changeset
109
a61af66fc99e Initial load
duke
parents:
diff changeset
110 _max_size = _default_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
111 _size = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
112 _start_at_zero = false;
8151
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
113 GRAAL_ONLY(_alternative_target = NULL;)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
114 }
a61af66fc99e Initial load
duke
parents:
diff changeset
115
a61af66fc99e Initial load
duke
parents:
diff changeset
116 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
117 JavaCallArguments() { initialize(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 JavaCallArguments(Handle receiver) {
a61af66fc99e Initial load
duke
parents:
diff changeset
120 initialize();
a61af66fc99e Initial load
duke
parents:
diff changeset
121 push_oop(receiver);
a61af66fc99e Initial load
duke
parents:
diff changeset
122 }
a61af66fc99e Initial load
duke
parents:
diff changeset
123
a61af66fc99e Initial load
duke
parents:
diff changeset
124 JavaCallArguments(int max_size) {
a61af66fc99e Initial load
duke
parents:
diff changeset
125 if (max_size > _default_size) {
a61af66fc99e Initial load
duke
parents:
diff changeset
126 _value = NEW_RESOURCE_ARRAY(intptr_t, max_size + 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
127 _is_oop = NEW_RESOURCE_ARRAY(bool, max_size + 1);
1506
2338d41fbd81 6943304: remove tagged stack interpreter
twisti
parents: 470
diff changeset
128
0
a61af66fc99e Initial load
duke
parents:
diff changeset
129 // Reserve room for potential receiver in value and is_oop
a61af66fc99e Initial load
duke
parents:
diff changeset
130 _value++; _is_oop++;
1506
2338d41fbd81 6943304: remove tagged stack interpreter
twisti
parents: 470
diff changeset
131
0
a61af66fc99e Initial load
duke
parents:
diff changeset
132 _max_size = max_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
133 _size = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
134 _start_at_zero = false;
8157
2156359ee519 Fix JavaCallArguments initialization.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 8151
diff changeset
135 GRAAL_ONLY(_alternative_target = NULL;)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
136 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
137 initialize();
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139 }
a61af66fc99e Initial load
duke
parents:
diff changeset
140
8151
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
141 #ifdef GRAAL
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
142 void set_alternative_target(nmethod* target) {
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
143 _alternative_target = target;
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
144 }
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
145
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
146 nmethod* alternative_target() {
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
147 return _alternative_target;
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
148 }
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
149 #endif
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
150
0
a61af66fc99e Initial load
duke
parents:
diff changeset
151 inline void push_oop(Handle h) { _is_oop[_size] = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
152 JNITypes::put_obj((oop)h.raw_value(), _value, _size); }
a61af66fc99e Initial load
duke
parents:
diff changeset
153
a61af66fc99e Initial load
duke
parents:
diff changeset
154 inline void push_int(int i) { _is_oop[_size] = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
155 JNITypes::put_int(i, _value, _size); }
a61af66fc99e Initial load
duke
parents:
diff changeset
156
a61af66fc99e Initial load
duke
parents:
diff changeset
157 inline void push_double(double d) { _is_oop[_size] = false; _is_oop[_size + 1] = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
158 JNITypes::put_double(d, _value, _size); }
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 inline void push_long(jlong l) { _is_oop[_size] = false; _is_oop[_size + 1] = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
161 JNITypes::put_long(l, _value, _size); }
a61af66fc99e Initial load
duke
parents:
diff changeset
162
a61af66fc99e Initial load
duke
parents:
diff changeset
163 inline void push_float(float f) { _is_oop[_size] = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
164 JNITypes::put_float(f, _value, _size); }
a61af66fc99e Initial load
duke
parents:
diff changeset
165
a61af66fc99e Initial load
duke
parents:
diff changeset
166 // receiver
a61af66fc99e Initial load
duke
parents:
diff changeset
167 Handle receiver() {
a61af66fc99e Initial load
duke
parents:
diff changeset
168 assert(_size > 0, "must at least be one argument");
a61af66fc99e Initial load
duke
parents:
diff changeset
169 assert(_is_oop[0], "first argument must be an oop");
a61af66fc99e Initial load
duke
parents:
diff changeset
170 assert(_value[0] != 0, "receiver must be not-null");
a61af66fc99e Initial load
duke
parents:
diff changeset
171 return Handle((oop*)_value[0], false);
a61af66fc99e Initial load
duke
parents:
diff changeset
172 }
a61af66fc99e Initial load
duke
parents:
diff changeset
173
a61af66fc99e Initial load
duke
parents:
diff changeset
174 void set_receiver(Handle h) {
a61af66fc99e Initial load
duke
parents:
diff changeset
175 assert(_start_at_zero == false, "can only be called once");
a61af66fc99e Initial load
duke
parents:
diff changeset
176 _start_at_zero = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
177 _is_oop--;
a61af66fc99e Initial load
duke
parents:
diff changeset
178 _value--;
a61af66fc99e Initial load
duke
parents:
diff changeset
179 _size++;
a61af66fc99e Initial load
duke
parents:
diff changeset
180 _is_oop[0] = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
181 _value[0] = (intptr_t)h.raw_value();
a61af66fc99e Initial load
duke
parents:
diff changeset
182 }
a61af66fc99e Initial load
duke
parents:
diff changeset
183
a61af66fc99e Initial load
duke
parents:
diff changeset
184 // Converts all Handles to oops, and returns a reference to parameter vector
a61af66fc99e Initial load
duke
parents:
diff changeset
185 intptr_t* parameters() ;
a61af66fc99e Initial load
duke
parents:
diff changeset
186 int size_of_parameters() const { return _size; }
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 // Verify that pushed arguments fits a given method
465
dc16daa0329d 6739363: Xcheck jni doesn't check native function arguments
poonam
parents: 0
diff changeset
189 void verify(methodHandle method, BasicType return_type, Thread *thread);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
190 };
a61af66fc99e Initial load
duke
parents:
diff changeset
191
a61af66fc99e Initial load
duke
parents:
diff changeset
192 // All calls to Java have to go via JavaCalls. Sets up the stack frame
a61af66fc99e Initial load
duke
parents:
diff changeset
193 // and makes sure that the last_Java_frame pointers are chained correctly.
a61af66fc99e Initial load
duke
parents:
diff changeset
194 //
a61af66fc99e Initial load
duke
parents:
diff changeset
195
a61af66fc99e Initial load
duke
parents:
diff changeset
196 class JavaCalls: AllStatic {
8151
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
197 static void call_helper(JavaValue* result, methodHandle* method, JavaCallArguments* args, TRAPS);
b8f261ba79c6 Minimize diff to plain HotSpot version.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 7212
diff changeset
198 public:
0
a61af66fc99e Initial load
duke
parents:
diff changeset
199 // Optimized Constuctor call
a61af66fc99e Initial load
duke
parents:
diff changeset
200 static void call_default_constructor(JavaThread* thread, methodHandle method, Handle receiver, TRAPS);
a61af66fc99e Initial load
duke
parents:
diff changeset
201
a61af66fc99e Initial load
duke
parents:
diff changeset
202 // call_special
a61af66fc99e Initial load
duke
parents:
diff changeset
203 // ------------
a61af66fc99e Initial load
duke
parents:
diff changeset
204 // The receiver must be first oop in argument list
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
205 static void call_special(JavaValue* result, KlassHandle klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
206
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
207 static void call_special(JavaValue* result, Handle receiver, KlassHandle klass, Symbol* name, Symbol* signature, TRAPS); // No args
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
208 static void call_special(JavaValue* result, Handle receiver, KlassHandle klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS);
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
209 static void call_special(JavaValue* result, Handle receiver, KlassHandle klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
210
1421
6223633ce7dd changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
Lukas Stadler <lukas.stadler@oracle.com>
parents: 470
diff changeset
211 // interface call
6223633ce7dd changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
Lukas Stadler <lukas.stadler@oracle.com>
parents: 470
diff changeset
212 // ------------
6223633ce7dd changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
Lukas Stadler <lukas.stadler@oracle.com>
parents: 470
diff changeset
213
6223633ce7dd changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
Lukas Stadler <lukas.stadler@oracle.com>
parents: 470
diff changeset
214 // The receiver must be first oop in argument list
2182
9569fdf936ff Made merge compile.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents: 2181
diff changeset
215 static void call_interface(JavaValue* result, KlassHandle spec_klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS);
1421
6223633ce7dd changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
Lukas Stadler <lukas.stadler@oracle.com>
parents: 470
diff changeset
216
0
a61af66fc99e Initial load
duke
parents:
diff changeset
217 // virtual call
a61af66fc99e Initial load
duke
parents:
diff changeset
218 // ------------
a61af66fc99e Initial load
duke
parents:
diff changeset
219
a61af66fc99e Initial load
duke
parents:
diff changeset
220 // The receiver must be first oop in argument list
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
221 static void call_virtual(JavaValue* result, KlassHandle spec_klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
222
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
223 static void call_virtual(JavaValue* result, Handle receiver, KlassHandle spec_klass, Symbol* name, Symbol* signature, TRAPS); // No args
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
224 static void call_virtual(JavaValue* result, Handle receiver, KlassHandle spec_klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS);
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
225 static void call_virtual(JavaValue* result, Handle receiver, KlassHandle spec_klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
226
a61af66fc99e Initial load
duke
parents:
diff changeset
227 // Static call
a61af66fc99e Initial load
duke
parents:
diff changeset
228 // -----------
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
229 static void call_static(JavaValue* result, KlassHandle klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
230
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
231 static void call_static(JavaValue* result, KlassHandle klass, Symbol* name, Symbol* signature, TRAPS);
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
232 static void call_static(JavaValue* result, KlassHandle klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS);
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
233 static void call_static(JavaValue* result, KlassHandle klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
234
a61af66fc99e Initial load
duke
parents:
diff changeset
235 // Low-level interface
a61af66fc99e Initial load
duke
parents:
diff changeset
236 static void call(JavaValue* result, methodHandle method, JavaCallArguments* args, TRAPS);
a61af66fc99e Initial load
duke
parents:
diff changeset
237 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
238
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
239 #endif // SHARE_VM_RUNTIME_JAVACALLS_HPP