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

Side by Side Diff: src/arm64/full-codegen-arm64.cc

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/disasm-arm64.cc ('k') | src/arm64/lithium-codegen-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // fall_through is used as an optimization in cases where only one branch 704 // fall_through is used as an optimization in cases where only one branch
705 // instruction is necessary. 705 // instruction is necessary.
706 void FullCodeGenerator::Split(Condition cond, 706 void FullCodeGenerator::Split(Condition cond,
707 Label* if_true, 707 Label* if_true,
708 Label* if_false, 708 Label* if_false,
709 Label* fall_through) { 709 Label* fall_through) {
710 if (if_false == fall_through) { 710 if (if_false == fall_through) {
711 __ B(cond, if_true); 711 __ B(cond, if_true);
712 } else if (if_true == fall_through) { 712 } else if (if_true == fall_through) {
713 ASSERT(if_false != fall_through); 713 ASSERT(if_false != fall_through);
714 __ B(InvertCondition(cond), if_false); 714 __ B(NegateCondition(cond), if_false);
715 } else { 715 } else {
716 __ B(cond, if_true); 716 __ B(cond, if_true);
717 __ B(if_false); 717 __ B(if_false);
718 } 718 }
719 } 719 }
720 720
721 721
722 MemOperand FullCodeGenerator::StackOperand(Variable* var) { 722 MemOperand FullCodeGenerator::StackOperand(Variable* var) {
723 // Offset is negative because higher indexes are at lower addresses. 723 // Offset is negative because higher indexes are at lower addresses.
724 int offset = -var->index() * kXRegSize; 724 int offset = -var->index() * kXRegSize;
(...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after
4896 return previous_; 4896 return previous_;
4897 } 4897 }
4898 4898
4899 4899
4900 #undef __ 4900 #undef __
4901 4901
4902 4902
4903 } } // namespace v8::internal 4903 } } // namespace v8::internal
4904 4904
4905 #endif // V8_TARGET_ARCH_ARM64 4905 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/disasm-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698