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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 2099133003: [turbofan] Fix missing lazy deopt in object literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 } 1535 }
1536 1536
1537 switch (property->kind()) { 1537 switch (property->kind()) {
1538 case ObjectLiteral::Property::CONSTANT: 1538 case ObjectLiteral::Property::CONSTANT:
1539 case ObjectLiteral::Property::MATERIALIZED_LITERAL: 1539 case ObjectLiteral::Property::MATERIALIZED_LITERAL:
1540 case ObjectLiteral::Property::COMPUTED: 1540 case ObjectLiteral::Property::COMPUTED:
1541 if (property->emit_store()) { 1541 if (property->emit_store()) {
1542 PushOperand(Smi::FromInt(NONE)); 1542 PushOperand(Smi::FromInt(NONE));
1543 PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); 1543 PushOperand(Smi::FromInt(property->NeedsSetFunctionName()));
1544 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); 1544 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral);
1545 PrepareForBailoutForId(expr->GetIdForPropertySet(property_index),
1546 BailoutState::NO_REGISTERS);
1545 } else { 1547 } else {
1546 DropOperands(3); 1548 DropOperands(3);
1547 } 1549 }
1548 break; 1550 break;
1549 1551
1550 case ObjectLiteral::Property::PROTOTYPE: 1552 case ObjectLiteral::Property::PROTOTYPE:
1551 UNREACHABLE(); 1553 UNREACHABLE();
1552 break; 1554 break;
1553 1555
1554 case ObjectLiteral::Property::GETTER: 1556 case ObjectLiteral::Property::GETTER:
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3804 reinterpret_cast<uint32_t>( 3806 reinterpret_cast<uint32_t>(
3805 isolate->builtins()->OnStackReplacement()->entry())); 3807 isolate->builtins()->OnStackReplacement()->entry()));
3806 return ON_STACK_REPLACEMENT; 3808 return ON_STACK_REPLACEMENT;
3807 } 3809 }
3808 3810
3809 3811
3810 } // namespace internal 3812 } // namespace internal
3811 } // namespace v8 3813 } // namespace v8
3812 3814
3813 #endif // V8_TARGET_ARCH_MIPS 3815 #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