| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 // Expression support | 352 // Expression support |
| 353 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 353 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
| 354 // hinders register renaming and makes dependence chains longer. So we use | 354 // hinders register renaming and makes dependence chains longer. So we use |
| 355 // xorps to clear the dst register before cvtsi2sd to solve this issue. | 355 // xorps to clear the dst register before cvtsi2sd to solve this issue. |
| 356 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 356 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
| 357 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 357 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
| 358 | 358 |
| 359 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); | 359 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); |
| 360 | 360 |
| 361 void Shl64(Register dst, Register src, uint8_t imm8); |
| 362 void Shl64_cl(Register dst, Register src); |
| 363 |
| 361 // Support for constant splitting. | 364 // Support for constant splitting. |
| 362 bool IsUnsafeImmediate(const Immediate& x); | 365 bool IsUnsafeImmediate(const Immediate& x); |
| 363 void SafeMove(Register dst, const Immediate& x); | 366 void SafeMove(Register dst, const Immediate& x); |
| 364 void SafePush(const Immediate& x); | 367 void SafePush(const Immediate& x); |
| 365 | 368 |
| 366 // Compare object type for heap object. | 369 // Compare object type for heap object. |
| 367 // Incoming register is heap_object and outgoing register is map. | 370 // Incoming register is heap_object and outgoing register is map. |
| 368 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 371 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 369 | 372 |
| 370 // Compare instance type for map. | 373 // Compare instance type for map. |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 } \ | 1032 } \ |
| 1030 masm-> | 1033 masm-> |
| 1031 #else | 1034 #else |
| 1032 #define ACCESS_MASM(masm) masm-> | 1035 #define ACCESS_MASM(masm) masm-> |
| 1033 #endif | 1036 #endif |
| 1034 | 1037 |
| 1035 } // namespace internal | 1038 } // namespace internal |
| 1036 } // namespace v8 | 1039 } // namespace v8 |
| 1037 | 1040 |
| 1038 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1041 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |