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

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

Issue 2605893002: [builtins] More stubs to the builtin-o-sphere. (Closed)
Patch Set: Fixed compile error. Created 3 years, 11 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 | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 Handle<FixedArray> constant_properties = expr->constant_properties(); 1198 Handle<FixedArray> constant_properties = expr->constant_properties();
1199 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1199 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1200 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1200 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1201 __ Mov(x1, Operand(constant_properties)); 1201 __ Mov(x1, Operand(constant_properties));
1202 int flags = expr->ComputeFlags(); 1202 int flags = expr->ComputeFlags();
1203 __ Mov(x0, Smi::FromInt(flags)); 1203 __ Mov(x0, Smi::FromInt(flags));
1204 if (MustCreateObjectLiteralWithRuntime(expr)) { 1204 if (MustCreateObjectLiteralWithRuntime(expr)) {
1205 __ Push(x3, x2, x1, x0); 1205 __ Push(x3, x2, x1, x0);
1206 __ CallRuntime(Runtime::kCreateObjectLiteral); 1206 __ CallRuntime(Runtime::kCreateObjectLiteral);
1207 } else { 1207 } else {
1208 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1208 Callable callable = CodeFactory::FastCloneShallowObject(
1209 __ CallStub(&stub); 1209 isolate(), expr->properties_count());
1210 __ Call(callable.code(), RelocInfo::CODE_TARGET);
1210 RestoreContext(); 1211 RestoreContext();
1211 } 1212 }
1212 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); 1213 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER);
1213 1214
1214 // If result_saved is true the result is on top of the stack. If 1215 // If result_saved is true the result is on top of the stack. If
1215 // result_saved is false the result is in x0. 1216 // result_saved is false the result is in x0.
1216 bool result_saved = false; 1217 bool result_saved = false;
1217 1218
1218 AccessorTable accessor_table(zone()); 1219 AccessorTable accessor_table(zone());
1219 for (int i = 0; i < expr->properties()->length(); i++) { 1220 for (int i = 0; i < expr->properties()->length(); i++) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 } 1335 }
1335 1336
1336 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1337 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1337 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1338 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1338 __ Mov(x1, Operand(constant_elements)); 1339 __ Mov(x1, Operand(constant_elements));
1339 if (MustCreateArrayLiteralWithRuntime(expr)) { 1340 if (MustCreateArrayLiteralWithRuntime(expr)) {
1340 __ Mov(x0, Smi::FromInt(expr->ComputeFlags())); 1341 __ Mov(x0, Smi::FromInt(expr->ComputeFlags()));
1341 __ Push(x3, x2, x1, x0); 1342 __ Push(x3, x2, x1, x0);
1342 __ CallRuntime(Runtime::kCreateArrayLiteral); 1343 __ CallRuntime(Runtime::kCreateArrayLiteral);
1343 } else { 1344 } else {
1344 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); 1345 Callable callable =
1345 __ CallStub(&stub); 1346 CodeFactory::FastCloneShallowArray(isolate(), allocation_site_mode);
1347 __ Call(callable.code(), RelocInfo::CODE_TARGET);
1346 RestoreContext(); 1348 RestoreContext();
1347 } 1349 }
1348 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); 1350 PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER);
1349 1351
1350 bool result_saved = false; // Is the result saved to the stack? 1352 bool result_saved = false; // Is the result saved to the stack?
1351 ZoneList<Expression*>* subexprs = expr->values(); 1353 ZoneList<Expression*>* subexprs = expr->values();
1352 int length = subexprs->length(); 1354 int length = subexprs->length();
1353 1355
1354 // Emit code to evaluate all the non-constant subexpressions and to store 1356 // Emit code to evaluate all the non-constant subexpressions and to store
1355 // them into the newly cloned array. 1357 // them into the newly cloned array.
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2922 } 2924 }
2923 2925
2924 return INTERRUPT; 2926 return INTERRUPT;
2925 } 2927 }
2926 2928
2927 2929
2928 } // namespace internal 2930 } // namespace internal
2929 } // namespace v8 2931 } // namespace v8
2930 2932
2931 #endif // V8_TARGET_ARCH_ARM64 2933 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698