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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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_X87 5 #if V8_TARGET_ARCH_X87
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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; 1124 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3;
1125 EmitSetHomeObject(expression, offset, property->GetSlot()); 1125 EmitSetHomeObject(expression, offset, property->GetSlot());
1126 } 1126 }
1127 } 1127 }
1128 } 1128 }
1129 1129
1130 1130
1131 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 1131 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1132 Comment cmnt(masm_, "[ ObjectLiteral"); 1132 Comment cmnt(masm_, "[ ObjectLiteral");
1133 1133
1134 Handle<FixedArray> constant_properties = 1134 Handle<BoilerplateDescription> constant_properties =
1135 expr->GetOrBuildConstantProperties(isolate()); 1135 expr->GetOrBuildConstantProperties(isolate());
1136 int flags = expr->ComputeFlags(); 1136 int flags = expr->ComputeFlags();
1137 // If any of the keys would store to the elements array, then we shouldn't 1137 // If any of the keys would store to the elements array, then we shouldn't
1138 // allow it. 1138 // allow it.
1139 if (MustCreateObjectLiteralWithRuntime(expr)) { 1139 if (MustCreateObjectLiteralWithRuntime(expr)) {
1140 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1140 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1141 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1141 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1142 __ push(Immediate(constant_properties)); 1142 __ push(Immediate(constant_properties));
1143 __ push(Immediate(Smi::FromInt(flags))); 1143 __ push(Immediate(Smi::FromInt(flags)));
1144 __ CallRuntime(Runtime::kCreateObjectLiteral); 1144 __ CallRuntime(Runtime::kCreateObjectLiteral);
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 isolate->builtins()->OnStackReplacement()->entry(), 2772 isolate->builtins()->OnStackReplacement()->entry(),
2773 Assembler::target_address_at(call_target_address, unoptimized_code)); 2773 Assembler::target_address_at(call_target_address, unoptimized_code));
2774 return ON_STACK_REPLACEMENT; 2774 return ON_STACK_REPLACEMENT;
2775 } 2775 }
2776 2776
2777 2777
2778 } // namespace internal 2778 } // namespace internal
2779 } // namespace v8 2779 } // namespace v8
2780 2780
2781 #endif // V8_TARGET_ARCH_X87 2781 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698