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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which | 365 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which |
366 // hinders register renaming and makes dependence chains longer. So we use | 366 // hinders register renaming and makes dependence chains longer. So we use |
367 // xorps to clear the dst register before cvtsi2sd to solve this issue. | 367 // xorps to clear the dst register before cvtsi2sd to solve this issue. |
368 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | 368 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } |
369 void Cvtsi2sd(XMMRegister dst, const Operand& src); | 369 void Cvtsi2sd(XMMRegister dst, const Operand& src); |
370 | 370 |
371 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); | 371 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); |
372 | 372 |
373 void PairShl(Register dst, Register src, uint8_t imm8); | 373 void PairShl(Register dst, Register src, uint8_t imm8); |
374 void PairShl_cl(Register dst, Register src); | 374 void PairShl_cl(Register dst, Register src); |
| 375 void PairShr(Register dst, Register src, uint8_t imm8); |
| 376 void PairShr_cl(Register dst, Register src); |
| 377 void PairSar(Register dst, Register src, uint8_t imm8); |
| 378 void PairSar_cl(Register dst, Register src); |
375 | 379 |
376 // Support for constant splitting. | 380 // Support for constant splitting. |
377 bool IsUnsafeImmediate(const Immediate& x); | 381 bool IsUnsafeImmediate(const Immediate& x); |
378 void SafeMove(Register dst, const Immediate& x); | 382 void SafeMove(Register dst, const Immediate& x); |
379 void SafePush(const Immediate& x); | 383 void SafePush(const Immediate& x); |
380 | 384 |
381 // Compare object type for heap object. | 385 // Compare object type for heap object. |
382 // Incoming register is heap_object and outgoing register is map. | 386 // Incoming register is heap_object and outgoing register is map. |
383 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 387 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
384 | 388 |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 } \ | 1042 } \ |
1039 masm-> | 1043 masm-> |
1040 #else | 1044 #else |
1041 #define ACCESS_MASM(masm) masm-> | 1045 #define ACCESS_MASM(masm) masm-> |
1042 #endif | 1046 #endif |
1043 | 1047 |
1044 } // namespace internal | 1048 } // namespace internal |
1045 } // namespace v8 | 1049 } // namespace v8 |
1046 | 1050 |
1047 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1051 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |