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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 break; 1510 break;
1511 1511
1512 case ObjectLiteral::Property::SETTER: 1512 case ObjectLiteral::Property::SETTER:
1513 PushOperand(Smi::FromInt(NONE)); 1513 PushOperand(Smi::FromInt(NONE));
1514 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1514 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1515 break; 1515 break;
1516 } 1516 }
1517 } 1517 }
1518 } 1518 }
1519 1519
1520 if (expr->has_function()) {
1521 DCHECK(result_saved);
1522 __ push(Operand(esp, 0));
1523 __ CallRuntime(Runtime::kToFastProperties);
1524 }
1525
1526 if (result_saved) { 1520 if (result_saved) {
1527 context()->PlugTOS(); 1521 context()->PlugTOS();
1528 } else { 1522 } else {
1529 context()->Plug(eax); 1523 context()->Plug(eax);
1530 } 1524 }
1531 } 1525 }
1532 1526
1533 1527
1534 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 1528 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1535 Comment cmnt(masm_, "[ ArrayLiteral"); 1529 Comment cmnt(masm_, "[ ArrayLiteral");
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
4050 isolate->builtins()->OnStackReplacement()->entry(), 4044 isolate->builtins()->OnStackReplacement()->entry(),
4051 Assembler::target_address_at(call_target_address, unoptimized_code)); 4045 Assembler::target_address_at(call_target_address, unoptimized_code));
4052 return ON_STACK_REPLACEMENT; 4046 return ON_STACK_REPLACEMENT;
4053 } 4047 }
4054 4048
4055 4049
4056 } // namespace internal 4050 } // namespace internal
4057 } // namespace v8 4051 } // namespace v8
4058 4052
4059 #endif // V8_TARGET_ARCH_IA32 4053 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698