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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1417 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1418 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); 1418 __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
1419 __ li(a1, Operand(constant_properties)); 1419 __ li(a1, Operand(constant_properties));
1420 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); 1420 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags())));
1421 if (MustCreateObjectLiteralWithRuntime(expr)) { 1421 if (MustCreateObjectLiteralWithRuntime(expr)) {
1422 __ Push(a3, a2, a1, a0); 1422 __ Push(a3, a2, a1, a0);
1423 __ CallRuntime(Runtime::kCreateObjectLiteral); 1423 __ CallRuntime(Runtime::kCreateObjectLiteral);
1424 } else { 1424 } else {
1425 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1425 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1426 __ CallStub(&stub); 1426 __ CallStub(&stub);
1427 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1427 } 1428 }
1428 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1429 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1429 1430
1430 // If result_saved is true the result is on top of the stack. If 1431 // If result_saved is true the result is on top of the stack. If
1431 // result_saved is false the result is in v0. 1432 // result_saved is false the result is in v0.
1432 bool result_saved = false; 1433 bool result_saved = false;
1433 1434
1434 AccessorTable accessor_table(zone()); 1435 AccessorTable accessor_table(zone());
1435 int property_index = 0; 1436 int property_index = 0;
1436 for (; property_index < expr->properties()->length(); property_index++) { 1437 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
4009 reinterpret_cast<uint32_t>( 4010 reinterpret_cast<uint32_t>(
4010 isolate->builtins()->OnStackReplacement()->entry())); 4011 isolate->builtins()->OnStackReplacement()->entry()));
4011 return ON_STACK_REPLACEMENT; 4012 return ON_STACK_REPLACEMENT;
4012 } 4013 }
4013 4014
4014 4015
4015 } // namespace internal 4016 } // namespace internal
4016 } // namespace v8 4017 } // namespace v8
4017 4018
4018 #endif // V8_TARGET_ARCH_MIPS 4019 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698