| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3201 __ Adds(x0, x0, Smi::FromInt(count_value)); | 3201 __ Adds(x0, x0, Smi::FromInt(count_value)); |
| 3202 __ B(vc, &done); | 3202 __ B(vc, &done); |
| 3203 // Call stub. Undo operation first. | 3203 // Call stub. Undo operation first. |
| 3204 __ Sub(x0, x0, Smi::FromInt(count_value)); | 3204 __ Sub(x0, x0, Smi::FromInt(count_value)); |
| 3205 __ B(&stub_call); | 3205 __ B(&stub_call); |
| 3206 __ Bind(&slow); | 3206 __ Bind(&slow); |
| 3207 } | 3207 } |
| 3208 | 3208 |
| 3209 // Convert old value into a number. | 3209 // Convert old value into a number. |
| 3210 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); | 3210 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
| 3211 RestoreContext(); |
| 3211 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); | 3212 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
| 3212 | 3213 |
| 3213 // Save result for postfix expressions. | 3214 // Save result for postfix expressions. |
| 3214 if (expr->is_postfix()) { | 3215 if (expr->is_postfix()) { |
| 3215 if (!context()->IsEffect()) { | 3216 if (!context()->IsEffect()) { |
| 3216 // Save the result on the stack. If we have a named or keyed property | 3217 // Save the result on the stack. If we have a named or keyed property |
| 3217 // we store the result under the receiver that is currently on top | 3218 // we store the result under the receiver that is currently on top |
| 3218 // of the stack. | 3219 // of the stack. |
| 3219 switch (assign_type) { | 3220 switch (assign_type) { |
| 3220 case VARIABLE: | 3221 case VARIABLE: |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3852 } | 3853 } |
| 3853 | 3854 |
| 3854 return INTERRUPT; | 3855 return INTERRUPT; |
| 3855 } | 3856 } |
| 3856 | 3857 |
| 3857 | 3858 |
| 3858 } // namespace internal | 3859 } // namespace internal |
| 3859 } // namespace v8 | 3860 } // namespace v8 |
| 3860 | 3861 |
| 3861 #endif // V8_TARGET_ARCH_ARM64 | 3862 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |