OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3235 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); | 3235 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); |
3236 __ AddAndCheckForOverflow(r2, r2, scratch1, scratch2, r0); | 3236 __ AddAndCheckForOverflow(r2, r2, scratch1, scratch2, r0); |
3237 __ BranchOnNoOverflow(&done); | 3237 __ BranchOnNoOverflow(&done); |
3238 // Call stub. Undo operation first. | 3238 // Call stub. Undo operation first. |
3239 __ SubP(r2, r2, scratch1); | 3239 __ SubP(r2, r2, scratch1); |
3240 __ b(&stub_call); | 3240 __ b(&stub_call); |
3241 __ bind(&slow); | 3241 __ bind(&slow); |
3242 } | 3242 } |
3243 | 3243 |
3244 // Convert old value into a number. | 3244 // Convert old value into a number. |
3245 ToNumberStub convert_stub(isolate()); | 3245 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
3246 __ CallStub(&convert_stub); | |
3247 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); | 3246 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
3248 | 3247 |
3249 // Save result for postfix expressions. | 3248 // Save result for postfix expressions. |
3250 if (expr->is_postfix()) { | 3249 if (expr->is_postfix()) { |
3251 if (!context()->IsEffect()) { | 3250 if (!context()->IsEffect()) { |
3252 // Save the result on the stack. If we have a named or keyed property | 3251 // Save the result on the stack. If we have a named or keyed property |
3253 // we store the result under the receiver that is currently on top | 3252 // we store the result under the receiver that is currently on top |
3254 // of the stack. | 3253 // of the stack. |
3255 switch (assign_type) { | 3254 switch (assign_type) { |
3256 case VARIABLE: | 3255 case VARIABLE: |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3716 DCHECK(kOSRBranchInstruction == br_instr); | 3715 DCHECK(kOSRBranchInstruction == br_instr); |
3717 | 3716 |
3718 DCHECK(interrupt_address == | 3717 DCHECK(interrupt_address == |
3719 isolate->builtins()->OnStackReplacement()->entry()); | 3718 isolate->builtins()->OnStackReplacement()->entry()); |
3720 return ON_STACK_REPLACEMENT; | 3719 return ON_STACK_REPLACEMENT; |
3721 } | 3720 } |
3722 | 3721 |
3723 } // namespace internal | 3722 } // namespace internal |
3724 } // namespace v8 | 3723 } // namespace v8 |
3725 #endif // V8_TARGET_ARCH_S390 | 3724 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |