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

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 1213043005: [turbofan] Use OSR value for innermost context value. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/compiler/ast-graph-builder.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 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/liveness-analyzer.h" 10 #include "src/compiler/liveness-analyzer.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 Node* NewNode(const Operator* op, int value_input_count, Node** value_inputs, 196 Node* NewNode(const Operator* op, int value_input_count, Node** value_inputs,
197 bool incomplete = false) { 197 bool incomplete = false) {
198 return MakeNode(op, value_input_count, value_inputs, incomplete); 198 return MakeNode(op, value_input_count, value_inputs, incomplete);
199 } 199 }
200 200
201 // Creates a new Phi node having {count} input values. 201 // Creates a new Phi node having {count} input values.
202 Node* NewPhi(int count, Node* input, Node* control); 202 Node* NewPhi(int count, Node* input, Node* control);
203 Node* NewEffectPhi(int count, Node* input, Node* control); 203 Node* NewEffectPhi(int count, Node* input, Node* control);
204 204
205 Node* NewOuterContextParam(); 205 Node* NewOuterContextParam();
206 Node* NewCurrentContextOsrValue();
207 206
208 // Helpers for merging control, effect or value dependencies. 207 // Helpers for merging control, effect or value dependencies.
209 Node* MergeControl(Node* control, Node* other); 208 Node* MergeControl(Node* control, Node* other);
210 Node* MergeEffect(Node* value, Node* other, Node* control); 209 Node* MergeEffect(Node* value, Node* other, Node* control);
211 Node* MergeValue(Node* value, Node* other, Node* control); 210 Node* MergeValue(Node* value, Node* other, Node* control);
212 211
213 // The main node creation chokepoint. Adds context, frame state, effect, 212 // The main node creation chokepoint. Adds context, frame state, effect,
214 // and control dependencies depending on the operator. 213 // and control dependencies depending on the operator.
215 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, 214 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs,
216 bool incomplete); 215 bool incomplete);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 547
549 // Prepare environment to be used as loop header. 548 // Prepare environment to be used as loop header.
550 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 549 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
551 }; 550 };
552 551
553 } // namespace compiler 552 } // namespace compiler
554 } // namespace internal 553 } // namespace internal
555 } // namespace v8 554 } // namespace v8
556 555
557 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 556 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698