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

Side by Side Diff: src/compiler/effect-control-linearizer.h

Issue 2504913003: [turbofan] track source positions in EffectControlLinearizer (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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/effect-control-linearizer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_EFFECT_CONTROL_LINEARIZER_H_ 5 #ifndef V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
6 #define V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_ 6 #define V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
11 #include "src/globals.h" 11 #include "src/globals.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 // Forward declarations. 16 // Forward declarations.
17 class Callable; 17 class Callable;
18 class Zone; 18 class Zone;
19 19
20 namespace compiler { 20 namespace compiler {
21 21
22 class CommonOperatorBuilder; 22 class CommonOperatorBuilder;
23 class SimplifiedOperatorBuilder; 23 class SimplifiedOperatorBuilder;
24 class MachineOperatorBuilder; 24 class MachineOperatorBuilder;
25 class JSGraph; 25 class JSGraph;
26 class Graph; 26 class Graph;
27 class Schedule; 27 class Schedule;
28 class SourcePositionTable;
28 29
29 class V8_EXPORT_PRIVATE EffectControlLinearizer { 30 class V8_EXPORT_PRIVATE EffectControlLinearizer {
30 public: 31 public:
31 EffectControlLinearizer(JSGraph* graph, Schedule* schedule, Zone* temp_zone); 32 EffectControlLinearizer(JSGraph* graph, Schedule* schedule, Zone* temp_zone,
33 SourcePositionTable* source_positions);
32 34
33 void Run(); 35 void Run();
34 36
35 private: 37 private:
36 void ProcessNode(Node* node, Node** frame_state, Node** effect, 38 void ProcessNode(Node* node, Node** frame_state, Node** effect,
37 Node** control); 39 Node** control);
38 40
39 struct ValueEffectControl { 41 struct ValueEffectControl {
40 Node* value; 42 Node* value;
41 Node* effect; 43 Node* effect;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 CommonOperatorBuilder* common() const; 221 CommonOperatorBuilder* common() const;
220 SimplifiedOperatorBuilder* simplified() const; 222 SimplifiedOperatorBuilder* simplified() const;
221 MachineOperatorBuilder* machine() const; 223 MachineOperatorBuilder* machine() const;
222 224
223 Operator const* ToNumberOperator(); 225 Operator const* ToNumberOperator();
224 226
225 JSGraph* js_graph_; 227 JSGraph* js_graph_;
226 Schedule* schedule_; 228 Schedule* schedule_;
227 Zone* temp_zone_; 229 Zone* temp_zone_;
228 RegionObservability region_observability_ = RegionObservability::kObservable; 230 RegionObservability region_observability_ = RegionObservability::kObservable;
231 SourcePositionTable* source_positions_;
229 232
230 SetOncePointer<Operator const> to_number_operator_; 233 SetOncePointer<Operator const> to_number_operator_;
231 }; 234 };
232 235
233 } // namespace compiler 236 } // namespace compiler
234 } // namespace internal 237 } // namespace internal
235 } // namespace v8 238 } // namespace v8
236 239
237 #endif // V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_ 240 #endif // V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/effect-control-linearizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698