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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); 1382 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index()));
1383 __ mov(r4, Operand(constant_properties)); 1383 __ mov(r4, Operand(constant_properties));
1384 int flags = expr->ComputeFlags(); 1384 int flags = expr->ComputeFlags();
1385 __ LoadSmiLiteral(r3, Smi::FromInt(flags)); 1385 __ LoadSmiLiteral(r3, Smi::FromInt(flags));
1386 if (MustCreateObjectLiteralWithRuntime(expr)) { 1386 if (MustCreateObjectLiteralWithRuntime(expr)) {
1387 __ Push(r6, r5, r4, r3); 1387 __ Push(r6, r5, r4, r3);
1388 __ CallRuntime(Runtime::kCreateObjectLiteral); 1388 __ CallRuntime(Runtime::kCreateObjectLiteral);
1389 } else { 1389 } else {
1390 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1390 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1391 __ CallStub(&stub); 1391 __ CallStub(&stub);
1392 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1392 } 1393 }
1393 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1394 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1394 1395
1395 // If result_saved is true the result is on top of the stack. If 1396 // If result_saved is true the result is on top of the stack. If
1396 // result_saved is false the result is in r3. 1397 // result_saved is false the result is in r3.
1397 bool result_saved = false; 1398 bool result_saved = false;
1398 1399
1399 AccessorTable accessor_table(zone()); 1400 AccessorTable accessor_table(zone());
1400 int property_index = 0; 1401 int property_index = 0;
1401 for (; property_index < expr->properties()->length(); property_index++) { 1402 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after
3963 3964
3964 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3965 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3965 3966
3966 DCHECK(interrupt_address == 3967 DCHECK(interrupt_address ==
3967 isolate->builtins()->OnStackReplacement()->entry()); 3968 isolate->builtins()->OnStackReplacement()->entry());
3968 return ON_STACK_REPLACEMENT; 3969 return ON_STACK_REPLACEMENT;
3969 } 3970 }
3970 } // namespace internal 3971 } // namespace internal
3971 } // namespace v8 3972 } // namespace v8
3972 #endif // V8_TARGET_ARCH_PPC 3973 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698