| 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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
| 8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1512 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 1513 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); | 1513 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); |
| 1514 __ mov(r3, Operand(constant_elements)); | 1514 __ mov(r3, Operand(constant_elements)); |
| 1515 if (MustCreateArrayLiteralWithRuntime(expr)) { | 1515 if (MustCreateArrayLiteralWithRuntime(expr)) { |
| 1516 __ LoadSmiLiteral(r2, Smi::FromInt(expr->ComputeFlags())); | 1516 __ LoadSmiLiteral(r2, Smi::FromInt(expr->ComputeFlags())); |
| 1517 __ Push(r5, r4, r3, r2); | 1517 __ Push(r5, r4, r3, r2); |
| 1518 __ CallRuntime(Runtime::kCreateArrayLiteral); | 1518 __ CallRuntime(Runtime::kCreateArrayLiteral); |
| 1519 } else { | 1519 } else { |
| 1520 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); | 1520 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); |
| 1521 __ CallStub(&stub); | 1521 __ CallStub(&stub); |
| 1522 RestoreContext(); |
| 1522 } | 1523 } |
| 1523 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); | 1524 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); |
| 1524 | 1525 |
| 1525 bool result_saved = false; // Is the result saved to the stack? | 1526 bool result_saved = false; // Is the result saved to the stack? |
| 1526 ZoneList<Expression*>* subexprs = expr->values(); | 1527 ZoneList<Expression*>* subexprs = expr->values(); |
| 1527 int length = subexprs->length(); | 1528 int length = subexprs->length(); |
| 1528 | 1529 |
| 1529 // Emit code to evaluate all the non-constant subexpressions and to store | 1530 // Emit code to evaluate all the non-constant subexpressions and to store |
| 1530 // them into the newly cloned array. | 1531 // them into the newly cloned array. |
| 1531 for (int array_index = 0; array_index < length; array_index++) { | 1532 for (int array_index = 0; array_index < length; array_index++) { |
| (...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3625 DCHECK(kOSRBranchInstruction == br_instr); | 3626 DCHECK(kOSRBranchInstruction == br_instr); |
| 3626 | 3627 |
| 3627 DCHECK(interrupt_address == | 3628 DCHECK(interrupt_address == |
| 3628 isolate->builtins()->OnStackReplacement()->entry()); | 3629 isolate->builtins()->OnStackReplacement()->entry()); |
| 3629 return ON_STACK_REPLACEMENT; | 3630 return ON_STACK_REPLACEMENT; |
| 3630 } | 3631 } |
| 3631 | 3632 |
| 3632 } // namespace internal | 3633 } // namespace internal |
| 3633 } // namespace v8 | 3634 } // namespace v8 |
| 3634 #endif // V8_TARGET_ARCH_S390 | 3635 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |