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

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

Issue 1772423002: Don't do any special normalization if a boilerplate contains function literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mark osr-one/osr-two as skip on ignition/arm Created 4 years, 9 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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 break; 1587 break;
1588 1588
1589 case ObjectLiteral::Property::SETTER: 1589 case ObjectLiteral::Property::SETTER:
1590 PushOperand(Smi::FromInt(NONE)); 1590 PushOperand(Smi::FromInt(NONE));
1591 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1591 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1592 break; 1592 break;
1593 } 1593 }
1594 } 1594 }
1595 } 1595 }
1596 1596
1597 if (expr->has_function()) {
1598 DCHECK(result_saved);
1599 __ ld(a0, MemOperand(sp));
1600 __ push(a0);
1601 __ CallRuntime(Runtime::kToFastProperties);
1602 }
1603
1604 if (result_saved) { 1597 if (result_saved) {
1605 context()->PlugTOS(); 1598 context()->PlugTOS();
1606 } else { 1599 } else {
1607 context()->Plug(v0); 1600 context()->Plug(v0);
1608 } 1601 }
1609 } 1602 }
1610 1603
1611 1604
1612 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 1605 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1613 Comment cmnt(masm_, "[ ArrayLiteral"); 1606 Comment cmnt(masm_, "[ ArrayLiteral");
(...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after
4182 reinterpret_cast<uint64_t>( 4175 reinterpret_cast<uint64_t>(
4183 isolate->builtins()->OnStackReplacement()->entry())); 4176 isolate->builtins()->OnStackReplacement()->entry()));
4184 return ON_STACK_REPLACEMENT; 4177 return ON_STACK_REPLACEMENT;
4185 } 4178 }
4186 4179
4187 4180
4188 } // namespace internal 4181 } // namespace internal
4189 } // namespace v8 4182 } // namespace v8
4190 4183
4191 #endif // V8_TARGET_ARCH_MIPS64 4184 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698