OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 335 matching lines...) Loading... |
346 void InvokeBuiltin(Builtins::JavaScript id, | 346 void InvokeBuiltin(Builtins::JavaScript id, |
347 InvokeFlag flag, | 347 InvokeFlag flag, |
348 const CallWrapper& call_wrapper = NullCallWrapper()); | 348 const CallWrapper& call_wrapper = NullCallWrapper()); |
349 | 349 |
350 // Store the function for the given builtin in the target register. | 350 // Store the function for the given builtin in the target register. |
351 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 351 void GetBuiltinFunction(Register target, Builtins::JavaScript id); |
352 | 352 |
353 // Store the code object for the given builtin in the target register. | 353 // Store the code object for the given builtin in the target register. |
354 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 354 void GetBuiltinEntry(Register target, Builtins::JavaScript id); |
355 | 355 |
| 356 void BranchIfNotBuiltin(Register function, Register temp, |
| 357 BuiltinFunctionId id, Label* miss); |
| 358 |
356 // Expression support | 359 // Expression support |
357 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 360 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
358 // hinders register renaming and makes dependence chains longer. So we use | 361 // hinders register renaming and makes dependence chains longer. So we use |
359 // xorps to clear the dst register before cvtsi2sd to solve this issue. | 362 // xorps to clear the dst register before cvtsi2sd to solve this issue. |
360 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 363 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
361 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 364 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
362 | 365 |
363 // Support for constant splitting. | 366 // Support for constant splitting. |
364 bool IsUnsafeImmediate(const Immediate& x); | 367 bool IsUnsafeImmediate(const Immediate& x); |
365 void SafeMove(Register dst, const Immediate& x); | 368 void SafeMove(Register dst, const Immediate& x); |
(...skipping 731 matching lines...) Loading... |
1097 } \ | 1100 } \ |
1098 masm-> | 1101 masm-> |
1099 #else | 1102 #else |
1100 #define ACCESS_MASM(masm) masm-> | 1103 #define ACCESS_MASM(masm) masm-> |
1101 #endif | 1104 #endif |
1102 | 1105 |
1103 | 1106 |
1104 } } // namespace v8::internal | 1107 } } // namespace v8::internal |
1105 | 1108 |
1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1109 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |