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

Side by Side Diff: src/compiler/ast-graph-builder.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 | « no previous file | src/full-codegen/full-codegen.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after
3727 !type_hint_analysis_->GetToBooleanHints(feedback_id, &hints)) { 3727 !type_hint_analysis_->GetToBooleanHints(feedback_id, &hints)) {
3728 hints = ToBooleanHint::kAny; 3728 hints = ToBooleanHint::kAny;
3729 } 3729 }
3730 return NewNode(javascript()->ToBoolean(hints), input); 3730 return NewNode(javascript()->ToBoolean(hints), input);
3731 } 3731 }
3732 3732
3733 3733
3734 Node* AstGraphBuilder::BuildToName(Node* input, BailoutId bailout_id) { 3734 Node* AstGraphBuilder::BuildToName(Node* input, BailoutId bailout_id) {
3735 if (Node* node = TryFastToName(input)) return node; 3735 if (Node* node = TryFastToName(input)) return node;
3736 Node* name = NewNode(javascript()->ToName(), input); 3736 Node* name = NewNode(javascript()->ToName(), input);
3737 PrepareFrameState(name, bailout_id); 3737 PrepareFrameState(name, bailout_id, OutputFrameStateCombine::Push());
3738 return name; 3738 return name;
3739 } 3739 }
3740 3740
3741 3741
3742 Node* AstGraphBuilder::BuildToObject(Node* input, BailoutId bailout_id) { 3742 Node* AstGraphBuilder::BuildToObject(Node* input, BailoutId bailout_id) {
3743 Node* object = NewNode(javascript()->ToObject(), input); 3743 Node* object = NewNode(javascript()->ToObject(), input);
3744 PrepareFrameState(object, bailout_id, OutputFrameStateCombine::Push()); 3744 PrepareFrameState(object, bailout_id, OutputFrameStateCombine::Push());
3745 return object; 3745 return object;
3746 } 3746 }
3747 3747
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
4386 // Phi does not exist yet, introduce one. 4386 // Phi does not exist yet, introduce one.
4387 value = NewPhi(inputs, value, control); 4387 value = NewPhi(inputs, value, control);
4388 value->ReplaceInput(inputs - 1, other); 4388 value->ReplaceInput(inputs - 1, other);
4389 } 4389 }
4390 return value; 4390 return value;
4391 } 4391 }
4392 4392
4393 } // namespace compiler 4393 } // namespace compiler
4394 } // namespace internal 4394 } // namespace internal
4395 } // namespace v8 4395 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698