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 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3290 __ li(scratch1, Operand(Smi::FromInt(count_value))); | 3290 __ li(scratch1, Operand(Smi::FromInt(count_value))); |
3291 __ DaddBranchNoOvf(v0, v0, Operand(scratch1), &done); | 3291 __ DaddBranchNoOvf(v0, v0, Operand(scratch1), &done); |
3292 // Call stub. Undo operation first. | 3292 // Call stub. Undo operation first. |
3293 __ Move(v0, a0); | 3293 __ Move(v0, a0); |
3294 __ jmp(&stub_call); | 3294 __ jmp(&stub_call); |
3295 __ bind(&slow); | 3295 __ bind(&slow); |
3296 } | 3296 } |
3297 | 3297 |
3298 // Convert old value into a number. | 3298 // Convert old value into a number. |
3299 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); | 3299 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
| 3300 RestoreContext(); |
3300 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); | 3301 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
3301 | 3302 |
3302 // Save result for postfix expressions. | 3303 // Save result for postfix expressions. |
3303 if (expr->is_postfix()) { | 3304 if (expr->is_postfix()) { |
3304 if (!context()->IsEffect()) { | 3305 if (!context()->IsEffect()) { |
3305 // Save the result on the stack. If we have a named or keyed property | 3306 // Save the result on the stack. If we have a named or keyed property |
3306 // we store the result under the receiver that is currently on top | 3307 // we store the result under the receiver that is currently on top |
3307 // of the stack. | 3308 // of the stack. |
3308 switch (assign_type) { | 3309 switch (assign_type) { |
3309 case VARIABLE: | 3310 case VARIABLE: |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3793 reinterpret_cast<uint64_t>( | 3794 reinterpret_cast<uint64_t>( |
3794 isolate->builtins()->OnStackReplacement()->entry())); | 3795 isolate->builtins()->OnStackReplacement()->entry())); |
3795 return ON_STACK_REPLACEMENT; | 3796 return ON_STACK_REPLACEMENT; |
3796 } | 3797 } |
3797 | 3798 |
3798 | 3799 |
3799 } // namespace internal | 3800 } // namespace internal |
3800 } // namespace v8 | 3801 } // namespace v8 |
3801 | 3802 |
3802 #endif // V8_TARGET_ARCH_MIPS64 | 3803 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |