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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.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_X87 5 #if V8_TARGET_ARCH_X87
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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 break; 1502 break;
1503 1503
1504 case ObjectLiteral::Property::SETTER: 1504 case ObjectLiteral::Property::SETTER:
1505 PushOperand(Smi::FromInt(NONE)); 1505 PushOperand(Smi::FromInt(NONE));
1506 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1506 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1507 break; 1507 break;
1508 } 1508 }
1509 } 1509 }
1510 } 1510 }
1511 1511
1512 if (expr->has_function()) {
1513 DCHECK(result_saved);
1514 __ push(Operand(esp, 0));
1515 __ CallRuntime(Runtime::kToFastProperties);
1516 }
1517
1518 if (result_saved) { 1512 if (result_saved) {
1519 context()->PlugTOS(); 1513 context()->PlugTOS();
1520 } else { 1514 } else {
1521 context()->Plug(eax); 1515 context()->Plug(eax);
1522 } 1516 }
1523 } 1517 }
1524 1518
1525 1519
1526 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 1520 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1527 Comment cmnt(masm_, "[ ArrayLiteral"); 1521 Comment cmnt(masm_, "[ ArrayLiteral");
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
4042 isolate->builtins()->OnStackReplacement()->entry(), 4036 isolate->builtins()->OnStackReplacement()->entry(),
4043 Assembler::target_address_at(call_target_address, unoptimized_code)); 4037 Assembler::target_address_at(call_target_address, unoptimized_code));
4044 return ON_STACK_REPLACEMENT; 4038 return ON_STACK_REPLACEMENT;
4045 } 4039 }
4046 4040
4047 4041
4048 } // namespace internal 4042 } // namespace internal
4049 } // namespace v8 4043 } // namespace v8
4050 4044
4051 #endif // V8_TARGET_ARCH_X87 4045 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698