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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 1416
1417 Handle<FixedArray> constant_properties = expr->constant_properties(); 1417 Handle<FixedArray> constant_properties = expr->constant_properties();
1418 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1418 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1419 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); 1419 __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
1420 __ li(a1, Operand(constant_properties)); 1420 __ li(a1, Operand(constant_properties));
1421 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); 1421 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags())));
1422 if (MustCreateObjectLiteralWithRuntime(expr)) { 1422 if (MustCreateObjectLiteralWithRuntime(expr)) {
1423 __ Push(a3, a2, a1, a0); 1423 __ Push(a3, a2, a1, a0);
1424 __ CallRuntime(Runtime::kCreateObjectLiteral); 1424 __ CallRuntime(Runtime::kCreateObjectLiteral);
1425 } else { 1425 } else {
1426 __ push(cp);
1426 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1427 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1427 __ CallStub(&stub); 1428 __ CallStub(&stub);
1429 __ pop(cp);
1428 } 1430 }
1429 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1431 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1430 1432
1431 // 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
1432 // result_saved is false the result is in v0. 1434 // result_saved is false the result is in v0.
1433 bool result_saved = false; 1435 bool result_saved = false;
1434 1436
1435 AccessorTable accessor_table(zone()); 1437 AccessorTable accessor_table(zone());
1436 int property_index = 0; 1438 int property_index = 0;
1437 for (; property_index < expr->properties()->length(); property_index++) { 1439 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
4112 reinterpret_cast<uint64_t>( 4114 reinterpret_cast<uint64_t>(
4113 isolate->builtins()->OnStackReplacement()->entry())); 4115 isolate->builtins()->OnStackReplacement()->entry()));
4114 return ON_STACK_REPLACEMENT; 4116 return ON_STACK_REPLACEMENT;
4115 } 4117 }
4116 4118
4117 4119
4118 } // namespace internal 4120 } // namespace internal
4119 } // namespace v8 4121 } // namespace v8
4120 4122
4121 #endif // V8_TARGET_ARCH_MIPS64 4123 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698