| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 337 |
| 338 // Store the function for the given builtin in the target register. | 338 // Store the function for the given builtin in the target register. |
| 339 void GetBuiltinFunction(Register target, int native_context_index); | 339 void GetBuiltinFunction(Register target, int native_context_index); |
| 340 | 340 |
| 341 // Expression support | 341 // Expression support |
| 342 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 342 // 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 | 343 // hinders register renaming and makes dependence chains longer. So we use |
| 344 // xorps to clear the dst register before cvtsi2sd to solve this issue. | 344 // xorps to clear the dst register before cvtsi2sd to solve this issue. |
| 345 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 345 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
| 346 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 346 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
| 347 void Cvtsi2ss(XMMRegister dst, Register src) { Cvtsi2ss(dst, Operand(src)); } | |
| 348 void Cvtsi2ss(XMMRegister dst, const Operand& src); | |
| 349 | |
| 350 void Roundss(XMMRegister dst, XMMRegister src, Register tmp, | |
| 351 RoundingMode mode); | |
| 352 void Roundsd(XMMRegister dst, XMMRegister src, Register tmp, XMMRegister xtmp, | |
| 353 RoundingMode mode); | |
| 354 | 347 |
| 355 // Support for constant splitting. | 348 // Support for constant splitting. |
| 356 bool IsUnsafeImmediate(const Immediate& x); | 349 bool IsUnsafeImmediate(const Immediate& x); |
| 357 void SafeMove(Register dst, const Immediate& x); | 350 void SafeMove(Register dst, const Immediate& x); |
| 358 void SafePush(const Immediate& x); | 351 void SafePush(const Immediate& x); |
| 359 | 352 |
| 360 // Compare object type for heap object. | 353 // Compare object type for heap object. |
| 361 // Incoming register is heap_object and outgoing register is map. | 354 // Incoming register is heap_object and outgoing register is map. |
| 362 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 355 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 363 | 356 |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } \ | 1011 } \ |
| 1019 masm-> | 1012 masm-> |
| 1020 #else | 1013 #else |
| 1021 #define ACCESS_MASM(masm) masm-> | 1014 #define ACCESS_MASM(masm) masm-> |
| 1022 #endif | 1015 #endif |
| 1023 | 1016 |
| 1024 } // namespace internal | 1017 } // namespace internal |
| 1025 } // namespace v8 | 1018 } // namespace v8 |
| 1026 | 1019 |
| 1027 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1020 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |