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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 } | 450 } |
451 | 451 |
452 // Modifies the register even if it does not contain a Smi! | 452 // Modifies the register even if it does not contain a Smi! |
453 void SmiUntag(Register reg, Label* is_smi) { | 453 void SmiUntag(Register reg, Label* is_smi) { |
454 STATIC_ASSERT(kSmiTagSize == 1); | 454 STATIC_ASSERT(kSmiTagSize == 1); |
455 sar(reg, kSmiTagSize); | 455 sar(reg, kSmiTagSize); |
456 STATIC_ASSERT(kSmiTag == 0); | 456 STATIC_ASSERT(kSmiTag == 0); |
457 j(not_carry, is_smi); | 457 j(not_carry, is_smi); |
458 } | 458 } |
459 | 459 |
460 void LoadUint32NoSSE2(Register src); | 460 void LoadUint32NoSSE2(Register src) { |
| 461 LoadUint32NoSSE2(Operand(src)); |
| 462 } |
| 463 void LoadUint32NoSSE2(const Operand& src); |
461 | 464 |
462 // Jump the register contains a smi. | 465 // Jump the register contains a smi. |
463 inline void JumpIfSmi(Register value, | 466 inline void JumpIfSmi(Register value, |
464 Label* smi_label, | 467 Label* smi_label, |
465 Label::Distance distance = Label::kFar) { | 468 Label::Distance distance = Label::kFar) { |
466 test(value, Immediate(kSmiTagMask)); | 469 test(value, Immediate(kSmiTagMask)); |
467 j(zero, smi_label, distance); | 470 j(zero, smi_label, distance); |
468 } | 471 } |
469 // Jump if the operand is a smi. | 472 // Jump if the operand is a smi. |
470 inline void JumpIfSmi(Operand value, | 473 inline void JumpIfSmi(Operand value, |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 } \ | 1074 } \ |
1072 masm-> | 1075 masm-> |
1073 #else | 1076 #else |
1074 #define ACCESS_MASM(masm) masm-> | 1077 #define ACCESS_MASM(masm) masm-> |
1075 #endif | 1078 #endif |
1076 | 1079 |
1077 | 1080 |
1078 } } // namespace v8::internal | 1081 } } // namespace v8::internal |
1079 | 1082 |
1080 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1083 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |