| 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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1497   __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1497   __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 
| 1498   __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); | 1498   __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); | 
| 1499   __ mov(r3, Operand(constant_elements)); | 1499   __ mov(r3, Operand(constant_elements)); | 
| 1500   if (MustCreateArrayLiteralWithRuntime(expr)) { | 1500   if (MustCreateArrayLiteralWithRuntime(expr)) { | 
| 1501     __ LoadSmiLiteral(r2, Smi::FromInt(expr->ComputeFlags())); | 1501     __ LoadSmiLiteral(r2, Smi::FromInt(expr->ComputeFlags())); | 
| 1502     __ Push(r5, r4, r3, r2); | 1502     __ Push(r5, r4, r3, r2); | 
| 1503     __ CallRuntime(Runtime::kCreateArrayLiteral); | 1503     __ CallRuntime(Runtime::kCreateArrayLiteral); | 
| 1504   } else { | 1504   } else { | 
| 1505     FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); | 1505     FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); | 
| 1506     __ CallStub(&stub); | 1506     __ CallStub(&stub); | 
|  | 1507     RestoreContext(); | 
| 1507   } | 1508   } | 
| 1508   PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); | 1509   PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); | 
| 1509 | 1510 | 
| 1510   bool result_saved = false;  // Is the result saved to the stack? | 1511   bool result_saved = false;  // Is the result saved to the stack? | 
| 1511   ZoneList<Expression*>* subexprs = expr->values(); | 1512   ZoneList<Expression*>* subexprs = expr->values(); | 
| 1512   int length = subexprs->length(); | 1513   int length = subexprs->length(); | 
| 1513 | 1514 | 
| 1514   // Emit code to evaluate all the non-constant subexpressions and to store | 1515   // Emit code to evaluate all the non-constant subexpressions and to store | 
| 1515   // them into the newly cloned array. | 1516   // them into the newly cloned array. | 
| 1516   for (int array_index = 0; array_index < length; array_index++) { | 1517   for (int array_index = 0; array_index < length; array_index++) { | 
| (...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3609   DCHECK(kOSRBranchInstruction == br_instr); | 3610   DCHECK(kOSRBranchInstruction == br_instr); | 
| 3610 | 3611 | 
| 3611   DCHECK(interrupt_address == | 3612   DCHECK(interrupt_address == | 
| 3612          isolate->builtins()->OnStackReplacement()->entry()); | 3613          isolate->builtins()->OnStackReplacement()->entry()); | 
| 3613   return ON_STACK_REPLACEMENT; | 3614   return ON_STACK_REPLACEMENT; | 
| 3614 } | 3615 } | 
| 3615 | 3616 | 
| 3616 }  // namespace internal | 3617 }  // namespace internal | 
| 3617 }  // namespace v8 | 3618 }  // namespace v8 | 
| 3618 #endif  // V8_TARGET_ARCH_S390 | 3619 #endif  // V8_TARGET_ARCH_S390 | 
| OLD | NEW | 
|---|