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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3284 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); | 3284 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); |
3285 __ b(vc, &done); | 3285 __ b(vc, &done); |
3286 // Call stub. Undo operation first. | 3286 // Call stub. Undo operation first. |
3287 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); | 3287 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); |
3288 __ jmp(&stub_call); | 3288 __ jmp(&stub_call); |
3289 __ bind(&slow); | 3289 __ bind(&slow); |
3290 } | 3290 } |
3291 | 3291 |
3292 // Convert old value into a number. | 3292 // Convert old value into a number. |
3293 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); | 3293 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
| 3294 RestoreContext(); |
3294 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); | 3295 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
3295 | 3296 |
3296 // Save result for postfix expressions. | 3297 // Save result for postfix expressions. |
3297 if (expr->is_postfix()) { | 3298 if (expr->is_postfix()) { |
3298 if (!context()->IsEffect()) { | 3299 if (!context()->IsEffect()) { |
3299 // Save the result on the stack. If we have a named or keyed property | 3300 // Save the result on the stack. If we have a named or keyed property |
3300 // we store the result under the receiver that is currently on top | 3301 // we store the result under the receiver that is currently on top |
3301 // of the stack. | 3302 // of the stack. |
3302 switch (assign_type) { | 3303 switch (assign_type) { |
3303 case VARIABLE: | 3304 case VARIABLE: |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3845 DCHECK(interrupt_address == | 3846 DCHECK(interrupt_address == |
3846 isolate->builtins()->OnStackReplacement()->entry()); | 3847 isolate->builtins()->OnStackReplacement()->entry()); |
3847 return ON_STACK_REPLACEMENT; | 3848 return ON_STACK_REPLACEMENT; |
3848 } | 3849 } |
3849 | 3850 |
3850 | 3851 |
3851 } // namespace internal | 3852 } // namespace internal |
3852 } // namespace v8 | 3853 } // namespace v8 |
3853 | 3854 |
3854 #endif // V8_TARGET_ARCH_ARM | 3855 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |