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

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

Issue 2149493003: [turbofan] Fix deopt point for [[ToName]] lazy bailout. (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
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-627828.js » ('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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { 1059 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) {
1060 // Stack: receiver, home_object, key. 1060 // Stack: receiver, home_object, key.
1061 SetExpressionPosition(prop); 1061 SetExpressionPosition(prop);
1062 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper); 1062 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper);
1063 } 1063 }
1064 1064
1065 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, 1065 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property,
1066 BailoutId bailout_id) { 1066 BailoutId bailout_id) {
1067 VisitForStackValue(property->key()); 1067 VisitForStackValue(property->key());
1068 CallRuntimeWithOperands(Runtime::kToName); 1068 CallRuntimeWithOperands(Runtime::kToName);
1069 PrepareForBailoutForId(bailout_id, BailoutState::NO_REGISTERS); 1069 PrepareForBailoutForId(bailout_id, BailoutState::TOS_REGISTER);
1070 PushOperand(result_register()); 1070 PushOperand(result_register());
1071 } 1071 }
1072 1072
1073 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { 1073 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
1074 DCHECK(!slot.IsInvalid()); 1074 DCHECK(!slot.IsInvalid());
1075 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot)); 1075 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot));
1076 } 1076 }
1077 1077
1078 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { 1078 void FullCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) {
1079 Comment cmnt(masm_, "[ ReturnStatement"); 1079 Comment cmnt(masm_, "[ ReturnStatement");
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 return var->scope()->is_nonlinear() || 1960 return var->scope()->is_nonlinear() ||
1961 var->initializer_position() >= proxy->position(); 1961 var->initializer_position() >= proxy->position();
1962 } 1962 }
1963 1963
1964 1964
1965 #undef __ 1965 #undef __
1966 1966
1967 1967
1968 } // namespace internal 1968 } // namespace internal
1969 } // namespace v8 1969 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-627828.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698