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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...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) __ Branch(&skip); | 796 if (should_normalize) __ Branch(&skip); |
797 PrepareForBailout(expr, TOS_REG); | 797 PrepareForBailout(expr, TOS_REG); |
798 if (should_normalize) { | 798 if (should_normalize) { |
799 __ LoadRoot(a4, Heap::kTrueValueRootIndex); | 799 __ LoadRoot(a4, Heap::kTrueValueRootIndex); |
800 Split(eq, a0, Operand(a4), if_true, if_false, NULL); | 800 Split(eq, a0, Operand(a4), if_true, if_false, NULL); |
801 __ bind(&skip); | 801 __ bind(&skip); |
802 } | 802 } |
803 } | 803 } |
(...skipping 4578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5382 reinterpret_cast<uint64_t>( | 5382 reinterpret_cast<uint64_t>( |
5383 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5383 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5384 return OSR_AFTER_STACK_CHECK; | 5384 return OSR_AFTER_STACK_CHECK; |
5385 } | 5385 } |
5386 | 5386 |
5387 | 5387 |
5388 } // namespace internal | 5388 } // namespace internal |
5389 } // namespace v8 | 5389 } // namespace v8 |
5390 | 5390 |
5391 #endif // V8_TARGET_ARCH_MIPS64 | 5391 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |