|
1 /* |
|
2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
|
3 * |
|
4 * Redistribution and use in source and binary forms, with or without |
|
5 * modification, are permitted provided that the following conditions |
|
6 * are met: |
|
7 * |
|
8 * 1. Redistributions of source code must retain the above copyright |
|
9 * notice, this list of conditions and the following disclaimer. |
|
10 * 2. Redistributions in binary form must reproduce the above copyright |
|
11 * notice, this list of conditions and the following disclaimer in the |
|
12 * documentation and/or other materials provided with the distribution. |
|
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
|
14 * its contributors may be used to endorse or promote products derived |
|
15 * from this software without specific prior written permission. |
|
16 * |
|
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
|
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
|
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 */ |
|
28 |
|
29 #ifndef JITStubs_h |
|
30 #define JITStubs_h |
|
31 |
|
32 #include "CallData.h" |
|
33 #include "MacroAssemblerCodeRef.h" |
|
34 #include "Register.h" |
|
35 #include "ThunkGenerators.h" |
|
36 #include <wtf/HashMap.h> |
|
37 |
|
38 #if ENABLE(JIT) |
|
39 |
|
40 namespace JSC { |
|
41 |
|
42 struct StructureStubInfo; |
|
43 |
|
44 class CodeBlock; |
|
45 class ExecutablePool; |
|
46 class FunctionExecutable; |
|
47 class Identifier; |
|
48 class JSGlobalData; |
|
49 class JSGlobalObject; |
|
50 class JSObject; |
|
51 class JSPropertyNameIterator; |
|
52 class JSValue; |
|
53 class JSValueEncodedAsPointer; |
|
54 class NativeExecutable; |
|
55 class Profiler; |
|
56 class PropertySlot; |
|
57 class PutPropertySlot; |
|
58 class RegisterFile; |
|
59 class RegExp; |
|
60 |
|
61 union JITStubArg { |
|
62 void* asPointer; |
|
63 EncodedJSValue asEncodedJSValue; |
|
64 int32_t asInt32; |
|
65 |
|
66 JSValue jsValue() { return JSValue::decode(asEncodedJSValue); } |
|
67 JSObject* jsObject() { return static_cast<JSObject*>(asPointer); } |
|
68 Identifier& identifier() { return *static_cast<Identifier*>(asPointer); } |
|
69 int32_t int32() { return asInt32; } |
|
70 CodeBlock* codeBlock() { return static_cast<CodeBlock*>(asPointer); } |
|
71 FunctionExecutable* function() { return static_cast<FunctionExecutable*>(asPointer); } |
|
72 RegExp* regExp() { return static_cast<RegExp*>(asPointer); } |
|
73 JSPropertyNameIterator* propertyNameIterator() { return static_cast<JSPropertyNameIterator*>(asPointer); } |
|
74 JSGlobalObject* globalObject() { return static_cast<JSGlobalObject*>(asPointer); } |
|
75 JSString* jsString() { return static_cast<JSString*>(asPointer); } |
|
76 ReturnAddressPtr returnAddress() { return ReturnAddressPtr(asPointer); } |
|
77 }; |
|
78 |
|
79 struct TrampolineStructure { |
|
80 MacroAssemblerCodePtr ctiStringLengthTrampoline; |
|
81 MacroAssemblerCodePtr ctiVirtualCallLink; |
|
82 MacroAssemblerCodePtr ctiVirtualConstructLink; |
|
83 MacroAssemblerCodePtr ctiVirtualCall; |
|
84 MacroAssemblerCodePtr ctiVirtualConstruct; |
|
85 MacroAssemblerCodePtr ctiNativeCall; |
|
86 MacroAssemblerCodePtr ctiNativeConstruct; |
|
87 MacroAssemblerCodePtr ctiSoftModulo; |
|
88 }; |
|
89 |
|
90 #if CPU(X86_64) |
|
91 struct JITStackFrame { |
|
92 void* reserved; // Unused |
|
93 JITStubArg args[6]; |
|
94 void* padding[2]; // Maintain 32-byte stack alignment (possibly overkill). |
|
95 |
|
96 void* code; |
|
97 RegisterFile* registerFile; |
|
98 CallFrame* callFrame; |
|
99 JSValue* exception; |
|
100 Profiler** enabledProfilerReference; |
|
101 JSGlobalData* globalData; |
|
102 |
|
103 void* savedRBX; |
|
104 void* savedR15; |
|
105 void* savedR14; |
|
106 void* savedR13; |
|
107 void* savedR12; |
|
108 void* savedRBP; |
|
109 void* savedRIP; |
|
110 |
|
111 // When JIT code makes a call, it pushes its return address just below the rest of the stack. |
|
112 ReturnAddressPtr* returnAddressSlot() { return reinterpret_cast<ReturnAddressPtr*>(this) - 1; } |
|
113 }; |
|
114 #elif CPU(X86) |
|
115 #if COMPILER(MSVC) || (OS(WINDOWS) && COMPILER(GCC)) |
|
116 #pragma pack(push) |
|
117 #pragma pack(4) |
|
118 #endif // COMPILER(MSVC) || (OS(WINDOWS) && COMPILER(GCC)) |
|
119 struct JITStackFrame { |
|
120 void* reserved; // Unused |
|
121 JITStubArg args[6]; |
|
122 #if USE(JSVALUE32_64) |
|
123 void* padding[2]; // Maintain 16-byte stack alignment. |
|
124 #endif |
|
125 |
|
126 void* savedEBX; |
|
127 void* savedEDI; |
|
128 void* savedESI; |
|
129 void* savedEBP; |
|
130 void* savedEIP; |
|
131 |
|
132 void* code; |
|
133 RegisterFile* registerFile; |
|
134 CallFrame* callFrame; |
|
135 JSValue* exception; |
|
136 Profiler** enabledProfilerReference; |
|
137 JSGlobalData* globalData; |
|
138 |
|
139 // When JIT code makes a call, it pushes its return address just below the rest of the stack. |
|
140 ReturnAddressPtr* returnAddressSlot() { return reinterpret_cast<ReturnAddressPtr*>(this) - 1; } |
|
141 }; |
|
142 #if COMPILER(MSVC) || (OS(WINDOWS) && COMPILER(GCC)) |
|
143 #pragma pack(pop) |
|
144 #endif // COMPILER(MSVC) || (OS(WINDOWS) && COMPILER(GCC)) |
|
145 #elif CPU(ARM_THUMB2) |
|
146 struct JITStackFrame { |
|
147 void* reserved; // Unused |
|
148 JITStubArg args[6]; |
|
149 #if USE(JSVALUE32_64) |
|
150 void* padding[2]; // Maintain 16-byte stack alignment. |
|
151 #endif |
|
152 |
|
153 ReturnAddressPtr thunkReturnAddress; |
|
154 |
|
155 void* preservedReturnAddress; |
|
156 void* preservedR4; |
|
157 void* preservedR5; |
|
158 void* preservedR6; |
|
159 |
|
160 // These arguments passed in r1..r3 (r0 contained the entry code pointed, which is not preserved) |
|
161 RegisterFile* registerFile; |
|
162 CallFrame* callFrame; |
|
163 JSValue* exception; |
|
164 |
|
165 void* padding2; |
|
166 |
|
167 // These arguments passed on the stack. |
|
168 Profiler** enabledProfilerReference; |
|
169 JSGlobalData* globalData; |
|
170 |
|
171 ReturnAddressPtr* returnAddressSlot() { return &thunkReturnAddress; } |
|
172 }; |
|
173 #elif CPU(ARM_TRADITIONAL) |
|
174 struct JITStackFrame { |
|
175 JITStubArg padding; // Unused |
|
176 JITStubArg args[7]; |
|
177 |
|
178 ReturnAddressPtr thunkReturnAddress; |
|
179 |
|
180 void* preservedR4; |
|
181 void* preservedR5; |
|
182 void* preservedR6; |
|
183 void* preservedR7; |
|
184 void* preservedR8; |
|
185 void* preservedLink; |
|
186 |
|
187 RegisterFile* registerFile; |
|
188 CallFrame* callFrame; |
|
189 JSValue* exception; |
|
190 |
|
191 // These arguments passed on the stack. |
|
192 Profiler** enabledProfilerReference; |
|
193 JSGlobalData* globalData; |
|
194 |
|
195 // When JIT code makes a call, it pushes its return address just below the rest of the stack. |
|
196 ReturnAddressPtr* returnAddressSlot() { return &thunkReturnAddress; } |
|
197 }; |
|
198 #elif CPU(MIPS) |
|
199 struct JITStackFrame { |
|
200 void* reserved; // Unused |
|
201 JITStubArg args[6]; |
|
202 |
|
203 void* preservedGP; // store GP when using PIC code |
|
204 void* preservedS0; |
|
205 void* preservedS1; |
|
206 void* preservedS2; |
|
207 void* preservedReturnAddress; |
|
208 |
|
209 ReturnAddressPtr thunkReturnAddress; |
|
210 |
|
211 // These arguments passed in a1..a3 (a0 contained the entry code pointed, which is not preserved) |
|
212 RegisterFile* registerFile; |
|
213 CallFrame* callFrame; |
|
214 JSValue* exception; |
|
215 |
|
216 // These arguments passed on the stack. |
|
217 Profiler** enabledProfilerReference; |
|
218 JSGlobalData* globalData; |
|
219 |
|
220 ReturnAddressPtr* returnAddressSlot() { return &thunkReturnAddress; } |
|
221 }; |
|
222 #else |
|
223 #error "JITStackFrame not defined for this platform." |
|
224 #endif |
|
225 |
|
226 #define JITSTACKFRAME_ARGS_INDEX (OBJECT_OFFSETOF(JITStackFrame, args) / sizeof(void*)) |
|
227 |
|
228 #define STUB_ARGS_DECLARATION void** args |
|
229 #define STUB_ARGS (args) |
|
230 |
|
231 #if CPU(X86) && COMPILER(MSVC) |
|
232 #define JIT_STUB __fastcall |
|
233 #elif CPU(X86) && COMPILER(GCC) && !OS(WINDOWS) |
|
234 #define JIT_STUB __attribute__ ((fastcall)) |
|
235 #else |
|
236 #define JIT_STUB |
|
237 #endif |
|
238 |
|
239 extern "C" void ctiVMThrowTrampoline(); |
|
240 extern "C" void ctiOpThrowNotCaught(); |
|
241 extern "C" EncodedJSValue ctiTrampoline(void* code, RegisterFile*, CallFrame*, JSValue* exception, Profiler**, JSGlobalData*); |
|
242 |
|
243 class JITThunks { |
|
244 public: |
|
245 JITThunks(JSGlobalData*); |
|
246 ~JITThunks(); |
|
247 |
|
248 static void tryCacheGetByID(CallFrame*, CodeBlock*, ReturnAddressPtr returnAddress, JSValue baseValue, const Identifier& propertyName, const PropertySlot&, StructureStubInfo* stubInfo); |
|
249 static void tryCachePutByID(CallFrame*, CodeBlock*, ReturnAddressPtr returnAddress, JSValue baseValue, const PutPropertySlot&, StructureStubInfo* stubInfo, bool direct); |
|
250 |
|
251 MacroAssemblerCodePtr ctiStringLengthTrampoline() { return m_trampolineStructure.ctiStringLengthTrampoline; } |
|
252 MacroAssemblerCodePtr ctiVirtualCallLink() { return m_trampolineStructure.ctiVirtualCallLink; } |
|
253 MacroAssemblerCodePtr ctiVirtualConstructLink() { return m_trampolineStructure.ctiVirtualConstructLink; } |
|
254 MacroAssemblerCodePtr ctiVirtualCall() { return m_trampolineStructure.ctiVirtualCall; } |
|
255 MacroAssemblerCodePtr ctiVirtualConstruct() { return m_trampolineStructure.ctiVirtualConstruct; } |
|
256 MacroAssemblerCodePtr ctiNativeCall() { return m_trampolineStructure.ctiNativeCall; } |
|
257 MacroAssemblerCodePtr ctiNativeConstruct() { return m_trampolineStructure.ctiNativeConstruct; } |
|
258 MacroAssemblerCodePtr ctiSoftModulo() { return m_trampolineStructure.ctiSoftModulo; } |
|
259 |
|
260 MacroAssemblerCodePtr ctiStub(JSGlobalData* globalData, ThunkGenerator generator); |
|
261 |
|
262 PassRefPtr<NativeExecutable> hostFunctionStub(JSGlobalData* globalData, NativeFunction func); |
|
263 PassRefPtr<NativeExecutable> hostFunctionStub(JSGlobalData* globalData, NativeFunction func, ThunkGenerator generator); |
|
264 private: |
|
265 typedef HashMap<ThunkGenerator, MacroAssemblerCodePtr> CTIStubMap; |
|
266 CTIStubMap m_ctiStubMap; |
|
267 typedef HashMap<NativeFunction, RefPtr<NativeExecutable> > HostFunctionStubMap; |
|
268 HostFunctionStubMap m_hostFunctionStubMap; |
|
269 RefPtr<ExecutablePool> m_executablePool; |
|
270 |
|
271 TrampolineStructure m_trampolineStructure; |
|
272 }; |
|
273 |
|
274 extern "C" { |
|
275 EncodedJSValue JIT_STUB cti_op_add(STUB_ARGS_DECLARATION); |
|
276 EncodedJSValue JIT_STUB cti_op_bitand(STUB_ARGS_DECLARATION); |
|
277 EncodedJSValue JIT_STUB cti_op_bitnot(STUB_ARGS_DECLARATION); |
|
278 EncodedJSValue JIT_STUB cti_op_bitor(STUB_ARGS_DECLARATION); |
|
279 EncodedJSValue JIT_STUB cti_op_bitxor(STUB_ARGS_DECLARATION); |
|
280 EncodedJSValue JIT_STUB cti_op_call_NotJSFunction(STUB_ARGS_DECLARATION); |
|
281 EncodedJSValue JIT_STUB cti_op_call_eval(STUB_ARGS_DECLARATION); |
|
282 EncodedJSValue JIT_STUB cti_op_construct_NotJSConstruct(STUB_ARGS_DECLARATION); |
|
283 EncodedJSValue JIT_STUB cti_op_create_this(STUB_ARGS_DECLARATION); |
|
284 EncodedJSValue JIT_STUB cti_op_convert_this(STUB_ARGS_DECLARATION); |
|
285 EncodedJSValue JIT_STUB cti_op_create_arguments(STUB_ARGS_DECLARATION); |
|
286 EncodedJSValue JIT_STUB cti_op_create_arguments_no_params(STUB_ARGS_DECLARATION); |
|
287 EncodedJSValue JIT_STUB cti_op_del_by_id(STUB_ARGS_DECLARATION); |
|
288 EncodedJSValue JIT_STUB cti_op_del_by_val(STUB_ARGS_DECLARATION); |
|
289 EncodedJSValue JIT_STUB cti_op_div(STUB_ARGS_DECLARATION); |
|
290 EncodedJSValue JIT_STUB cti_op_get_by_id(STUB_ARGS_DECLARATION); |
|
291 EncodedJSValue JIT_STUB cti_op_get_by_id_array_fail(STUB_ARGS_DECLARATION); |
|
292 EncodedJSValue JIT_STUB cti_op_get_by_id_custom_stub(STUB_ARGS_DECLARATION); |
|
293 EncodedJSValue JIT_STUB cti_op_get_by_id_generic(STUB_ARGS_DECLARATION); |
|
294 EncodedJSValue JIT_STUB cti_op_get_by_id_getter_stub(STUB_ARGS_DECLARATION); |
|
295 EncodedJSValue JIT_STUB cti_op_get_by_id_method_check(STUB_ARGS_DECLARATION); |
|
296 EncodedJSValue JIT_STUB cti_op_get_by_id_proto_fail(STUB_ARGS_DECLARATION); |
|
297 EncodedJSValue JIT_STUB cti_op_get_by_id_proto_list(STUB_ARGS_DECLARATION); |
|
298 EncodedJSValue JIT_STUB cti_op_get_by_id_proto_list_full(STUB_ARGS_DECLARATION); |
|
299 EncodedJSValue JIT_STUB cti_op_get_by_id_self_fail(STUB_ARGS_DECLARATION); |
|
300 EncodedJSValue JIT_STUB cti_op_get_by_id_string_fail(STUB_ARGS_DECLARATION); |
|
301 EncodedJSValue JIT_STUB cti_op_get_by_val(STUB_ARGS_DECLARATION); |
|
302 EncodedJSValue JIT_STUB cti_op_get_by_val_byte_array(STUB_ARGS_DECLARATION); |
|
303 EncodedJSValue JIT_STUB cti_op_get_by_val_string(STUB_ARGS_DECLARATION); |
|
304 EncodedJSValue JIT_STUB cti_op_in(STUB_ARGS_DECLARATION); |
|
305 EncodedJSValue JIT_STUB cti_op_instanceof(STUB_ARGS_DECLARATION); |
|
306 EncodedJSValue JIT_STUB cti_op_is_boolean(STUB_ARGS_DECLARATION); |
|
307 EncodedJSValue JIT_STUB cti_op_is_function(STUB_ARGS_DECLARATION); |
|
308 EncodedJSValue JIT_STUB cti_op_is_number(STUB_ARGS_DECLARATION); |
|
309 EncodedJSValue JIT_STUB cti_op_is_object(STUB_ARGS_DECLARATION); |
|
310 EncodedJSValue JIT_STUB cti_op_is_string(STUB_ARGS_DECLARATION); |
|
311 EncodedJSValue JIT_STUB cti_op_is_undefined(STUB_ARGS_DECLARATION); |
|
312 EncodedJSValue JIT_STUB cti_op_less(STUB_ARGS_DECLARATION); |
|
313 EncodedJSValue JIT_STUB cti_op_lesseq(STUB_ARGS_DECLARATION); |
|
314 EncodedJSValue JIT_STUB cti_op_lshift(STUB_ARGS_DECLARATION); |
|
315 EncodedJSValue JIT_STUB cti_op_mod(STUB_ARGS_DECLARATION); |
|
316 EncodedJSValue JIT_STUB cti_op_mul(STUB_ARGS_DECLARATION); |
|
317 EncodedJSValue JIT_STUB cti_op_negate(STUB_ARGS_DECLARATION); |
|
318 EncodedJSValue JIT_STUB cti_op_not(STUB_ARGS_DECLARATION); |
|
319 EncodedJSValue JIT_STUB cti_op_nstricteq(STUB_ARGS_DECLARATION); |
|
320 EncodedJSValue JIT_STUB cti_op_post_dec(STUB_ARGS_DECLARATION); |
|
321 EncodedJSValue JIT_STUB cti_op_post_inc(STUB_ARGS_DECLARATION); |
|
322 EncodedJSValue JIT_STUB cti_op_pre_dec(STUB_ARGS_DECLARATION); |
|
323 EncodedJSValue JIT_STUB cti_op_pre_inc(STUB_ARGS_DECLARATION); |
|
324 EncodedJSValue JIT_STUB cti_op_resolve(STUB_ARGS_DECLARATION); |
|
325 EncodedJSValue JIT_STUB cti_op_resolve_base(STUB_ARGS_DECLARATION); |
|
326 EncodedJSValue JIT_STUB cti_op_resolve_global(STUB_ARGS_DECLARATION); |
|
327 EncodedJSValue JIT_STUB cti_op_resolve_global_dynamic(STUB_ARGS_DECLARATION); |
|
328 EncodedJSValue JIT_STUB cti_op_resolve_skip(STUB_ARGS_DECLARATION); |
|
329 EncodedJSValue JIT_STUB cti_op_resolve_with_base(STUB_ARGS_DECLARATION); |
|
330 EncodedJSValue JIT_STUB cti_op_rshift(STUB_ARGS_DECLARATION); |
|
331 EncodedJSValue JIT_STUB cti_op_strcat(STUB_ARGS_DECLARATION); |
|
332 EncodedJSValue JIT_STUB cti_op_stricteq(STUB_ARGS_DECLARATION); |
|
333 EncodedJSValue JIT_STUB cti_op_sub(STUB_ARGS_DECLARATION); |
|
334 EncodedJSValue JIT_STUB cti_op_throw(STUB_ARGS_DECLARATION); |
|
335 EncodedJSValue JIT_STUB cti_op_to_jsnumber(STUB_ARGS_DECLARATION); |
|
336 EncodedJSValue JIT_STUB cti_op_to_primitive(STUB_ARGS_DECLARATION); |
|
337 EncodedJSValue JIT_STUB cti_op_typeof(STUB_ARGS_DECLARATION); |
|
338 EncodedJSValue JIT_STUB cti_op_urshift(STUB_ARGS_DECLARATION); |
|
339 EncodedJSValue JIT_STUB cti_to_object(STUB_ARGS_DECLARATION); |
|
340 EncodedJSValue JIT_STUB cti_vm_throw(STUB_ARGS_DECLARATION); |
|
341 JSObject* JIT_STUB cti_op_new_array(STUB_ARGS_DECLARATION); |
|
342 JSObject* JIT_STUB cti_op_new_error(STUB_ARGS_DECLARATION); |
|
343 JSObject* JIT_STUB cti_op_new_func(STUB_ARGS_DECLARATION); |
|
344 JSObject* JIT_STUB cti_op_new_func_exp(STUB_ARGS_DECLARATION); |
|
345 JSObject* JIT_STUB cti_op_new_object(STUB_ARGS_DECLARATION); |
|
346 JSObject* JIT_STUB cti_op_new_regexp(STUB_ARGS_DECLARATION); |
|
347 JSObject* JIT_STUB cti_op_push_activation(STUB_ARGS_DECLARATION); |
|
348 JSObject* JIT_STUB cti_op_push_new_scope(STUB_ARGS_DECLARATION); |
|
349 JSObject* JIT_STUB cti_op_push_scope(STUB_ARGS_DECLARATION); |
|
350 JSObject* JIT_STUB cti_op_put_by_id_transition_realloc(STUB_ARGS_DECLARATION); |
|
351 JSPropertyNameIterator* JIT_STUB cti_op_get_pnames(STUB_ARGS_DECLARATION); |
|
352 int JIT_STUB cti_op_eq(STUB_ARGS_DECLARATION); |
|
353 int JIT_STUB cti_op_eq_strings(STUB_ARGS_DECLARATION); |
|
354 int JIT_STUB cti_op_jless(STUB_ARGS_DECLARATION); |
|
355 int JIT_STUB cti_op_jlesseq(STUB_ARGS_DECLARATION); |
|
356 int JIT_STUB cti_op_jtrue(STUB_ARGS_DECLARATION); |
|
357 int JIT_STUB cti_op_load_varargs(STUB_ARGS_DECLARATION); |
|
358 int JIT_STUB cti_op_loop_if_lesseq(STUB_ARGS_DECLARATION); |
|
359 int JIT_STUB cti_timeout_check(STUB_ARGS_DECLARATION); |
|
360 int JIT_STUB cti_has_property(STUB_ARGS_DECLARATION); |
|
361 void JIT_STUB cti_op_debug(STUB_ARGS_DECLARATION); |
|
362 void JIT_STUB cti_op_end(STUB_ARGS_DECLARATION); |
|
363 void JIT_STUB cti_op_jmp_scopes(STUB_ARGS_DECLARATION); |
|
364 void JIT_STUB cti_op_pop_scope(STUB_ARGS_DECLARATION); |
|
365 void JIT_STUB cti_op_profile_did_call(STUB_ARGS_DECLARATION); |
|
366 void JIT_STUB cti_op_profile_will_call(STUB_ARGS_DECLARATION); |
|
367 void JIT_STUB cti_op_put_by_id(STUB_ARGS_DECLARATION); |
|
368 void JIT_STUB cti_op_put_by_id_fail(STUB_ARGS_DECLARATION); |
|
369 void JIT_STUB cti_op_put_by_id_generic(STUB_ARGS_DECLARATION); |
|
370 void JIT_STUB cti_op_put_by_id_direct(STUB_ARGS_DECLARATION); |
|
371 void JIT_STUB cti_op_put_by_id_direct_fail(STUB_ARGS_DECLARATION); |
|
372 void JIT_STUB cti_op_put_by_id_direct_generic(STUB_ARGS_DECLARATION); |
|
373 void JIT_STUB cti_op_put_by_index(STUB_ARGS_DECLARATION); |
|
374 void JIT_STUB cti_op_put_by_val(STUB_ARGS_DECLARATION); |
|
375 void JIT_STUB cti_op_put_by_val_byte_array(STUB_ARGS_DECLARATION); |
|
376 void JIT_STUB cti_op_put_getter(STUB_ARGS_DECLARATION); |
|
377 void JIT_STUB cti_op_put_setter(STUB_ARGS_DECLARATION); |
|
378 void JIT_STUB cti_op_ret_scopeChain(STUB_ARGS_DECLARATION); |
|
379 void JIT_STUB cti_op_tear_off_activation(STUB_ARGS_DECLARATION); |
|
380 void JIT_STUB cti_op_tear_off_arguments(STUB_ARGS_DECLARATION); |
|
381 void JIT_STUB cti_register_file_check(STUB_ARGS_DECLARATION); |
|
382 void* JIT_STUB cti_op_call_arityCheck(STUB_ARGS_DECLARATION); |
|
383 void* JIT_STUB cti_op_construct_arityCheck(STUB_ARGS_DECLARATION); |
|
384 void* JIT_STUB cti_op_call_jitCompile(STUB_ARGS_DECLARATION); |
|
385 void* JIT_STUB cti_op_construct_jitCompile(STUB_ARGS_DECLARATION); |
|
386 void* JIT_STUB cti_op_switch_char(STUB_ARGS_DECLARATION); |
|
387 void* JIT_STUB cti_op_switch_imm(STUB_ARGS_DECLARATION); |
|
388 void* JIT_STUB cti_op_switch_string(STUB_ARGS_DECLARATION); |
|
389 void* JIT_STUB cti_vm_lazyLinkCall(STUB_ARGS_DECLARATION); |
|
390 void* JIT_STUB cti_vm_lazyLinkConstruct(STUB_ARGS_DECLARATION); |
|
391 } // extern "C" |
|
392 |
|
393 } // namespace JSC |
|
394 |
|
395 #endif // ENABLE(JIT) |
|
396 |
|
397 #endif // JITStubs_h |