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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; 1193 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3;
1194 EmitSetHomeObject(expression, offset, property->GetSlot()); 1194 EmitSetHomeObject(expression, offset, property->GetSlot());
1195 } 1195 }
1196 } 1196 }
1197 } 1197 }
1198 1198
1199 1199
1200 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 1200 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1201 Comment cmnt(masm_, "[ ObjectLiteral"); 1201 Comment cmnt(masm_, "[ ObjectLiteral");
1202 1202
1203 Handle<FixedArray> constant_properties = 1203 Handle<BoilerplateDescription> constant_properties =
1204 expr->GetOrBuildConstantProperties(isolate()); 1204 expr->GetOrBuildConstantProperties(isolate());
1205 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1205 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1206 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1206 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1207 __ Mov(x1, Operand(constant_properties)); 1207 __ Mov(x1, Operand(constant_properties));
1208 int flags = expr->ComputeFlags(); 1208 int flags = expr->ComputeFlags();
1209 __ Mov(x0, Smi::FromInt(flags)); 1209 __ Mov(x0, Smi::FromInt(flags));
1210 if (MustCreateObjectLiteralWithRuntime(expr)) { 1210 if (MustCreateObjectLiteralWithRuntime(expr)) {
1211 __ Push(x3, x2, x1, x0); 1211 __ Push(x3, x2, x1, x0);
1212 __ CallRuntime(Runtime::kCreateObjectLiteral); 1212 __ CallRuntime(Runtime::kCreateObjectLiteral);
1213 } else { 1213 } else {
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 } 2910 }
2911 2911
2912 return INTERRUPT; 2912 return INTERRUPT;
2913 } 2913 }
2914 2914
2915 2915
2916 } // namespace internal 2916 } // namespace internal
2917 } // namespace v8 2917 } // namespace v8
2918 2918
2919 #endif // V8_TARGET_ARCH_ARM64 2919 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698