| 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/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 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1553   __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1553   __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 
| 1554   __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); | 1554   __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); | 
| 1555   __ mov(r4, Operand(constant_elements)); | 1555   __ mov(r4, Operand(constant_elements)); | 
| 1556   if (MustCreateArrayLiteralWithRuntime(expr)) { | 1556   if (MustCreateArrayLiteralWithRuntime(expr)) { | 
| 1557     __ LoadSmiLiteral(r3, Smi::FromInt(expr->ComputeFlags())); | 1557     __ LoadSmiLiteral(r3, Smi::FromInt(expr->ComputeFlags())); | 
| 1558     __ Push(r6, r5, r4, r3); | 1558     __ Push(r6, r5, r4, r3); | 
| 1559     __ CallRuntime(Runtime::kCreateArrayLiteral); | 1559     __ CallRuntime(Runtime::kCreateArrayLiteral); | 
| 1560   } else { | 1560   } else { | 
| 1561     FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); | 1561     FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); | 
| 1562     __ CallStub(&stub); | 1562     __ CallStub(&stub); | 
|  | 1563     RestoreContext(); | 
| 1563   } | 1564   } | 
| 1564   PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); | 1565   PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); | 
| 1565 | 1566 | 
| 1566   bool result_saved = false;  // Is the result saved to the stack? | 1567   bool result_saved = false;  // Is the result saved to the stack? | 
| 1567   ZoneList<Expression*>* subexprs = expr->values(); | 1568   ZoneList<Expression*>* subexprs = expr->values(); | 
| 1568   int length = subexprs->length(); | 1569   int length = subexprs->length(); | 
| 1569 | 1570 | 
| 1570   // Emit code to evaluate all the non-constant subexpressions and to store | 1571   // Emit code to evaluate all the non-constant subexpressions and to store | 
| 1571   // them into the newly cloned array. | 1572   // them into the newly cloned array. | 
| 1572   for (int array_index = 0; array_index < length; array_index++) { | 1573   for (int array_index = 0; array_index < length; array_index++) { | 
| (...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3714 | 3715 | 
| 3715   DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3716   DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 
| 3716 | 3717 | 
| 3717   DCHECK(interrupt_address == | 3718   DCHECK(interrupt_address == | 
| 3718          isolate->builtins()->OnStackReplacement()->entry()); | 3719          isolate->builtins()->OnStackReplacement()->entry()); | 
| 3719   return ON_STACK_REPLACEMENT; | 3720   return ON_STACK_REPLACEMENT; | 
| 3720 } | 3721 } | 
| 3721 }  // namespace internal | 3722 }  // namespace internal | 
| 3722 }  // namespace v8 | 3723 }  // namespace v8 | 
| 3723 #endif  // V8_TARGET_ARCH_PPC | 3724 #endif  // V8_TARGET_ARCH_PPC | 
| OLD | NEW | 
|---|