Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: src/arm64/macro-assembler-arm64.h

Issue 317663002: Rename InvertCondition and ReverseConditionForCmp on arm64 to be consistent with the other ports. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698