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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 if (shift < kSmiTagSize) { | 524 if (shift < kSmiTagSize) { |
525 shl(reg, kSmiTagSize - shift); | 525 shl(reg, kSmiTagSize - shift); |
526 } else if (shift > kSmiTagSize) { | 526 } else if (shift > kSmiTagSize) { |
527 sar(reg, shift - kSmiTagSize); | 527 sar(reg, shift - kSmiTagSize); |
528 } | 528 } |
529 and_(reg, Immediate(mask)); | 529 and_(reg, Immediate(mask)); |
530 } | 530 } |
531 | 531 |
532 // Abort execution if argument is not a number, enabled via --debug-code. | 532 // Abort execution if argument is not a number, enabled via --debug-code. |
533 void AssertNumber(Register object); | 533 void AssertNumber(Register object); |
| 534 void AssertNotNumber(Register object); |
534 | 535 |
535 // Abort execution if argument is not a smi, enabled via --debug-code. | 536 // Abort execution if argument is not a smi, enabled via --debug-code. |
536 void AssertSmi(Register object); | 537 void AssertSmi(Register object); |
537 | 538 |
538 // Abort execution if argument is a smi, enabled via --debug-code. | 539 // Abort execution if argument is a smi, enabled via --debug-code. |
539 void AssertNotSmi(Register object); | 540 void AssertNotSmi(Register object); |
540 | 541 |
541 // Abort execution if argument is not a string, enabled via --debug-code. | 542 // Abort execution if argument is not a string, enabled via --debug-code. |
542 void AssertString(Register object); | 543 void AssertString(Register object); |
543 | 544 |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 } \ | 1023 } \ |
1023 masm-> | 1024 masm-> |
1024 #else | 1025 #else |
1025 #define ACCESS_MASM(masm) masm-> | 1026 #define ACCESS_MASM(masm) masm-> |
1026 #endif | 1027 #endif |
1027 | 1028 |
1028 } // namespace internal | 1029 } // namespace internal |
1029 } // namespace v8 | 1030 } // namespace v8 |
1030 | 1031 |
1031 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1032 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |