| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 4342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4353 | 4353 |
| 4354 __ Adds(x0, x0, Smi::FromInt(count_value)); | 4354 __ Adds(x0, x0, Smi::FromInt(count_value)); |
| 4355 __ B(vc, &done); | 4355 __ B(vc, &done); |
| 4356 // Call stub. Undo operation first. | 4356 // Call stub. Undo operation first. |
| 4357 __ Sub(x0, x0, Smi::FromInt(count_value)); | 4357 __ Sub(x0, x0, Smi::FromInt(count_value)); |
| 4358 __ B(&stub_call); | 4358 __ B(&stub_call); |
| 4359 __ Bind(&slow); | 4359 __ Bind(&slow); |
| 4360 } | 4360 } |
| 4361 ToNumberStub convert_stub(isolate()); | 4361 ToNumberStub convert_stub(isolate()); |
| 4362 __ CallStub(&convert_stub); | 4362 __ CallStub(&convert_stub); |
| 4363 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
| 4363 | 4364 |
| 4364 // Save result for postfix expressions. | 4365 // Save result for postfix expressions. |
| 4365 if (expr->is_postfix()) { | 4366 if (expr->is_postfix()) { |
| 4366 if (!context()->IsEffect()) { | 4367 if (!context()->IsEffect()) { |
| 4367 // Save the result on the stack. If we have a named or keyed property | 4368 // Save the result on the stack. If we have a named or keyed property |
| 4368 // we store the result under the receiver that is currently on top | 4369 // we store the result under the receiver that is currently on top |
| 4369 // of the stack. | 4370 // of the stack. |
| 4370 switch (assign_type) { | 4371 switch (assign_type) { |
| 4371 case VARIABLE: | 4372 case VARIABLE: |
| 4372 __ Push(x0); | 4373 __ Push(x0); |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5279 return previous_; | 5280 return previous_; |
| 5280 } | 5281 } |
| 5281 | 5282 |
| 5282 | 5283 |
| 5283 #undef __ | 5284 #undef __ |
| 5284 | 5285 |
| 5285 | 5286 |
| 5286 } } // namespace v8::internal | 5287 } } // namespace v8::internal |
| 5287 | 5288 |
| 5288 #endif // V8_TARGET_ARCH_ARM64 | 5289 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |