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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 break; 1534 break;
1535 1535
1536 case ObjectLiteral::Property::SETTER: 1536 case ObjectLiteral::Property::SETTER:
1537 PushOperand(Smi::FromInt(NONE)); 1537 PushOperand(Smi::FromInt(NONE));
1538 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1538 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1539 break; 1539 break;
1540 } 1540 }
1541 } 1541 }
1542 } 1542 }
1543 1543
1544 if (expr->has_function()) {
1545 DCHECK(result_saved);
1546 __ Push(Operand(rsp, 0));
1547 __ CallRuntime(Runtime::kToFastProperties);
1548 }
1549
1550 if (result_saved) { 1544 if (result_saved) {
1551 context()->PlugTOS(); 1545 context()->PlugTOS();
1552 } else { 1546 } else {
1553 context()->Plug(rax); 1547 context()->Plug(rax);
1554 } 1548 }
1555 } 1549 }
1556 1550
1557 1551
1558 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 1552 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1559 Comment cmnt(masm_, "[ ArrayLiteral"); 1553 Comment cmnt(masm_, "[ ArrayLiteral");
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
4036 DCHECK_EQ( 4030 DCHECK_EQ(
4037 isolate->builtins()->OnStackReplacement()->entry(), 4031 isolate->builtins()->OnStackReplacement()->entry(),
4038 Assembler::target_address_at(call_target_address, unoptimized_code)); 4032 Assembler::target_address_at(call_target_address, unoptimized_code));
4039 return ON_STACK_REPLACEMENT; 4033 return ON_STACK_REPLACEMENT;
4040 } 4034 }
4041 4035
4042 } // namespace internal 4036 } // namespace internal
4043 } // namespace v8 4037 } // namespace v8
4044 4038
4045 #endif // V8_TARGET_ARCH_X64 4039 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698