OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 if (flag) { | 609 if (flag) { |
610 if (true_label_ != fall_through_) __ b(true_label_); | 610 if (true_label_ != fall_through_) __ b(true_label_); |
611 } else { | 611 } else { |
612 if (false_label_ != fall_through_) __ b(false_label_); | 612 if (false_label_ != fall_through_) __ b(false_label_); |
613 } | 613 } |
614 } | 614 } |
615 | 615 |
616 | 616 |
617 void FullCodeGenerator::DoTest(Expression* condition, Label* if_true, | 617 void FullCodeGenerator::DoTest(Expression* condition, Label* if_true, |
618 Label* if_false, Label* fall_through) { | 618 Label* if_false, Label* fall_through) { |
619 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); | 619 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate()); |
620 CallIC(ic, condition->test_id()); | 620 CallIC(ic, condition->test_id()); |
621 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); | 621 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); |
622 Split(eq, if_true, if_false, fall_through); | 622 Split(eq, if_true, if_false, fall_through); |
623 } | 623 } |
624 | 624 |
625 | 625 |
626 void FullCodeGenerator::Split(Condition cond, Label* if_true, Label* if_false, | 626 void FullCodeGenerator::Split(Condition cond, Label* if_true, Label* if_false, |
627 Label* fall_through, CRegister cr) { | 627 Label* fall_through, CRegister cr) { |
628 if (if_false == fall_through) { | 628 if (if_false == fall_through) { |
629 __ b(cond, if_true, cr); | 629 __ b(cond, if_true, cr); |
(...skipping 3555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4185 return ON_STACK_REPLACEMENT; | 4185 return ON_STACK_REPLACEMENT; |
4186 } | 4186 } |
4187 | 4187 |
4188 DCHECK(interrupt_address == | 4188 DCHECK(interrupt_address == |
4189 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4189 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4190 return OSR_AFTER_STACK_CHECK; | 4190 return OSR_AFTER_STACK_CHECK; |
4191 } | 4191 } |
4192 } // namespace internal | 4192 } // namespace internal |
4193 } // namespace v8 | 4193 } // namespace v8 |
4194 #endif // V8_TARGET_ARCH_PPC | 4194 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |