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