0
|
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 |
* 1. Redistributions of source code must retain the above copyright
|
|
8 |
* notice, this list of conditions and the following disclaimer.
|
|
9 |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
10 |
* notice, this list of conditions and the following disclaimer in the
|
|
11 |
* documentation and/or other materials provided with the distribution.
|
|
12 |
*
|
|
13 |
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
|
|
14 |
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
15 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
16 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
|
|
17 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
18 |
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
19 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
20 |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
21 |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
23 |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24 |
*/
|
|
25 |
|
|
26 |
#ifndef JITInlineMethods_h
|
|
27 |
#define JITInlineMethods_h
|
|
28 |
|
|
29 |
#include <wtf/Platform.h>
|
|
30 |
|
|
31 |
#if ENABLE(JIT)
|
|
32 |
|
|
33 |
namespace JSC {
|
|
34 |
|
|
35 |
/* Deprecated: Please use JITStubCall instead. */
|
|
36 |
|
|
37 |
// puts an arg onto the stack, as an arg to a context threaded function.
|
|
38 |
ALWAYS_INLINE void JIT::emitPutJITStubArg(RegisterID src, unsigned argumentNumber)
|
|
39 |
{
|
|
40 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
41 |
poke(src, argumentStackOffset);
|
|
42 |
}
|
|
43 |
|
|
44 |
/* Deprecated: Please use JITStubCall instead. */
|
|
45 |
|
|
46 |
ALWAYS_INLINE void JIT::emitPutJITStubArgConstant(unsigned value, unsigned argumentNumber)
|
|
47 |
{
|
|
48 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
49 |
poke(Imm32(value), argumentStackOffset);
|
|
50 |
}
|
|
51 |
|
|
52 |
/* Deprecated: Please use JITStubCall instead. */
|
|
53 |
|
|
54 |
ALWAYS_INLINE void JIT::emitPutJITStubArgConstant(void* value, unsigned argumentNumber)
|
|
55 |
{
|
|
56 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
57 |
poke(ImmPtr(value), argumentStackOffset);
|
|
58 |
}
|
|
59 |
|
|
60 |
/* Deprecated: Please use JITStubCall instead. */
|
|
61 |
|
|
62 |
ALWAYS_INLINE void JIT::emitGetJITStubArg(unsigned argumentNumber, RegisterID dst)
|
|
63 |
{
|
|
64 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
65 |
peek(dst, argumentStackOffset);
|
|
66 |
}
|
|
67 |
|
|
68 |
ALWAYS_INLINE bool JIT::isOperandConstantImmediateDouble(unsigned src)
|
|
69 |
{
|
|
70 |
return m_codeBlock->isConstantRegisterIndex(src) && getConstantOperand(src).isDouble();
|
|
71 |
}
|
|
72 |
|
|
73 |
ALWAYS_INLINE JSValue JIT::getConstantOperand(unsigned src)
|
|
74 |
{
|
|
75 |
ASSERT(m_codeBlock->isConstantRegisterIndex(src));
|
|
76 |
return m_codeBlock->getConstant(src);
|
|
77 |
}
|
|
78 |
|
|
79 |
ALWAYS_INLINE void JIT::emitPutToCallFrameHeader(RegisterID from, RegisterFile::CallFrameHeaderEntry entry)
|
|
80 |
{
|
|
81 |
storePtr(from, Address(callFrameRegister, entry * sizeof(Register)));
|
|
82 |
}
|
|
83 |
|
|
84 |
ALWAYS_INLINE void JIT::emitPutImmediateToCallFrameHeader(void* value, RegisterFile::CallFrameHeaderEntry entry)
|
|
85 |
{
|
|
86 |
storePtr(ImmPtr(value), Address(callFrameRegister, entry * sizeof(Register)));
|
|
87 |
}
|
|
88 |
|
|
89 |
ALWAYS_INLINE void JIT::emitGetFromCallFrameHeaderPtr(RegisterFile::CallFrameHeaderEntry entry, RegisterID to, RegisterID from)
|
|
90 |
{
|
|
91 |
loadPtr(Address(from, entry * sizeof(Register)), to);
|
|
92 |
#if !USE(JSVALUE32_64)
|
|
93 |
killLastResultRegister();
|
|
94 |
#endif
|
|
95 |
}
|
|
96 |
|
|
97 |
ALWAYS_INLINE void JIT::emitGetFromCallFrameHeader32(RegisterFile::CallFrameHeaderEntry entry, RegisterID to, RegisterID from)
|
|
98 |
{
|
|
99 |
load32(Address(from, entry * sizeof(Register)), to);
|
|
100 |
#if !USE(JSVALUE32_64)
|
|
101 |
killLastResultRegister();
|
|
102 |
#endif
|
|
103 |
}
|
|
104 |
|
|
105 |
ALWAYS_INLINE JIT::Call JIT::emitNakedCall(CodePtr function)
|
|
106 |
{
|
|
107 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
108 |
|
|
109 |
Call nakedCall = nearCall();
|
|
110 |
m_calls.append(CallRecord(nakedCall, m_bytecodeIndex, function.executableAddress()));
|
|
111 |
return nakedCall;
|
|
112 |
}
|
|
113 |
|
|
114 |
#if defined(ASSEMBLER_HAS_CONSTANT_POOL) && ASSEMBLER_HAS_CONSTANT_POOL
|
|
115 |
|
|
116 |
ALWAYS_INLINE void JIT::beginUninterruptedSequence(int insnSpace, int constSpace)
|
|
117 |
{
|
|
118 |
#if PLATFORM(ARM_TRADITIONAL)
|
|
119 |
#ifndef NDEBUG
|
|
120 |
// Ensure the label after the sequence can also fit
|
|
121 |
insnSpace += sizeof(ARMWord);
|
|
122 |
constSpace += sizeof(uint64_t);
|
|
123 |
#endif
|
|
124 |
|
|
125 |
ensureSpace(insnSpace, constSpace);
|
|
126 |
|
|
127 |
#endif
|
|
128 |
|
|
129 |
#if defined(ASSEMBLER_HAS_CONSTANT_POOL) && ASSEMBLER_HAS_CONSTANT_POOL
|
|
130 |
#ifndef NDEBUG
|
|
131 |
m_uninterruptedInstructionSequenceBegin = label();
|
|
132 |
m_uninterruptedConstantSequenceBegin = sizeOfConstantPool();
|
|
133 |
#endif
|
|
134 |
#endif
|
|
135 |
}
|
|
136 |
|
|
137 |
ALWAYS_INLINE void JIT::endUninterruptedSequence(int insnSpace, int constSpace)
|
|
138 |
{
|
|
139 |
#if defined(ASSEMBLER_HAS_CONSTANT_POOL) && ASSEMBLER_HAS_CONSTANT_POOL
|
|
140 |
ASSERT(differenceBetween(m_uninterruptedInstructionSequenceBegin, label()) == insnSpace);
|
|
141 |
ASSERT(sizeOfConstantPool() - m_uninterruptedConstantSequenceBegin == constSpace);
|
|
142 |
#endif
|
|
143 |
}
|
|
144 |
|
|
145 |
#endif
|
|
146 |
|
|
147 |
#if PLATFORM(ARM_THUMB2)
|
|
148 |
|
|
149 |
ALWAYS_INLINE void JIT::preserveReturnAddressAfterCall(RegisterID reg)
|
|
150 |
{
|
|
151 |
move(linkRegister, reg);
|
|
152 |
}
|
|
153 |
|
|
154 |
ALWAYS_INLINE void JIT::restoreReturnAddressBeforeReturn(RegisterID reg)
|
|
155 |
{
|
|
156 |
move(reg, linkRegister);
|
|
157 |
}
|
|
158 |
|
|
159 |
ALWAYS_INLINE void JIT::restoreReturnAddressBeforeReturn(Address address)
|
|
160 |
{
|
|
161 |
loadPtr(address, linkRegister);
|
|
162 |
}
|
|
163 |
|
|
164 |
#else // PLATFORM(X86) || PLATFORM(X86_64) || PLATFORM(ARM_TRADITIONAL)
|
|
165 |
|
|
166 |
ALWAYS_INLINE void JIT::preserveReturnAddressAfterCall(RegisterID reg)
|
|
167 |
{
|
|
168 |
pop(reg);
|
|
169 |
}
|
|
170 |
|
|
171 |
ALWAYS_INLINE void JIT::restoreReturnAddressBeforeReturn(RegisterID reg)
|
|
172 |
{
|
|
173 |
push(reg);
|
|
174 |
}
|
|
175 |
|
|
176 |
ALWAYS_INLINE void JIT::restoreReturnAddressBeforeReturn(Address address)
|
|
177 |
{
|
|
178 |
push(address);
|
|
179 |
}
|
|
180 |
|
|
181 |
#endif
|
|
182 |
|
|
183 |
#if USE(JIT_STUB_ARGUMENT_VA_LIST)
|
|
184 |
ALWAYS_INLINE void JIT::restoreArgumentReference()
|
|
185 |
{
|
|
186 |
poke(callFrameRegister, OBJECT_OFFSETOF(struct JITStackFrame, callFrame) / sizeof (void*));
|
|
187 |
}
|
|
188 |
ALWAYS_INLINE void JIT::restoreArgumentReferenceForTrampoline() {}
|
|
189 |
#else
|
|
190 |
ALWAYS_INLINE void JIT::restoreArgumentReference()
|
|
191 |
{
|
|
192 |
move(stackPointerRegister, firstArgumentRegister);
|
|
193 |
poke(callFrameRegister, OBJECT_OFFSETOF(struct JITStackFrame, callFrame) / sizeof (void*));
|
|
194 |
#if PLATFORM(ARM_TRADITIONAL)
|
|
195 |
move(ctiReturnRegister, ARMRegisters::lr);
|
|
196 |
#endif
|
|
197 |
}
|
|
198 |
ALWAYS_INLINE void JIT::restoreArgumentReferenceForTrampoline()
|
|
199 |
{
|
|
200 |
#if PLATFORM(X86)
|
|
201 |
// Within a trampoline the return address will be on the stack at this point.
|
|
202 |
addPtr(Imm32(sizeof(void*)), stackPointerRegister, firstArgumentRegister);
|
|
203 |
#elif PLATFORM(ARM_THUMB2)
|
|
204 |
move(stackPointerRegister, firstArgumentRegister);
|
|
205 |
#endif
|
|
206 |
// In the trampoline on x86-64, the first argument register is not overwritten.
|
|
207 |
}
|
|
208 |
#endif
|
|
209 |
|
|
210 |
ALWAYS_INLINE JIT::Jump JIT::checkStructure(RegisterID reg, Structure* structure)
|
|
211 |
{
|
|
212 |
return branchPtr(NotEqual, Address(reg, OBJECT_OFFSETOF(JSCell, m_structure)), ImmPtr(structure));
|
|
213 |
}
|
|
214 |
|
|
215 |
ALWAYS_INLINE void JIT::linkSlowCaseIfNotJSCell(Vector<SlowCaseEntry>::iterator& iter, int vReg)
|
|
216 |
{
|
|
217 |
if (!m_codeBlock->isKnownNotImmediate(vReg))
|
|
218 |
linkSlowCase(iter);
|
|
219 |
}
|
|
220 |
|
|
221 |
ALWAYS_INLINE void JIT::addSlowCase(Jump jump)
|
|
222 |
{
|
|
223 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
224 |
|
|
225 |
m_slowCases.append(SlowCaseEntry(jump, m_bytecodeIndex));
|
|
226 |
}
|
|
227 |
|
|
228 |
ALWAYS_INLINE void JIT::addSlowCase(JumpList jumpList)
|
|
229 |
{
|
|
230 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
231 |
|
|
232 |
const JumpList::JumpVector& jumpVector = jumpList.jumps();
|
|
233 |
size_t size = jumpVector.size();
|
|
234 |
for (size_t i = 0; i < size; ++i)
|
|
235 |
m_slowCases.append(SlowCaseEntry(jumpVector[i], m_bytecodeIndex));
|
|
236 |
}
|
|
237 |
|
|
238 |
ALWAYS_INLINE void JIT::addJump(Jump jump, int relativeOffset)
|
|
239 |
{
|
|
240 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
241 |
|
|
242 |
m_jmpTable.append(JumpTable(jump, m_bytecodeIndex + relativeOffset));
|
|
243 |
}
|
|
244 |
|
|
245 |
ALWAYS_INLINE void JIT::emitJumpSlowToHot(Jump jump, int relativeOffset)
|
|
246 |
{
|
|
247 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
248 |
|
|
249 |
jump.linkTo(m_labels[m_bytecodeIndex + relativeOffset], this);
|
|
250 |
}
|
|
251 |
|
|
252 |
#if ENABLE(SAMPLING_FLAGS)
|
|
253 |
ALWAYS_INLINE void JIT::setSamplingFlag(int32_t flag)
|
|
254 |
{
|
|
255 |
ASSERT(flag >= 1);
|
|
256 |
ASSERT(flag <= 32);
|
|
257 |
or32(Imm32(1u << (flag - 1)), AbsoluteAddress(&SamplingFlags::s_flags));
|
|
258 |
}
|
|
259 |
|
|
260 |
ALWAYS_INLINE void JIT::clearSamplingFlag(int32_t flag)
|
|
261 |
{
|
|
262 |
ASSERT(flag >= 1);
|
|
263 |
ASSERT(flag <= 32);
|
|
264 |
and32(Imm32(~(1u << (flag - 1))), AbsoluteAddress(&SamplingFlags::s_flags));
|
|
265 |
}
|
|
266 |
#endif
|
|
267 |
|
|
268 |
#if ENABLE(SAMPLING_COUNTERS)
|
|
269 |
ALWAYS_INLINE void JIT::emitCount(AbstractSamplingCounter& counter, uint32_t count)
|
|
270 |
{
|
|
271 |
#if PLATFORM(X86_64) // Or any other 64-bit plattform.
|
|
272 |
addPtr(Imm32(count), AbsoluteAddress(&counter.m_counter));
|
|
273 |
#elif PLATFORM(X86) // Or any other little-endian 32-bit plattform.
|
|
274 |
intptr_t hiWord = reinterpret_cast<intptr_t>(&counter.m_counter) + sizeof(int32_t);
|
|
275 |
add32(Imm32(count), AbsoluteAddress(&counter.m_counter));
|
|
276 |
addWithCarry32(Imm32(0), AbsoluteAddress(reinterpret_cast<void*>(hiWord)));
|
|
277 |
#else
|
|
278 |
#error "SAMPLING_FLAGS not implemented on this platform."
|
|
279 |
#endif
|
|
280 |
}
|
|
281 |
#endif
|
|
282 |
|
|
283 |
#if ENABLE(OPCODE_SAMPLING)
|
|
284 |
#if PLATFORM(X86_64)
|
|
285 |
ALWAYS_INLINE void JIT::sampleInstruction(Instruction* instruction, bool inHostFunction)
|
|
286 |
{
|
|
287 |
move(ImmPtr(m_interpreter->sampler()->sampleSlot()), X86Registers::ecx);
|
|
288 |
storePtr(ImmPtr(m_interpreter->sampler()->encodeSample(instruction, inHostFunction)), X86Registers::ecx);
|
|
289 |
}
|
|
290 |
#else
|
|
291 |
ALWAYS_INLINE void JIT::sampleInstruction(Instruction* instruction, bool inHostFunction)
|
|
292 |
{
|
|
293 |
storePtr(ImmPtr(m_interpreter->sampler()->encodeSample(instruction, inHostFunction)), m_interpreter->sampler()->sampleSlot());
|
|
294 |
}
|
|
295 |
#endif
|
|
296 |
#endif
|
|
297 |
|
|
298 |
#if ENABLE(CODEBLOCK_SAMPLING)
|
|
299 |
#if PLATFORM(X86_64)
|
|
300 |
ALWAYS_INLINE void JIT::sampleCodeBlock(CodeBlock* codeBlock)
|
|
301 |
{
|
|
302 |
move(ImmPtr(m_interpreter->sampler()->codeBlockSlot()), X86Registers::ecx);
|
|
303 |
storePtr(ImmPtr(codeBlock), X86Registers::ecx);
|
|
304 |
}
|
|
305 |
#else
|
|
306 |
ALWAYS_INLINE void JIT::sampleCodeBlock(CodeBlock* codeBlock)
|
|
307 |
{
|
|
308 |
storePtr(ImmPtr(codeBlock), m_interpreter->sampler()->codeBlockSlot());
|
|
309 |
}
|
|
310 |
#endif
|
|
311 |
#endif
|
|
312 |
|
|
313 |
inline JIT::Address JIT::addressFor(unsigned index, RegisterID base)
|
|
314 |
{
|
|
315 |
return Address(base, (index * sizeof(Register)));
|
|
316 |
}
|
|
317 |
|
|
318 |
#if USE(JSVALUE32_64)
|
|
319 |
|
|
320 |
inline JIT::Address JIT::tagFor(unsigned index, RegisterID base)
|
|
321 |
{
|
|
322 |
return Address(base, (index * sizeof(Register)) + OBJECT_OFFSETOF(JSValue, u.asBits.tag));
|
|
323 |
}
|
|
324 |
|
|
325 |
inline JIT::Address JIT::payloadFor(unsigned index, RegisterID base)
|
|
326 |
{
|
|
327 |
return Address(base, (index * sizeof(Register)) + OBJECT_OFFSETOF(JSValue, u.asBits.payload));
|
|
328 |
}
|
|
329 |
|
|
330 |
inline void JIT::emitLoadTag(unsigned index, RegisterID tag)
|
|
331 |
{
|
|
332 |
RegisterID mappedTag;
|
|
333 |
if (getMappedTag(index, mappedTag)) {
|
|
334 |
move(mappedTag, tag);
|
|
335 |
unmap(tag);
|
|
336 |
return;
|
|
337 |
}
|
|
338 |
|
|
339 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
340 |
move(Imm32(getConstantOperand(index).tag()), tag);
|
|
341 |
unmap(tag);
|
|
342 |
return;
|
|
343 |
}
|
|
344 |
|
|
345 |
load32(tagFor(index), tag);
|
|
346 |
unmap(tag);
|
|
347 |
}
|
|
348 |
|
|
349 |
inline void JIT::emitLoadPayload(unsigned index, RegisterID payload)
|
|
350 |
{
|
|
351 |
RegisterID mappedPayload;
|
|
352 |
if (getMappedPayload(index, mappedPayload)) {
|
|
353 |
move(mappedPayload, payload);
|
|
354 |
unmap(payload);
|
|
355 |
return;
|
|
356 |
}
|
|
357 |
|
|
358 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
359 |
move(Imm32(getConstantOperand(index).payload()), payload);
|
|
360 |
unmap(payload);
|
|
361 |
return;
|
|
362 |
}
|
|
363 |
|
|
364 |
load32(payloadFor(index), payload);
|
|
365 |
unmap(payload);
|
|
366 |
}
|
|
367 |
|
|
368 |
inline void JIT::emitLoad(const JSValue& v, RegisterID tag, RegisterID payload)
|
|
369 |
{
|
|
370 |
move(Imm32(v.payload()), payload);
|
|
371 |
move(Imm32(v.tag()), tag);
|
|
372 |
}
|
|
373 |
|
|
374 |
inline void JIT::emitLoad(unsigned index, RegisterID tag, RegisterID payload, RegisterID base)
|
|
375 |
{
|
|
376 |
ASSERT(tag != payload);
|
|
377 |
|
|
378 |
if (base == callFrameRegister) {
|
|
379 |
ASSERT(payload != base);
|
|
380 |
emitLoadPayload(index, payload);
|
|
381 |
emitLoadTag(index, tag);
|
|
382 |
return;
|
|
383 |
}
|
|
384 |
|
|
385 |
if (payload == base) { // avoid stomping base
|
|
386 |
load32(tagFor(index, base), tag);
|
|
387 |
load32(payloadFor(index, base), payload);
|
|
388 |
return;
|
|
389 |
}
|
|
390 |
|
|
391 |
load32(payloadFor(index, base), payload);
|
|
392 |
load32(tagFor(index, base), tag);
|
|
393 |
}
|
|
394 |
|
|
395 |
inline void JIT::emitLoad2(unsigned index1, RegisterID tag1, RegisterID payload1, unsigned index2, RegisterID tag2, RegisterID payload2)
|
|
396 |
{
|
|
397 |
if (isMapped(index1)) {
|
|
398 |
emitLoad(index1, tag1, payload1);
|
|
399 |
emitLoad(index2, tag2, payload2);
|
|
400 |
return;
|
|
401 |
}
|
|
402 |
emitLoad(index2, tag2, payload2);
|
|
403 |
emitLoad(index1, tag1, payload1);
|
|
404 |
}
|
|
405 |
|
|
406 |
inline void JIT::emitLoadDouble(unsigned index, FPRegisterID value)
|
|
407 |
{
|
|
408 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
409 |
Register& inConstantPool = m_codeBlock->constantRegister(index);
|
|
410 |
loadDouble(&inConstantPool, value);
|
|
411 |
} else
|
|
412 |
loadDouble(addressFor(index), value);
|
|
413 |
}
|
|
414 |
|
|
415 |
inline void JIT::emitLoadInt32ToDouble(unsigned index, FPRegisterID value)
|
|
416 |
{
|
|
417 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
418 |
Register& inConstantPool = m_codeBlock->constantRegister(index);
|
|
419 |
char* bytePointer = reinterpret_cast<char*>(&inConstantPool);
|
|
420 |
convertInt32ToDouble(AbsoluteAddress(bytePointer + OBJECT_OFFSETOF(JSValue, u.asBits.payload)), value);
|
|
421 |
} else
|
|
422 |
convertInt32ToDouble(payloadFor(index), value);
|
|
423 |
}
|
|
424 |
|
|
425 |
inline void JIT::emitStore(unsigned index, RegisterID tag, RegisterID payload, RegisterID base)
|
|
426 |
{
|
|
427 |
store32(payload, payloadFor(index, base));
|
|
428 |
store32(tag, tagFor(index, base));
|
|
429 |
}
|
|
430 |
|
|
431 |
inline void JIT::emitStoreInt32(unsigned index, RegisterID payload, bool indexIsInt32)
|
|
432 |
{
|
|
433 |
store32(payload, payloadFor(index, callFrameRegister));
|
|
434 |
if (!indexIsInt32)
|
|
435 |
store32(Imm32(JSValue::Int32Tag), tagFor(index, callFrameRegister));
|
|
436 |
}
|
|
437 |
|
|
438 |
inline void JIT::emitStoreInt32(unsigned index, Imm32 payload, bool indexIsInt32)
|
|
439 |
{
|
|
440 |
store32(payload, payloadFor(index, callFrameRegister));
|
|
441 |
if (!indexIsInt32)
|
|
442 |
store32(Imm32(JSValue::Int32Tag), tagFor(index, callFrameRegister));
|
|
443 |
}
|
|
444 |
|
|
445 |
inline void JIT::emitStoreCell(unsigned index, RegisterID payload, bool indexIsCell)
|
|
446 |
{
|
|
447 |
store32(payload, payloadFor(index, callFrameRegister));
|
|
448 |
if (!indexIsCell)
|
|
449 |
store32(Imm32(JSValue::CellTag), tagFor(index, callFrameRegister));
|
|
450 |
}
|
|
451 |
|
|
452 |
inline void JIT::emitStoreBool(unsigned index, RegisterID tag, bool indexIsBool)
|
|
453 |
{
|
|
454 |
if (!indexIsBool)
|
|
455 |
store32(Imm32(0), payloadFor(index, callFrameRegister));
|
|
456 |
store32(tag, tagFor(index, callFrameRegister));
|
|
457 |
}
|
|
458 |
|
|
459 |
inline void JIT::emitStoreDouble(unsigned index, FPRegisterID value)
|
|
460 |
{
|
|
461 |
storeDouble(value, addressFor(index));
|
|
462 |
}
|
|
463 |
|
|
464 |
inline void JIT::emitStore(unsigned index, const JSValue constant, RegisterID base)
|
|
465 |
{
|
|
466 |
store32(Imm32(constant.payload()), payloadFor(index, base));
|
|
467 |
store32(Imm32(constant.tag()), tagFor(index, base));
|
|
468 |
}
|
|
469 |
|
|
470 |
ALWAYS_INLINE void JIT::emitInitRegister(unsigned dst)
|
|
471 |
{
|
|
472 |
emitStore(dst, jsUndefined());
|
|
473 |
}
|
|
474 |
|
|
475 |
inline bool JIT::isLabeled(unsigned bytecodeIndex)
|
|
476 |
{
|
|
477 |
for (size_t numberOfJumpTargets = m_codeBlock->numberOfJumpTargets(); m_jumpTargetIndex != numberOfJumpTargets; ++m_jumpTargetIndex) {
|
|
478 |
unsigned jumpTarget = m_codeBlock->jumpTarget(m_jumpTargetIndex);
|
|
479 |
if (jumpTarget == bytecodeIndex)
|
|
480 |
return true;
|
|
481 |
if (jumpTarget > bytecodeIndex)
|
|
482 |
return false;
|
|
483 |
}
|
|
484 |
return false;
|
|
485 |
}
|
|
486 |
|
|
487 |
inline void JIT::map(unsigned bytecodeIndex, unsigned virtualRegisterIndex, RegisterID tag, RegisterID payload)
|
|
488 |
{
|
|
489 |
if (isLabeled(bytecodeIndex))
|
|
490 |
return;
|
|
491 |
|
|
492 |
m_mappedBytecodeIndex = bytecodeIndex;
|
|
493 |
m_mappedVirtualRegisterIndex = virtualRegisterIndex;
|
|
494 |
m_mappedTag = tag;
|
|
495 |
m_mappedPayload = payload;
|
|
496 |
}
|
|
497 |
|
|
498 |
inline void JIT::unmap(RegisterID registerID)
|
|
499 |
{
|
|
500 |
if (m_mappedTag == registerID)
|
|
501 |
m_mappedTag = (RegisterID)-1;
|
|
502 |
else if (m_mappedPayload == registerID)
|
|
503 |
m_mappedPayload = (RegisterID)-1;
|
|
504 |
}
|
|
505 |
|
|
506 |
inline void JIT::unmap()
|
|
507 |
{
|
|
508 |
m_mappedBytecodeIndex = (unsigned)-1;
|
|
509 |
m_mappedVirtualRegisterIndex = (unsigned)-1;
|
|
510 |
m_mappedTag = (RegisterID)-1;
|
|
511 |
m_mappedPayload = (RegisterID)-1;
|
|
512 |
}
|
|
513 |
|
|
514 |
inline bool JIT::isMapped(unsigned virtualRegisterIndex)
|
|
515 |
{
|
|
516 |
if (m_mappedBytecodeIndex != m_bytecodeIndex)
|
|
517 |
return false;
|
|
518 |
if (m_mappedVirtualRegisterIndex != virtualRegisterIndex)
|
|
519 |
return false;
|
|
520 |
return true;
|
|
521 |
}
|
|
522 |
|
|
523 |
inline bool JIT::getMappedPayload(unsigned virtualRegisterIndex, RegisterID& payload)
|
|
524 |
{
|
|
525 |
if (m_mappedBytecodeIndex != m_bytecodeIndex)
|
|
526 |
return false;
|
|
527 |
if (m_mappedVirtualRegisterIndex != virtualRegisterIndex)
|
|
528 |
return false;
|
|
529 |
if (m_mappedPayload == (RegisterID)-1)
|
|
530 |
return false;
|
|
531 |
payload = m_mappedPayload;
|
|
532 |
return true;
|
|
533 |
}
|
|
534 |
|
|
535 |
inline bool JIT::getMappedTag(unsigned virtualRegisterIndex, RegisterID& tag)
|
|
536 |
{
|
|
537 |
if (m_mappedBytecodeIndex != m_bytecodeIndex)
|
|
538 |
return false;
|
|
539 |
if (m_mappedVirtualRegisterIndex != virtualRegisterIndex)
|
|
540 |
return false;
|
|
541 |
if (m_mappedTag == (RegisterID)-1)
|
|
542 |
return false;
|
|
543 |
tag = m_mappedTag;
|
|
544 |
return true;
|
|
545 |
}
|
|
546 |
|
|
547 |
inline void JIT::emitJumpSlowCaseIfNotJSCell(unsigned virtualRegisterIndex)
|
|
548 |
{
|
|
549 |
if (!m_codeBlock->isKnownNotImmediate(virtualRegisterIndex))
|
|
550 |
addSlowCase(branch32(NotEqual, tagFor(virtualRegisterIndex), Imm32(JSValue::CellTag)));
|
|
551 |
}
|
|
552 |
|
|
553 |
inline void JIT::emitJumpSlowCaseIfNotJSCell(unsigned virtualRegisterIndex, RegisterID tag)
|
|
554 |
{
|
|
555 |
if (!m_codeBlock->isKnownNotImmediate(virtualRegisterIndex))
|
|
556 |
addSlowCase(branch32(NotEqual, tag, Imm32(JSValue::CellTag)));
|
|
557 |
}
|
|
558 |
|
|
559 |
inline void JIT::linkSlowCaseIfNotJSCell(Vector<SlowCaseEntry>::iterator& iter, unsigned virtualRegisterIndex)
|
|
560 |
{
|
|
561 |
if (!m_codeBlock->isKnownNotImmediate(virtualRegisterIndex))
|
|
562 |
linkSlowCase(iter);
|
|
563 |
}
|
|
564 |
|
|
565 |
ALWAYS_INLINE bool JIT::isOperandConstantImmediateInt(unsigned src)
|
|
566 |
{
|
|
567 |
return m_codeBlock->isConstantRegisterIndex(src) && getConstantOperand(src).isInt32();
|
|
568 |
}
|
|
569 |
|
|
570 |
ALWAYS_INLINE bool JIT::getOperandConstantImmediateInt(unsigned op1, unsigned op2, unsigned& op, int32_t& constant)
|
|
571 |
{
|
|
572 |
if (isOperandConstantImmediateInt(op1)) {
|
|
573 |
constant = getConstantOperand(op1).asInt32();
|
|
574 |
op = op2;
|
|
575 |
return true;
|
|
576 |
}
|
|
577 |
|
|
578 |
if (isOperandConstantImmediateInt(op2)) {
|
|
579 |
constant = getConstantOperand(op2).asInt32();
|
|
580 |
op = op1;
|
|
581 |
return true;
|
|
582 |
}
|
|
583 |
|
|
584 |
return false;
|
|
585 |
}
|
|
586 |
|
|
587 |
/* Deprecated: Please use JITStubCall instead. */
|
|
588 |
|
|
589 |
ALWAYS_INLINE void JIT::emitPutJITStubArg(RegisterID tag, RegisterID payload, unsigned argumentNumber)
|
|
590 |
{
|
|
591 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
592 |
poke(payload, argumentStackOffset);
|
|
593 |
poke(tag, argumentStackOffset + 1);
|
|
594 |
}
|
|
595 |
|
|
596 |
/* Deprecated: Please use JITStubCall instead. */
|
|
597 |
|
|
598 |
ALWAYS_INLINE void JIT::emitPutJITStubArgFromVirtualRegister(unsigned src, unsigned argumentNumber, RegisterID scratch1, RegisterID scratch2)
|
|
599 |
{
|
|
600 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
601 |
if (m_codeBlock->isConstantRegisterIndex(src)) {
|
|
602 |
JSValue constant = m_codeBlock->getConstant(src);
|
|
603 |
poke(Imm32(constant.payload()), argumentStackOffset);
|
|
604 |
poke(Imm32(constant.tag()), argumentStackOffset + 1);
|
|
605 |
} else {
|
|
606 |
emitLoad(src, scratch1, scratch2);
|
|
607 |
poke(scratch2, argumentStackOffset);
|
|
608 |
poke(scratch1, argumentStackOffset + 1);
|
|
609 |
}
|
|
610 |
}
|
|
611 |
|
|
612 |
#else // USE(JSVALUE32_64)
|
|
613 |
|
|
614 |
ALWAYS_INLINE void JIT::killLastResultRegister()
|
|
615 |
{
|
|
616 |
m_lastResultBytecodeRegister = std::numeric_limits<int>::max();
|
|
617 |
}
|
|
618 |
|
|
619 |
// get arg puts an arg from the SF register array into a h/w register
|
|
620 |
ALWAYS_INLINE void JIT::emitGetVirtualRegister(int src, RegisterID dst)
|
|
621 |
{
|
|
622 |
ASSERT(m_bytecodeIndex != (unsigned)-1); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
|
|
623 |
|
|
624 |
// TODO: we want to reuse values that are already in registers if we can - add a register allocator!
|
|
625 |
if (m_codeBlock->isConstantRegisterIndex(src)) {
|
|
626 |
JSValue value = m_codeBlock->getConstant(src);
|
|
627 |
move(ImmPtr(JSValue::encode(value)), dst);
|
|
628 |
killLastResultRegister();
|
|
629 |
return;
|
|
630 |
}
|
|
631 |
|
|
632 |
if (src == m_lastResultBytecodeRegister && m_codeBlock->isTemporaryRegisterIndex(src)) {
|
|
633 |
bool atJumpTarget = false;
|
|
634 |
while (m_jumpTargetsPosition < m_codeBlock->numberOfJumpTargets() && m_codeBlock->jumpTarget(m_jumpTargetsPosition) <= m_bytecodeIndex) {
|
|
635 |
if (m_codeBlock->jumpTarget(m_jumpTargetsPosition) == m_bytecodeIndex)
|
|
636 |
atJumpTarget = true;
|
|
637 |
++m_jumpTargetsPosition;
|
|
638 |
}
|
|
639 |
|
|
640 |
if (!atJumpTarget) {
|
|
641 |
// The argument we want is already stored in eax
|
|
642 |
if (dst != cachedResultRegister)
|
|
643 |
move(cachedResultRegister, dst);
|
|
644 |
killLastResultRegister();
|
|
645 |
return;
|
|
646 |
}
|
|
647 |
}
|
|
648 |
|
|
649 |
loadPtr(Address(callFrameRegister, src * sizeof(Register)), dst);
|
|
650 |
killLastResultRegister();
|
|
651 |
}
|
|
652 |
|
|
653 |
ALWAYS_INLINE void JIT::emitGetVirtualRegisters(int src1, RegisterID dst1, int src2, RegisterID dst2)
|
|
654 |
{
|
|
655 |
if (src2 == m_lastResultBytecodeRegister) {
|
|
656 |
emitGetVirtualRegister(src2, dst2);
|
|
657 |
emitGetVirtualRegister(src1, dst1);
|
|
658 |
} else {
|
|
659 |
emitGetVirtualRegister(src1, dst1);
|
|
660 |
emitGetVirtualRegister(src2, dst2);
|
|
661 |
}
|
|
662 |
}
|
|
663 |
|
|
664 |
ALWAYS_INLINE int32_t JIT::getConstantOperandImmediateInt(unsigned src)
|
|
665 |
{
|
|
666 |
return getConstantOperand(src).asInt32();
|
|
667 |
}
|
|
668 |
|
|
669 |
ALWAYS_INLINE bool JIT::isOperandConstantImmediateInt(unsigned src)
|
|
670 |
{
|
|
671 |
return m_codeBlock->isConstantRegisterIndex(src) && getConstantOperand(src).isInt32();
|
|
672 |
}
|
|
673 |
|
|
674 |
ALWAYS_INLINE void JIT::emitPutVirtualRegister(unsigned dst, RegisterID from)
|
|
675 |
{
|
|
676 |
storePtr(from, Address(callFrameRegister, dst * sizeof(Register)));
|
|
677 |
m_lastResultBytecodeRegister = (from == cachedResultRegister) ? dst : std::numeric_limits<int>::max();
|
|
678 |
}
|
|
679 |
|
|
680 |
ALWAYS_INLINE void JIT::emitInitRegister(unsigned dst)
|
|
681 |
{
|
|
682 |
storePtr(ImmPtr(JSValue::encode(jsUndefined())), Address(callFrameRegister, dst * sizeof(Register)));
|
|
683 |
}
|
|
684 |
|
|
685 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfJSCell(RegisterID reg)
|
|
686 |
{
|
|
687 |
#if USE(JSVALUE64)
|
|
688 |
return branchTestPtr(Zero, reg, tagMaskRegister);
|
|
689 |
#else
|
|
690 |
return branchTest32(Zero, reg, Imm32(JSImmediate::TagMask));
|
|
691 |
#endif
|
|
692 |
}
|
|
693 |
|
|
694 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfBothJSCells(RegisterID reg1, RegisterID reg2, RegisterID scratch)
|
|
695 |
{
|
|
696 |
move(reg1, scratch);
|
|
697 |
orPtr(reg2, scratch);
|
|
698 |
return emitJumpIfJSCell(scratch);
|
|
699 |
}
|
|
700 |
|
|
701 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfJSCell(RegisterID reg)
|
|
702 |
{
|
|
703 |
addSlowCase(emitJumpIfJSCell(reg));
|
|
704 |
}
|
|
705 |
|
|
706 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfNotJSCell(RegisterID reg)
|
|
707 |
{
|
|
708 |
#if USE(JSVALUE64)
|
|
709 |
return branchTestPtr(NonZero, reg, tagMaskRegister);
|
|
710 |
#else
|
|
711 |
return branchTest32(NonZero, reg, Imm32(JSImmediate::TagMask));
|
|
712 |
#endif
|
|
713 |
}
|
|
714 |
|
|
715 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfNotJSCell(RegisterID reg)
|
|
716 |
{
|
|
717 |
addSlowCase(emitJumpIfNotJSCell(reg));
|
|
718 |
}
|
|
719 |
|
|
720 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfNotJSCell(RegisterID reg, int vReg)
|
|
721 |
{
|
|
722 |
if (!m_codeBlock->isKnownNotImmediate(vReg))
|
|
723 |
emitJumpSlowCaseIfNotJSCell(reg);
|
|
724 |
}
|
|
725 |
|
|
726 |
#if USE(JSVALUE64)
|
|
727 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfImmediateNumber(RegisterID reg)
|
|
728 |
{
|
|
729 |
return branchTestPtr(NonZero, reg, tagTypeNumberRegister);
|
|
730 |
}
|
|
731 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfNotImmediateNumber(RegisterID reg)
|
|
732 |
{
|
|
733 |
return branchTestPtr(Zero, reg, tagTypeNumberRegister);
|
|
734 |
}
|
|
735 |
|
|
736 |
inline void JIT::emitLoadDouble(unsigned index, FPRegisterID value)
|
|
737 |
{
|
|
738 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
739 |
Register& inConstantPool = m_codeBlock->constantRegister(index);
|
|
740 |
loadDouble(&inConstantPool, value);
|
|
741 |
} else
|
|
742 |
loadDouble(addressFor(index), value);
|
|
743 |
}
|
|
744 |
|
|
745 |
inline void JIT::emitLoadInt32ToDouble(unsigned index, FPRegisterID value)
|
|
746 |
{
|
|
747 |
if (m_codeBlock->isConstantRegisterIndex(index)) {
|
|
748 |
Register& inConstantPool = m_codeBlock->constantRegister(index);
|
|
749 |
convertInt32ToDouble(AbsoluteAddress(&inConstantPool), value);
|
|
750 |
} else
|
|
751 |
convertInt32ToDouble(addressFor(index), value);
|
|
752 |
}
|
|
753 |
#endif
|
|
754 |
|
|
755 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfImmediateInteger(RegisterID reg)
|
|
756 |
{
|
|
757 |
#if USE(JSVALUE64)
|
|
758 |
return branchPtr(AboveOrEqual, reg, tagTypeNumberRegister);
|
|
759 |
#else
|
|
760 |
return branchTest32(NonZero, reg, Imm32(JSImmediate::TagTypeNumber));
|
|
761 |
#endif
|
|
762 |
}
|
|
763 |
|
|
764 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfNotImmediateInteger(RegisterID reg)
|
|
765 |
{
|
|
766 |
#if USE(JSVALUE64)
|
|
767 |
return branchPtr(Below, reg, tagTypeNumberRegister);
|
|
768 |
#else
|
|
769 |
return branchTest32(Zero, reg, Imm32(JSImmediate::TagTypeNumber));
|
|
770 |
#endif
|
|
771 |
}
|
|
772 |
|
|
773 |
ALWAYS_INLINE JIT::Jump JIT::emitJumpIfNotImmediateIntegers(RegisterID reg1, RegisterID reg2, RegisterID scratch)
|
|
774 |
{
|
|
775 |
move(reg1, scratch);
|
|
776 |
andPtr(reg2, scratch);
|
|
777 |
return emitJumpIfNotImmediateInteger(scratch);
|
|
778 |
}
|
|
779 |
|
|
780 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfNotImmediateInteger(RegisterID reg)
|
|
781 |
{
|
|
782 |
addSlowCase(emitJumpIfNotImmediateInteger(reg));
|
|
783 |
}
|
|
784 |
|
|
785 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfNotImmediateIntegers(RegisterID reg1, RegisterID reg2, RegisterID scratch)
|
|
786 |
{
|
|
787 |
addSlowCase(emitJumpIfNotImmediateIntegers(reg1, reg2, scratch));
|
|
788 |
}
|
|
789 |
|
|
790 |
ALWAYS_INLINE void JIT::emitJumpSlowCaseIfNotImmediateNumber(RegisterID reg)
|
|
791 |
{
|
|
792 |
addSlowCase(emitJumpIfNotImmediateNumber(reg));
|
|
793 |
}
|
|
794 |
|
|
795 |
#if !USE(JSVALUE64)
|
|
796 |
ALWAYS_INLINE void JIT::emitFastArithDeTagImmediate(RegisterID reg)
|
|
797 |
{
|
|
798 |
subPtr(Imm32(JSImmediate::TagTypeNumber), reg);
|
|
799 |
}
|
|
800 |
|
|
801 |
ALWAYS_INLINE JIT::Jump JIT::emitFastArithDeTagImmediateJumpIfZero(RegisterID reg)
|
|
802 |
{
|
|
803 |
return branchSubPtr(Zero, Imm32(JSImmediate::TagTypeNumber), reg);
|
|
804 |
}
|
|
805 |
#endif
|
|
806 |
|
|
807 |
ALWAYS_INLINE void JIT::emitFastArithReTagImmediate(RegisterID src, RegisterID dest)
|
|
808 |
{
|
|
809 |
#if USE(JSVALUE64)
|
|
810 |
emitFastArithIntToImmNoCheck(src, dest);
|
|
811 |
#else
|
|
812 |
if (src != dest)
|
|
813 |
move(src, dest);
|
|
814 |
addPtr(Imm32(JSImmediate::TagTypeNumber), dest);
|
|
815 |
#endif
|
|
816 |
}
|
|
817 |
|
|
818 |
ALWAYS_INLINE void JIT::emitFastArithImmToInt(RegisterID reg)
|
|
819 |
{
|
|
820 |
#if USE(JSVALUE64)
|
|
821 |
UNUSED_PARAM(reg);
|
|
822 |
#else
|
|
823 |
rshiftPtr(Imm32(JSImmediate::IntegerPayloadShift), reg);
|
|
824 |
#endif
|
|
825 |
}
|
|
826 |
|
|
827 |
// operand is int32_t, must have been zero-extended if register is 64-bit.
|
|
828 |
ALWAYS_INLINE void JIT::emitFastArithIntToImmNoCheck(RegisterID src, RegisterID dest)
|
|
829 |
{
|
|
830 |
#if USE(JSVALUE64)
|
|
831 |
if (src != dest)
|
|
832 |
move(src, dest);
|
|
833 |
orPtr(tagTypeNumberRegister, dest);
|
|
834 |
#else
|
|
835 |
signExtend32ToPtr(src, dest);
|
|
836 |
addPtr(dest, dest);
|
|
837 |
emitFastArithReTagImmediate(dest, dest);
|
|
838 |
#endif
|
|
839 |
}
|
|
840 |
|
|
841 |
ALWAYS_INLINE void JIT::emitTagAsBoolImmediate(RegisterID reg)
|
|
842 |
{
|
|
843 |
lshift32(Imm32(JSImmediate::ExtendedPayloadShift), reg);
|
|
844 |
or32(Imm32(static_cast<int32_t>(JSImmediate::FullTagTypeBool)), reg);
|
|
845 |
}
|
|
846 |
|
|
847 |
/* Deprecated: Please use JITStubCall instead. */
|
|
848 |
|
|
849 |
// get arg puts an arg from the SF register array onto the stack, as an arg to a context threaded function.
|
|
850 |
ALWAYS_INLINE void JIT::emitPutJITStubArgFromVirtualRegister(unsigned src, unsigned argumentNumber, RegisterID scratch)
|
|
851 |
{
|
|
852 |
unsigned argumentStackOffset = (argumentNumber * (sizeof(JSValue) / sizeof(void*))) + 1;
|
|
853 |
if (m_codeBlock->isConstantRegisterIndex(src)) {
|
|
854 |
JSValue value = m_codeBlock->getConstant(src);
|
|
855 |
poke(ImmPtr(JSValue::encode(value)), argumentStackOffset);
|
|
856 |
} else {
|
|
857 |
loadPtr(Address(callFrameRegister, src * sizeof(Register)), scratch);
|
|
858 |
poke(scratch, argumentStackOffset);
|
|
859 |
}
|
|
860 |
|
|
861 |
killLastResultRegister();
|
|
862 |
}
|
|
863 |
|
|
864 |
#endif // USE(JSVALUE32_64)
|
|
865 |
|
|
866 |
} // namespace JSC
|
|
867 |
|
|
868 |
#endif // ENABLE(JIT)
|
|
869 |
|
|
870 |
#endif
|