| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 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 4712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4723 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); | 4723 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); |
| 4724 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); | 4724 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); |
| 4725 __ BranchOnNoOverflow(&done); | 4725 __ BranchOnNoOverflow(&done); |
| 4726 // Call stub. Undo operation first. | 4726 // Call stub. Undo operation first. |
| 4727 __ sub(r3, r3, scratch1); | 4727 __ sub(r3, r3, scratch1); |
| 4728 __ b(&stub_call); | 4728 __ b(&stub_call); |
| 4729 __ bind(&slow); | 4729 __ bind(&slow); |
| 4730 } | 4730 } |
| 4731 ToNumberStub convert_stub(isolate()); | 4731 ToNumberStub convert_stub(isolate()); |
| 4732 __ CallStub(&convert_stub); | 4732 __ CallStub(&convert_stub); |
| 4733 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
| 4733 | 4734 |
| 4734 // Save result for postfix expressions. | 4735 // Save result for postfix expressions. |
| 4735 if (expr->is_postfix()) { | 4736 if (expr->is_postfix()) { |
| 4736 if (!context()->IsEffect()) { | 4737 if (!context()->IsEffect()) { |
| 4737 // Save the result on the stack. If we have a named or keyed property | 4738 // Save the result on the stack. If we have a named or keyed property |
| 4738 // we store the result under the receiver that is currently on top | 4739 // we store the result under the receiver that is currently on top |
| 4739 // of the stack. | 4740 // of the stack. |
| 4740 switch (assign_type) { | 4741 switch (assign_type) { |
| 4741 case VARIABLE: | 4742 case VARIABLE: |
| 4742 __ push(r3); | 4743 __ push(r3); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5281 return ON_STACK_REPLACEMENT; | 5282 return ON_STACK_REPLACEMENT; |
| 5282 } | 5283 } |
| 5283 | 5284 |
| 5284 DCHECK(interrupt_address == | 5285 DCHECK(interrupt_address == |
| 5285 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5286 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5286 return OSR_AFTER_STACK_CHECK; | 5287 return OSR_AFTER_STACK_CHECK; |
| 5287 } | 5288 } |
| 5288 } | 5289 } |
| 5289 } // namespace v8::internal | 5290 } // namespace v8::internal |
| 5290 #endif // V8_TARGET_ARCH_PPC | 5291 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |