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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // Store the function for the given builtin in the target register. | 334 // Store the function for the given builtin in the target register. |
335 void GetBuiltinFunction(Register target, int native_context_index); | 335 void GetBuiltinFunction(Register target, int native_context_index); |
336 | 336 |
337 // Expression support | 337 // Expression support |
338 // 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 |
339 // hinders register renaming and makes dependence chains longer. So we use | 339 // hinders register renaming and makes dependence chains longer. So we use |
340 // 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. |
341 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 341 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
342 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 342 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
343 | 343 |
| 344 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); |
| 345 |
344 // Support for constant splitting. | 346 // Support for constant splitting. |
345 bool IsUnsafeImmediate(const Immediate& x); | 347 bool IsUnsafeImmediate(const Immediate& x); |
346 void SafeMove(Register dst, const Immediate& x); | 348 void SafeMove(Register dst, const Immediate& x); |
347 void SafePush(const Immediate& x); | 349 void SafePush(const Immediate& x); |
348 | 350 |
349 // Compare object type for heap object. | 351 // Compare object type for heap object. |
350 // Incoming register is heap_object and outgoing register is map. | 352 // Incoming register is heap_object and outgoing register is map. |
351 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 353 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
352 | 354 |
353 // Compare instance type for map. | 355 // Compare instance type for map. |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 } \ | 1009 } \ |
1008 masm-> | 1010 masm-> |
1009 #else | 1011 #else |
1010 #define ACCESS_MASM(masm) masm-> | 1012 #define ACCESS_MASM(masm) masm-> |
1011 #endif | 1013 #endif |
1012 | 1014 |
1013 } // namespace internal | 1015 } // namespace internal |
1014 } // namespace v8 | 1016 } // namespace v8 |
1015 | 1017 |
1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1018 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |