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/frames.h" | 9 #include "src/frames.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 STATIC_ASSERT(NUMBER_OF_CONSTRAINTS <= 8); | 44 STATIC_ASSERT(NUMBER_OF_CONSTRAINTS <= 8); |
45 | 45 |
46 class SmiOperationExecutionMode : public EnumSet<SmiOperationConstraint, byte> { | 46 class SmiOperationExecutionMode : public EnumSet<SmiOperationConstraint, byte> { |
47 public: | 47 public: |
48 SmiOperationExecutionMode() : EnumSet<SmiOperationConstraint, byte>(0) { } | 48 SmiOperationExecutionMode() : EnumSet<SmiOperationConstraint, byte>(0) { } |
49 explicit SmiOperationExecutionMode(byte bits) | 49 explicit SmiOperationExecutionMode(byte bits) |
50 : EnumSet<SmiOperationConstraint, byte>(bits) { } | 50 : EnumSet<SmiOperationConstraint, byte>(bits) { } |
51 }; | 51 }; |
52 | 52 |
53 bool AreAliased(Register r1, Register r2, Register r3, Register r4); | 53 #ifdef DEBUG |
| 54 bool AreAliased(Register reg1, |
| 55 Register reg2, |
| 56 Register reg3 = no_reg, |
| 57 Register reg4 = no_reg, |
| 58 Register reg5 = no_reg, |
| 59 Register reg6 = no_reg, |
| 60 Register reg7 = no_reg, |
| 61 Register reg8 = no_reg); |
| 62 #endif |
54 | 63 |
55 // Forward declaration. | 64 // Forward declaration. |
56 class JumpTarget; | 65 class JumpTarget; |
57 | 66 |
58 struct SmiIndex { | 67 struct SmiIndex { |
59 SmiIndex(Register index_register, ScaleFactor scale) | 68 SmiIndex(Register index_register, ScaleFactor scale) |
60 : reg(index_register), | 69 : reg(index_register), |
61 scale(scale) {} | 70 scale(scale) {} |
62 Register reg; | 71 Register reg; |
63 ScaleFactor scale; | 72 ScaleFactor scale; |
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 masm->popfq(); \ | 1657 masm->popfq(); \ |
1649 } \ | 1658 } \ |
1650 masm-> | 1659 masm-> |
1651 #else | 1660 #else |
1652 #define ACCESS_MASM(masm) masm-> | 1661 #define ACCESS_MASM(masm) masm-> |
1653 #endif | 1662 #endif |
1654 | 1663 |
1655 } } // namespace v8::internal | 1664 } } // namespace v8::internal |
1656 | 1665 |
1657 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1666 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |