| 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/frames.h" | 9 #include "src/frames.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 } | 477 } |
| 478 | 478 |
| 479 // Modifies the register even if it does not contain a Smi! | 479 // Modifies the register even if it does not contain a Smi! |
| 480 void SmiUntag(Register reg, Label* is_smi) { | 480 void SmiUntag(Register reg, Label* is_smi) { |
| 481 STATIC_ASSERT(kSmiTagSize == 1); | 481 STATIC_ASSERT(kSmiTagSize == 1); |
| 482 sar(reg, kSmiTagSize); | 482 sar(reg, kSmiTagSize); |
| 483 STATIC_ASSERT(kSmiTag == 0); | 483 STATIC_ASSERT(kSmiTag == 0); |
| 484 j(not_carry, is_smi); | 484 j(not_carry, is_smi); |
| 485 } | 485 } |
| 486 | 486 |
| 487 void LoadUint32(XMMRegister dst, Register src); | 487 void LoadUint32(XMMRegister dst, Register src) { |
| 488 LoadUint32(dst, Operand(src)); |
| 489 } |
| 490 void LoadUint32(XMMRegister dst, const Operand& src); |
| 488 | 491 |
| 489 // Jump the register contains a smi. | 492 // Jump the register contains a smi. |
| 490 inline void JumpIfSmi(Register value, | 493 inline void JumpIfSmi(Register value, |
| 491 Label* smi_label, | 494 Label* smi_label, |
| 492 Label::Distance distance = Label::kFar) { | 495 Label::Distance distance = Label::kFar) { |
| 493 test(value, Immediate(kSmiTagMask)); | 496 test(value, Immediate(kSmiTagMask)); |
| 494 j(zero, smi_label, distance); | 497 j(zero, smi_label, distance); |
| 495 } | 498 } |
| 496 // Jump if the operand is a smi. | 499 // Jump if the operand is a smi. |
| 497 inline void JumpIfSmi(Operand value, | 500 inline void JumpIfSmi(Operand value, |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 } \ | 1105 } \ |
| 1103 masm-> | 1106 masm-> |
| 1104 #else | 1107 #else |
| 1105 #define ACCESS_MASM(masm) masm-> | 1108 #define ACCESS_MASM(masm) masm-> |
| 1106 #endif | 1109 #endif |
| 1107 | 1110 |
| 1108 | 1111 |
| 1109 } } // namespace v8::internal | 1112 } } // namespace v8::internal |
| 1110 | 1113 |
| 1111 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1114 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |