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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 324 |
325 void InvokeFunction(Register function, const ParameterCount& expected, | 325 void InvokeFunction(Register function, const ParameterCount& expected, |
326 const ParameterCount& actual, InvokeFlag flag, | 326 const ParameterCount& actual, InvokeFlag flag, |
327 const CallWrapper& call_wrapper); | 327 const CallWrapper& call_wrapper); |
328 | 328 |
329 void InvokeFunction(Handle<JSFunction> function, | 329 void InvokeFunction(Handle<JSFunction> function, |
330 const ParameterCount& expected, | 330 const ParameterCount& expected, |
331 const ParameterCount& actual, InvokeFlag flag, | 331 const ParameterCount& actual, InvokeFlag flag, |
332 const CallWrapper& call_wrapper); | 332 const CallWrapper& call_wrapper); |
333 | 333 |
334 // Invoke specified builtin JavaScript function. | |
335 void InvokeBuiltin(int native_context_index, InvokeFlag flag, | |
336 const CallWrapper& call_wrapper = NullCallWrapper()); | |
337 | |
338 // Store the function for the given builtin in the target register. | 334 // Store the function for the given builtin in the target register. |
339 void GetBuiltinFunction(Register target, int native_context_index); | 335 void GetBuiltinFunction(Register target, int native_context_index); |
340 | 336 |
341 // Expression support | 337 // Expression support |
342 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 338 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
343 // hinders register renaming and makes dependence chains longer. So we use | 339 // hinders register renaming and makes dependence chains longer. So we use |
344 // xorps to clear the dst register before cvtsi2sd to solve this issue. | 340 // xorps to clear the dst register before cvtsi2sd to solve this issue. |
345 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 341 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
346 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 342 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
347 | 343 |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 } \ | 1007 } \ |
1012 masm-> | 1008 masm-> |
1013 #else | 1009 #else |
1014 #define ACCESS_MASM(masm) masm-> | 1010 #define ACCESS_MASM(masm) masm-> |
1015 #endif | 1011 #endif |
1016 | 1012 |
1017 } // namespace internal | 1013 } // namespace internal |
1018 } // namespace v8 | 1014 } // namespace v8 |
1019 | 1015 |
1020 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |