| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Aliases. | 74 // Aliases. |
| 75 kBranchTypeFirstCondition = eq, | 75 kBranchTypeFirstCondition = eq, |
| 76 kBranchTypeLastCondition = nv, | 76 kBranchTypeLastCondition = nv, |
| 77 kBranchTypeFirstUsingReg = reg_zero, | 77 kBranchTypeFirstUsingReg = reg_zero, |
| 78 kBranchTypeFirstUsingBit = reg_bit_clear | 78 kBranchTypeFirstUsingBit = reg_bit_clear |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 inline BranchType InvertBranchType(BranchType type) { | 81 inline BranchType InvertBranchType(BranchType type) { |
| 82 if (kBranchTypeFirstCondition <= type && type <= kBranchTypeLastCondition) { | 82 if (kBranchTypeFirstCondition <= type && type <= kBranchTypeLastCondition) { |
| 83 return static_cast<BranchType>( | 83 return static_cast<BranchType>( |
| 84 InvertCondition(static_cast<Condition>(type))); | 84 NegateCondition(static_cast<Condition>(type))); |
| 85 } else { | 85 } else { |
| 86 return static_cast<BranchType>(type ^ 1); | 86 return static_cast<BranchType>(type ^ 1); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; | 90 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; |
| 91 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; | 91 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; |
| 92 enum PointersToHereCheck { | 92 enum PointersToHereCheck { |
| 93 kPointersToHereMaybeInteresting, | 93 kPointersToHereMaybeInteresting, |
| 94 kPointersToHereAreAlwaysInteresting | 94 kPointersToHereAreAlwaysInteresting |
| (...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2317 #error "Unsupported option" | 2317 #error "Unsupported option" |
| 2318 #define CODE_COVERAGE_STRINGIFY(x) #x | 2318 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2319 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2319 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2320 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2320 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2321 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2321 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2322 #else | 2322 #else |
| 2323 #define ACCESS_MASM(masm) masm-> | 2323 #define ACCESS_MASM(masm) masm-> |
| 2324 #endif | 2324 #endif |
| 2325 | 2325 |
| 2326 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2326 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| OLD | NEW |