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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 shlp(reg, Immediate(kSmiShift - shift)); | 1191 shlp(reg, Immediate(kSmiShift - shift)); |
1192 } else if (shift > kSmiShift) { | 1192 } else if (shift > kSmiShift) { |
1193 sarp(reg, Immediate(shift - kSmiShift)); | 1193 sarp(reg, Immediate(shift - kSmiShift)); |
1194 } | 1194 } |
1195 andp(reg, Immediate(mask)); | 1195 andp(reg, Immediate(mask)); |
1196 } | 1196 } |
1197 } | 1197 } |
1198 | 1198 |
1199 // Abort execution if argument is not a number, enabled via --debug-code. | 1199 // Abort execution if argument is not a number, enabled via --debug-code. |
1200 void AssertNumber(Register object); | 1200 void AssertNumber(Register object); |
| 1201 void AssertNotNumber(Register object); |
1201 | 1202 |
1202 // Abort execution if argument is a smi, enabled via --debug-code. | 1203 // Abort execution if argument is a smi, enabled via --debug-code. |
1203 void AssertNotSmi(Register object); | 1204 void AssertNotSmi(Register object); |
1204 | 1205 |
1205 // Abort execution if argument is not a smi, enabled via --debug-code. | 1206 // Abort execution if argument is not a smi, enabled via --debug-code. |
1206 void AssertSmi(Register object); | 1207 void AssertSmi(Register object); |
1207 void AssertSmi(const Operand& object); | 1208 void AssertSmi(const Operand& object); |
1208 | 1209 |
1209 // Abort execution if a 64 bit register containing a 32 bit payload does not | 1210 // Abort execution if a 64 bit register containing a 32 bit payload does not |
1210 // have zeros in the top 32 bits, enabled via --debug-code. | 1211 // have zeros in the top 32 bits, enabled via --debug-code. |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 } \ | 1761 } \ |
1761 masm-> | 1762 masm-> |
1762 #else | 1763 #else |
1763 #define ACCESS_MASM(masm) masm-> | 1764 #define ACCESS_MASM(masm) masm-> |
1764 #endif | 1765 #endif |
1765 | 1766 |
1766 } // namespace internal | 1767 } // namespace internal |
1767 } // namespace v8 | 1768 } // namespace v8 |
1768 | 1769 |
1769 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1770 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |