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

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

Issue 1888043006: Revert of Migrate FastCloneShallowObjectStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/compiler/code-stub-assembler.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); 1420 __ mov(r2, Operand(Smi::FromInt(expr->literal_index())));
1421 __ mov(r1, Operand(constant_properties)); 1421 __ mov(r1, Operand(constant_properties));
1422 int flags = expr->ComputeFlags(); 1422 int flags = expr->ComputeFlags();
1423 __ mov(r0, Operand(Smi::FromInt(flags))); 1423 __ mov(r0, Operand(Smi::FromInt(flags)));
1424 if (MustCreateObjectLiteralWithRuntime(expr)) { 1424 if (MustCreateObjectLiteralWithRuntime(expr)) {
1425 __ Push(r3, r2, r1, r0); 1425 __ Push(r3, r2, r1, r0);
1426 __ CallRuntime(Runtime::kCreateObjectLiteral); 1426 __ CallRuntime(Runtime::kCreateObjectLiteral);
1427 } else { 1427 } else {
1428 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1428 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1429 __ CallStub(&stub); 1429 __ CallStub(&stub);
1430 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1431 } 1430 }
1432 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1431 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1433 1432
1434 // If result_saved is true the result is on top of the stack. If 1433 // If result_saved is true the result is on top of the stack. If
1435 // result_saved is false the result is in r0. 1434 // result_saved is false the result is in r0.
1436 bool result_saved = false; 1435 bool result_saved = false;
1437 1436
1438 AccessorTable accessor_table(zone()); 1437 AccessorTable accessor_table(zone());
1439 int property_index = 0; 1438 int property_index = 0;
1440 for (; property_index < expr->properties()->length(); property_index++) { 1439 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
4055 DCHECK(interrupt_address == 4054 DCHECK(interrupt_address ==
4056 isolate->builtins()->OnStackReplacement()->entry()); 4055 isolate->builtins()->OnStackReplacement()->entry());
4057 return ON_STACK_REPLACEMENT; 4056 return ON_STACK_REPLACEMENT;
4058 } 4057 }
4059 4058
4060 4059
4061 } // namespace internal 4060 } // namespace internal
4062 } // namespace v8 4061 } // namespace v8
4063 4062
4064 #endif // V8_TARGET_ARCH_ARM 4063 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698