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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4669 | 4669 |
4670 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); | 4670 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); |
4671 __ b(vc, &done); | 4671 __ b(vc, &done); |
4672 // Call stub. Undo operation first. | 4672 // Call stub. Undo operation first. |
4673 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); | 4673 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); |
4674 __ jmp(&stub_call); | 4674 __ jmp(&stub_call); |
4675 __ bind(&slow); | 4675 __ bind(&slow); |
4676 } | 4676 } |
4677 ToNumberStub convert_stub(isolate()); | 4677 ToNumberStub convert_stub(isolate()); |
4678 __ CallStub(&convert_stub); | 4678 __ CallStub(&convert_stub); |
| 4679 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
4679 | 4680 |
4680 // Save result for postfix expressions. | 4681 // Save result for postfix expressions. |
4681 if (expr->is_postfix()) { | 4682 if (expr->is_postfix()) { |
4682 if (!context()->IsEffect()) { | 4683 if (!context()->IsEffect()) { |
4683 // Save the result on the stack. If we have a named or keyed property | 4684 // Save the result on the stack. If we have a named or keyed property |
4684 // we store the result under the receiver that is currently on top | 4685 // we store the result under the receiver that is currently on top |
4685 // of the stack. | 4686 // of the stack. |
4686 switch (assign_type) { | 4687 switch (assign_type) { |
4687 case VARIABLE: | 4688 case VARIABLE: |
4688 __ push(r0); | 4689 __ push(r0); |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5299 | 5300 |
5300 DCHECK(interrupt_address == | 5301 DCHECK(interrupt_address == |
5301 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5302 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5302 return OSR_AFTER_STACK_CHECK; | 5303 return OSR_AFTER_STACK_CHECK; |
5303 } | 5304 } |
5304 | 5305 |
5305 | 5306 |
5306 } } // namespace v8::internal | 5307 } } // namespace v8::internal |
5307 | 5308 |
5308 #endif // V8_TARGET_ARCH_ARM | 5309 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |