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