Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: src/ppc/full-codegen-ppc.cc

Issue 1166473004: PPC: Build ObjectLiteral constant properties in the numbering phase. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 __ push(r4); 1607 __ push(r4);
1608 } else { 1608 } else {
1609 VisitForStackValue(expression); 1609 VisitForStackValue(expression);
1610 } 1610 }
1611 } 1611 }
1612 1612
1613 1613
1614 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 1614 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1615 Comment cmnt(masm_, "[ ObjectLiteral"); 1615 Comment cmnt(masm_, "[ ObjectLiteral");
1616 1616
1617 expr->BuildConstantProperties(isolate());
1618 Handle<FixedArray> constant_properties = expr->constant_properties(); 1617 Handle<FixedArray> constant_properties = expr->constant_properties();
1619 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1618 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1620 __ LoadP(r6, FieldMemOperand(r6, JSFunction::kLiteralsOffset)); 1619 __ LoadP(r6, FieldMemOperand(r6, JSFunction::kLiteralsOffset));
1621 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); 1620 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index()));
1622 __ mov(r4, Operand(constant_properties)); 1621 __ mov(r4, Operand(constant_properties));
1623 int flags = expr->ComputeFlags(); 1622 int flags = expr->ComputeFlags();
1624 __ LoadSmiLiteral(r3, Smi::FromInt(flags)); 1623 __ LoadSmiLiteral(r3, Smi::FromInt(flags));
1625 if (MustCreateObjectLiteralWithRuntime(expr)) { 1624 if (MustCreateObjectLiteralWithRuntime(expr)) {
1626 __ Push(r6, r5, r4, r3); 1625 __ Push(r6, r5, r4, r3);
1627 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); 1626 __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
(...skipping 3889 matching lines...) Expand 10 before | Expand all | Expand 10 after
5517 return ON_STACK_REPLACEMENT; 5516 return ON_STACK_REPLACEMENT;
5518 } 5517 }
5519 5518
5520 DCHECK(interrupt_address == 5519 DCHECK(interrupt_address ==
5521 isolate->builtins()->OsrAfterStackCheck()->entry()); 5520 isolate->builtins()->OsrAfterStackCheck()->entry());
5522 return OSR_AFTER_STACK_CHECK; 5521 return OSR_AFTER_STACK_CHECK;
5523 } 5522 }
5524 } // namespace internal 5523 } // namespace internal
5525 } // namespace v8 5524 } // namespace v8
5526 #endif // V8_TARGET_ARCH_PPC 5525 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698