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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; 1132 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3;
1133 EmitSetHomeObject(expression, offset, property->GetSlot()); 1133 EmitSetHomeObject(expression, offset, property->GetSlot());
1134 } 1134 }
1135 } 1135 }
1136 } 1136 }
1137 1137
1138 1138
1139 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 1139 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1140 Comment cmnt(masm_, "[ ObjectLiteral"); 1140 Comment cmnt(masm_, "[ ObjectLiteral");
1141 1141
1142 Handle<FixedArray> constant_properties = 1142 Handle<BoilerplateDescription> constant_properties =
1143 expr->GetOrBuildConstantProperties(isolate()); 1143 expr->GetOrBuildConstantProperties(isolate());
1144 int flags = expr->ComputeFlags(); 1144 int flags = expr->ComputeFlags();
1145 // If any of the keys would store to the elements array, then we shouldn't 1145 // If any of the keys would store to the elements array, then we shouldn't
1146 // allow it. 1146 // allow it.
1147 if (MustCreateObjectLiteralWithRuntime(expr)) { 1147 if (MustCreateObjectLiteralWithRuntime(expr)) {
1148 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1148 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1149 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1149 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1150 __ push(Immediate(constant_properties)); 1150 __ push(Immediate(constant_properties));
1151 __ push(Immediate(Smi::FromInt(flags))); 1151 __ push(Immediate(Smi::FromInt(flags)));
1152 __ CallRuntime(Runtime::kCreateObjectLiteral); 1152 __ CallRuntime(Runtime::kCreateObjectLiteral);
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 isolate->builtins()->OnStackReplacement()->entry(), 2780 isolate->builtins()->OnStackReplacement()->entry(),
2781 Assembler::target_address_at(call_target_address, unoptimized_code)); 2781 Assembler::target_address_at(call_target_address, unoptimized_code));
2782 return ON_STACK_REPLACEMENT; 2782 return ON_STACK_REPLACEMENT;
2783 } 2783 }
2784 2784
2785 2785
2786 } // namespace internal 2786 } // namespace internal
2787 } // namespace v8 2787 } // namespace v8
2788 2788
2789 #endif // V8_TARGET_ARCH_IA32 2789 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698