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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 } else { | 636 } else { |
637 if (false_label_ != fall_through_) __ b(false_label_); | 637 if (false_label_ != fall_through_) __ b(false_label_); |
638 } | 638 } |
639 } | 639 } |
640 | 640 |
641 | 641 |
642 void FullCodeGenerator::DoTest(Expression* condition, | 642 void FullCodeGenerator::DoTest(Expression* condition, |
643 Label* if_true, | 643 Label* if_true, |
644 Label* if_false, | 644 Label* if_false, |
645 Label* fall_through) { | 645 Label* fall_through) { |
646 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); | 646 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate()); |
647 CallIC(ic, condition->test_id()); | 647 CallIC(ic, condition->test_id()); |
648 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); | 648 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); |
649 Split(eq, if_true, if_false, fall_through); | 649 Split(eq, if_true, if_false, fall_through); |
650 } | 650 } |
651 | 651 |
652 | 652 |
653 void FullCodeGenerator::Split(Condition cond, | 653 void FullCodeGenerator::Split(Condition cond, |
654 Label* if_true, | 654 Label* if_true, |
655 Label* if_false, | 655 Label* if_false, |
656 Label* fall_through) { | 656 Label* fall_through) { |
(...skipping 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4267 DCHECK(interrupt_address == | 4267 DCHECK(interrupt_address == |
4268 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4268 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4269 return OSR_AFTER_STACK_CHECK; | 4269 return OSR_AFTER_STACK_CHECK; |
4270 } | 4270 } |
4271 | 4271 |
4272 | 4272 |
4273 } // namespace internal | 4273 } // namespace internal |
4274 } // namespace v8 | 4274 } // namespace v8 |
4275 | 4275 |
4276 #endif // V8_TARGET_ARCH_ARM | 4276 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |