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

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

Issue 1838283003: Migrate FastCloneShallowObjectStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 8 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/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1407 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1408 __ Mov(x1, Operand(constant_properties)); 1408 __ Mov(x1, Operand(constant_properties));
1409 int flags = expr->ComputeFlags(); 1409 int flags = expr->ComputeFlags();
1410 __ Mov(x0, Smi::FromInt(flags)); 1410 __ Mov(x0, Smi::FromInt(flags));
1411 if (MustCreateObjectLiteralWithRuntime(expr)) { 1411 if (MustCreateObjectLiteralWithRuntime(expr)) {
1412 __ Push(x3, x2, x1, x0); 1412 __ Push(x3, x2, x1, x0);
1413 __ CallRuntime(Runtime::kCreateObjectLiteral); 1413 __ CallRuntime(Runtime::kCreateObjectLiteral);
1414 } else { 1414 } else {
1415 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1415 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1416 __ CallStub(&stub); 1416 __ CallStub(&stub);
1417 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1417 } 1418 }
1418 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1419 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1419 1420
1420 // If result_saved is true the result is on top of the stack. If 1421 // If result_saved is true the result is on top of the stack. If
1421 // result_saved is false the result is in x0. 1422 // result_saved is false the result is in x0.
1422 bool result_saved = false; 1423 bool result_saved = false;
1423 1424
1424 AccessorTable accessor_table(zone()); 1425 AccessorTable accessor_table(zone());
1425 int property_index = 0; 1426 int property_index = 0;
1426 for (; property_index < expr->properties()->length(); property_index++) { 1427 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after
4054 } 4055 }
4055 4056
4056 return INTERRUPT; 4057 return INTERRUPT;
4057 } 4058 }
4058 4059
4059 4060
4060 } // namespace internal 4061 } // namespace internal
4061 } // namespace v8 4062 } // namespace v8
4062 4063
4063 #endif // V8_TARGET_ARCH_ARM64 4064 #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