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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3317 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); | 3317 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); |
3318 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); | 3318 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); |
3319 __ BranchOnNoOverflow(&done); | 3319 __ BranchOnNoOverflow(&done); |
3320 // Call stub. Undo operation first. | 3320 // Call stub. Undo operation first. |
3321 __ sub(r3, r3, scratch1); | 3321 __ sub(r3, r3, scratch1); |
3322 __ b(&stub_call); | 3322 __ b(&stub_call); |
3323 __ bind(&slow); | 3323 __ bind(&slow); |
3324 } | 3324 } |
3325 | 3325 |
3326 // Convert old value into a number. | 3326 // Convert old value into a number. |
3327 ToNumberStub convert_stub(isolate()); | 3327 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
3328 __ CallStub(&convert_stub); | |
3329 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); | 3328 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
3330 | 3329 |
3331 // Save result for postfix expressions. | 3330 // Save result for postfix expressions. |
3332 if (expr->is_postfix()) { | 3331 if (expr->is_postfix()) { |
3333 if (!context()->IsEffect()) { | 3332 if (!context()->IsEffect()) { |
3334 // Save the result on the stack. If we have a named or keyed property | 3333 // Save the result on the stack. If we have a named or keyed property |
3335 // we store the result under the receiver that is currently on top | 3334 // we store the result under the receiver that is currently on top |
3336 // of the stack. | 3335 // of the stack. |
3337 switch (assign_type) { | 3336 switch (assign_type) { |
3338 case VARIABLE: | 3337 case VARIABLE: |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3805 | 3804 |
3806 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3805 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3807 | 3806 |
3808 DCHECK(interrupt_address == | 3807 DCHECK(interrupt_address == |
3809 isolate->builtins()->OnStackReplacement()->entry()); | 3808 isolate->builtins()->OnStackReplacement()->entry()); |
3810 return ON_STACK_REPLACEMENT; | 3809 return ON_STACK_REPLACEMENT; |
3811 } | 3810 } |
3812 } // namespace internal | 3811 } // namespace internal |
3813 } // namespace v8 | 3812 } // namespace v8 |
3814 #endif // V8_TARGET_ARCH_PPC | 3813 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |