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

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: 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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 Handle<FixedArray> constant_properties = expr->constant_properties(); 1380 Handle<FixedArray> constant_properties = expr->constant_properties();
1381 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1381 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
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 __ push(cp);
1390 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1391 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1391 __ CallStub(&stub); 1392 __ CallStub(&stub);
1393 __ pop(cp);
1392 } 1394 }
1393 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1395 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1394 1396
1395 // If result_saved is true the result is on top of the stack. If 1397 // If result_saved is true the result is on top of the stack. If
1396 // result_saved is false the result is in r3. 1398 // result_saved is false the result is in r3.
1397 bool result_saved = false; 1399 bool result_saved = false;
1398 1400
1399 AccessorTable accessor_table(zone()); 1401 AccessorTable accessor_table(zone());
1400 int property_index = 0; 1402 int property_index = 0;
1401 for (; property_index < expr->properties()->length(); property_index++) { 1403 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 4074
4073 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 4075 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
4074 4076
4075 DCHECK(interrupt_address == 4077 DCHECK(interrupt_address ==
4076 isolate->builtins()->OnStackReplacement()->entry()); 4078 isolate->builtins()->OnStackReplacement()->entry());
4077 return ON_STACK_REPLACEMENT; 4079 return ON_STACK_REPLACEMENT;
4078 } 4080 }
4079 } // namespace internal 4081 } // namespace internal
4080 } // namespace v8 4082 } // namespace v8
4081 #endif // V8_TARGET_ARCH_PPC 4083 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698