| 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/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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 } | 783 } |
| 784 | 784 |
| 785 | 785 |
| 786 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, | 786 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, |
| 787 bool should_normalize, | 787 bool should_normalize, |
| 788 Label* if_true, | 788 Label* if_true, |
| 789 Label* if_false) { | 789 Label* if_false) { |
| 790 // Only prepare for bailouts before splits if we're in a test | 790 // Only prepare for bailouts before splits if we're in a test |
| 791 // context. Otherwise, we let the Visit function deal with the | 791 // context. Otherwise, we let the Visit function deal with the |
| 792 // preparation to avoid preparing with the same AST id twice. | 792 // preparation to avoid preparing with the same AST id twice. |
| 793 if (!context()->IsTest() || !info_->IsOptimizable()) return; | 793 if (!context()->IsTest()) return; |
| 794 | 794 |
| 795 Label skip; | 795 Label skip; |
| 796 if (should_normalize) __ b(&skip); | 796 if (should_normalize) __ b(&skip); |
| 797 PrepareForBailout(expr, TOS_REG); | 797 PrepareForBailout(expr, TOS_REG); |
| 798 if (should_normalize) { | 798 if (should_normalize) { |
| 799 __ LoadRoot(ip, Heap::kTrueValueRootIndex); | 799 __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
| 800 __ cmp(r0, ip); | 800 __ cmp(r0, ip); |
| 801 Split(eq, if_true, if_false, NULL); | 801 Split(eq, if_true, if_false, NULL); |
| 802 __ bind(&skip); | 802 __ bind(&skip); |
| 803 } | 803 } |
| (...skipping 4610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5414 DCHECK(interrupt_address == | 5414 DCHECK(interrupt_address == |
| 5415 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5415 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5416 return OSR_AFTER_STACK_CHECK; | 5416 return OSR_AFTER_STACK_CHECK; |
| 5417 } | 5417 } |
| 5418 | 5418 |
| 5419 | 5419 |
| 5420 } // namespace internal | 5420 } // namespace internal |
| 5421 } // namespace v8 | 5421 } // namespace v8 |
| 5422 | 5422 |
| 5423 #endif // V8_TARGET_ARCH_ARM | 5423 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |