| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 } | 782 } |
| 783 | 783 |
| 784 | 784 |
| 785 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, | 785 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, |
| 786 bool should_normalize, | 786 bool should_normalize, |
| 787 Label* if_true, | 787 Label* if_true, |
| 788 Label* if_false) { | 788 Label* if_false) { |
| 789 // Only prepare for bailouts before splits if we're in a test | 789 // Only prepare for bailouts before splits if we're in a test |
| 790 // context. Otherwise, we let the Visit function deal with the | 790 // context. Otherwise, we let the Visit function deal with the |
| 791 // preparation to avoid preparing with the same AST id twice. | 791 // preparation to avoid preparing with the same AST id twice. |
| 792 if (!context()->IsTest() || !info_->IsOptimizable()) return; | 792 if (!context()->IsTest()) return; |
| 793 | 793 |
| 794 // TODO(all): Investigate to see if there is something to work on here. | 794 // TODO(all): Investigate to see if there is something to work on here. |
| 795 Label skip; | 795 Label skip; |
| 796 if (should_normalize) { | 796 if (should_normalize) { |
| 797 __ B(&skip); | 797 __ B(&skip); |
| 798 } | 798 } |
| 799 PrepareForBailout(expr, TOS_REG); | 799 PrepareForBailout(expr, TOS_REG); |
| 800 if (should_normalize) { | 800 if (should_normalize) { |
| 801 __ CompareRoot(x0, Heap::kTrueValueRootIndex); | 801 __ CompareRoot(x0, Heap::kTrueValueRootIndex); |
| 802 Split(eq, if_true, if_false, NULL); | 802 Split(eq, if_true, if_false, NULL); |
| (...skipping 4597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5400 } | 5400 } |
| 5401 | 5401 |
| 5402 return INTERRUPT; | 5402 return INTERRUPT; |
| 5403 } | 5403 } |
| 5404 | 5404 |
| 5405 | 5405 |
| 5406 } // namespace internal | 5406 } // namespace internal |
| 5407 } // namespace v8 | 5407 } // namespace v8 |
| 5408 | 5408 |
| 5409 #endif // V8_TARGET_ARCH_ARM64 | 5409 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |