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

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: 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 1415
1416 Handle<FixedArray> constant_properties = expr->constant_properties(); 1416 Handle<FixedArray> constant_properties = expr->constant_properties();
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 __ push(cp);
1425 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1426 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1426 __ CallStub(&stub); 1427 __ CallStub(&stub);
1428 __ pop(cp);
1427 } 1429 }
1428 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1430 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1429 1431
1430 // If result_saved is true the result is on top of the stack. If 1432 // If result_saved is true the result is on top of the stack. If
1431 // result_saved is false the result is in v0. 1433 // result_saved is false the result is in v0.
1432 bool result_saved = false; 1434 bool result_saved = false;
1433 1435
1434 AccessorTable accessor_table(zone()); 1436 AccessorTable accessor_table(zone());
1435 int property_index = 0; 1437 int property_index = 0;
1436 for (; property_index < expr->properties()->length(); property_index++) { 1438 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after
4102 reinterpret_cast<uint32_t>( 4104 reinterpret_cast<uint32_t>(
4103 isolate->builtins()->OnStackReplacement()->entry())); 4105 isolate->builtins()->OnStackReplacement()->entry()));
4104 return ON_STACK_REPLACEMENT; 4106 return ON_STACK_REPLACEMENT;
4105 } 4107 }
4106 4108
4107 4109
4108 } // namespace internal 4110 } // namespace internal
4109 } // namespace v8 4111 } // namespace v8
4110 4112
4111 #endif // V8_TARGET_ARCH_MIPS 4113 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698