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

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

Issue 2659603003: Adapt use-site to new BoilerplateDescription. (Closed)
Patch Set: One more use-site. Created 3 years, 10 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
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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; 1177 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3;
1178 EmitSetHomeObject(expression, offset, property->GetSlot()); 1178 EmitSetHomeObject(expression, offset, property->GetSlot());
1179 } 1179 }
1180 } 1180 }
1181 } 1181 }
1182 1182
1183 1183
1184 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 1184 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1185 Comment cmnt(masm_, "[ ObjectLiteral"); 1185 Comment cmnt(masm_, "[ ObjectLiteral");
1186 1186
1187 Handle<FixedArray> constant_properties = 1187 Handle<BoilerplateDescription> constant_properties =
1188 expr->GetOrBuildConstantProperties(isolate()); 1188 expr->GetOrBuildConstantProperties(isolate());
1189 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1189 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1190 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); 1190 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index()));
1191 __ mov(r4, Operand(constant_properties)); 1191 __ mov(r4, Operand(constant_properties));
1192 int flags = expr->ComputeFlags(); 1192 int flags = expr->ComputeFlags();
1193 __ LoadSmiLiteral(r3, Smi::FromInt(flags)); 1193 __ LoadSmiLiteral(r3, Smi::FromInt(flags));
1194 if (MustCreateObjectLiteralWithRuntime(expr)) { 1194 if (MustCreateObjectLiteralWithRuntime(expr)) {
1195 __ Push(r6, r5, r4, r3); 1195 __ Push(r6, r5, r4, r3);
1196 __ CallRuntime(Runtime::kCreateObjectLiteral); 1196 __ CallRuntime(Runtime::kCreateObjectLiteral);
1197 } else { 1197 } else {
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 2848
2849 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2849 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2850 2850
2851 DCHECK(interrupt_address == 2851 DCHECK(interrupt_address ==
2852 isolate->builtins()->OnStackReplacement()->entry()); 2852 isolate->builtins()->OnStackReplacement()->entry());
2853 return ON_STACK_REPLACEMENT; 2853 return ON_STACK_REPLACEMENT;
2854 } 2854 }
2855 } // namespace internal 2855 } // namespace internal
2856 } // namespace v8 2856 } // namespace v8
2857 #endif // V8_TARGET_ARCH_PPC 2857 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698