| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 // Only prepare for bailouts before splits if we're in a test | 729 // Only prepare for bailouts before splits if we're in a test |
| 730 // context. Otherwise, we let the Visit function deal with the | 730 // context. Otherwise, we let the Visit function deal with the |
| 731 // preparation to avoid preparing with the same AST id twice. | 731 // preparation to avoid preparing with the same AST id twice. |
| 732 if (!context()->IsTest()) return; | 732 if (!context()->IsTest()) return; |
| 733 | 733 |
| 734 Label skip; | 734 Label skip; |
| 735 if (should_normalize) __ Branch(&skip); | 735 if (should_normalize) __ Branch(&skip); |
| 736 PrepareForBailout(expr, BailoutState::TOS_REGISTER); | 736 PrepareForBailout(expr, BailoutState::TOS_REGISTER); |
| 737 if (should_normalize) { | 737 if (should_normalize) { |
| 738 __ LoadRoot(t0, Heap::kTrueValueRootIndex); | 738 __ LoadRoot(t0, Heap::kTrueValueRootIndex); |
| 739 Split(eq, a0, Operand(t0), if_true, if_false, NULL); | 739 Split(eq, v0, Operand(t0), if_true, if_false, NULL); |
| 740 __ bind(&skip); | 740 __ bind(&skip); |
| 741 } | 741 } |
| 742 } | 742 } |
| 743 | 743 |
| 744 | 744 |
| 745 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { | 745 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { |
| 746 // The variable in the declaration always resides in the current function | 746 // The variable in the declaration always resides in the current function |
| 747 // context. | 747 // context. |
| 748 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope())); | 748 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope())); |
| 749 if (FLAG_debug_code) { | 749 if (FLAG_debug_code) { |
| (...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3787 reinterpret_cast<uint32_t>( | 3787 reinterpret_cast<uint32_t>( |
| 3788 isolate->builtins()->OnStackReplacement()->entry())); | 3788 isolate->builtins()->OnStackReplacement()->entry())); |
| 3789 return ON_STACK_REPLACEMENT; | 3789 return ON_STACK_REPLACEMENT; |
| 3790 } | 3790 } |
| 3791 | 3791 |
| 3792 | 3792 |
| 3793 } // namespace internal | 3793 } // namespace internal |
| 3794 } // namespace v8 | 3794 } // namespace v8 |
| 3795 | 3795 |
| 3796 #endif // V8_TARGET_ARCH_MIPS | 3796 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |