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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 } | 750 } |
751 | 751 |
752 | 752 |
753 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, | 753 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, |
754 bool should_normalize, | 754 bool should_normalize, |
755 Label* if_true, | 755 Label* if_true, |
756 Label* if_false) { | 756 Label* if_false) { |
757 // Only prepare for bailouts before splits if we're in a test | 757 // Only prepare for bailouts before splits if we're in a test |
758 // context. Otherwise, we let the Visit function deal with the | 758 // context. Otherwise, we let the Visit function deal with the |
759 // preparation to avoid preparing with the same AST id twice. | 759 // preparation to avoid preparing with the same AST id twice. |
760 if (!context()->IsTest() || !info_->IsOptimizable()) return; | 760 if (!context()->IsTest()) return; |
761 | 761 |
762 Label skip; | 762 Label skip; |
763 if (should_normalize) __ b(&skip); | 763 if (should_normalize) __ b(&skip); |
764 PrepareForBailout(expr, TOS_REG); | 764 PrepareForBailout(expr, TOS_REG); |
765 if (should_normalize) { | 765 if (should_normalize) { |
766 __ LoadRoot(ip, Heap::kTrueValueRootIndex); | 766 __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
767 __ cmp(r3, ip); | 767 __ cmp(r3, ip); |
768 Split(eq, if_true, if_false, NULL); | 768 Split(eq, if_true, if_false, NULL); |
769 __ bind(&skip); | 769 __ bind(&skip); |
770 } | 770 } |
(...skipping 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5389 return ON_STACK_REPLACEMENT; | 5389 return ON_STACK_REPLACEMENT; |
5390 } | 5390 } |
5391 | 5391 |
5392 DCHECK(interrupt_address == | 5392 DCHECK(interrupt_address == |
5393 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5393 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5394 return OSR_AFTER_STACK_CHECK; | 5394 return OSR_AFTER_STACK_CHECK; |
5395 } | 5395 } |
5396 } // namespace internal | 5396 } // namespace internal |
5397 } // namespace v8 | 5397 } // namespace v8 |
5398 #endif // V8_TARGET_ARCH_PPC | 5398 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |