| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |