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

Side by Side Diff: src/compiler/js-type-feedback.h

Issue 1410003002: [turbofan] Remove locally constructed simplified builders. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js-intrinsic-lowering.cc ('k') | src/compiler/js-type-feedback-lowering.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_JS_TYPE_FEEDBACK_H_ 5 #ifndef V8_COMPILER_JS_TYPE_FEEDBACK_H_
6 #define V8_COMPILER_JS_TYPE_FEEDBACK_H_ 6 #define V8_COMPILER_JS_TYPE_FEEDBACK_H_
7 7
8 #include "src/utils.h" 8 #include "src/utils.h"
9 9
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
11 #include "src/compiler/js-graph.h" 11 #include "src/compiler/js-graph.h"
12 #include "src/compiler/node-aux-data.h" 12 #include "src/compiler/node-aux-data.h"
13 #include "src/compiler/simplified-operator.h"
14 13
15 namespace v8 { 14 namespace v8 {
16 namespace internal { 15 namespace internal {
17 16
18 class TypeFeedbackOracle; 17 class TypeFeedbackOracle;
19 class SmallMapList; 18 class SmallMapList;
20 class CompilationDependencies; 19 class CompilationDependencies;
21 20
22 namespace compiler { 21 namespace compiler {
23 22
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 enum DeoptimizationMode { kDeoptimizationEnabled, kDeoptimizationDisabled }; 62 enum DeoptimizationMode { kDeoptimizationEnabled, kDeoptimizationDisabled };
64 63
65 JSTypeFeedbackSpecializer(Editor* editor, JSGraph* jsgraph, 64 JSTypeFeedbackSpecializer(Editor* editor, JSGraph* jsgraph,
66 JSTypeFeedbackTable* js_type_feedback, 65 JSTypeFeedbackTable* js_type_feedback,
67 TypeFeedbackOracle* oracle, 66 TypeFeedbackOracle* oracle,
68 Handle<GlobalObject> global_object, 67 Handle<GlobalObject> global_object,
69 DeoptimizationMode mode, 68 DeoptimizationMode mode,
70 CompilationDependencies* dependencies) 69 CompilationDependencies* dependencies)
71 : AdvancedReducer(editor), 70 : AdvancedReducer(editor),
72 jsgraph_(jsgraph), 71 jsgraph_(jsgraph),
73 simplified_(jsgraph->graph()->zone()),
74 js_type_feedback_(js_type_feedback), 72 js_type_feedback_(js_type_feedback),
75 oracle_(oracle), 73 oracle_(oracle),
76 global_object_(global_object), 74 global_object_(global_object),
77 mode_(mode), 75 mode_(mode),
78 dependencies_(dependencies) { 76 dependencies_(dependencies) {
79 CHECK_NOT_NULL(js_type_feedback); 77 CHECK_NOT_NULL(js_type_feedback);
80 } 78 }
81 79
82 Reduction Reduce(Node* node) override; 80 Reduction Reduce(Node* node) override;
83 81
84 // Visible for unit testing. 82 // Visible for unit testing.
85 Reduction ReduceJSLoadGlobal(Node* node); 83 Reduction ReduceJSLoadGlobal(Node* node);
86 Reduction ReduceJSLoadNamed(Node* node); 84 Reduction ReduceJSLoadNamed(Node* node);
87 Reduction ReduceJSLoadProperty(Node* node); 85 Reduction ReduceJSLoadProperty(Node* node);
88 Reduction ReduceJSStoreNamed(Node* node); 86 Reduction ReduceJSStoreNamed(Node* node);
89 Reduction ReduceJSStoreProperty(Node* node); 87 Reduction ReduceJSStoreProperty(Node* node);
90 88
91 private: 89 private:
92 JSGraph* jsgraph_; 90 JSGraph* jsgraph_;
93 SimplifiedOperatorBuilder simplified_;
94 JSTypeFeedbackTable* js_type_feedback_; 91 JSTypeFeedbackTable* js_type_feedback_;
95 TypeFeedbackOracle* oracle_; 92 TypeFeedbackOracle* oracle_;
96 Handle<GlobalObject> global_object_; 93 Handle<GlobalObject> global_object_;
97 DeoptimizationMode const mode_; 94 DeoptimizationMode const mode_;
98 CompilationDependencies* dependencies_; 95 CompilationDependencies* dependencies_;
99 96
100 TypeFeedbackOracle* oracle() { return oracle_; } 97 TypeFeedbackOracle* oracle() { return oracle_; }
101 Graph* graph() { return jsgraph_->graph(); } 98 Graph* graph() { return jsgraph_->graph(); }
102 JSGraph* jsgraph() { return jsgraph_; } 99 JSGraph* jsgraph() { return jsgraph_; }
103 CommonOperatorBuilder* common() { return jsgraph_->common(); } 100 CommonOperatorBuilder* common() { return jsgraph_->common(); }
101 SimplifiedOperatorBuilder* simplified() { return jsgraph_->simplified(); }
104 DeoptimizationMode mode() const { return mode_; } 102 DeoptimizationMode mode() const { return mode_; }
105 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
106 103
107 void BuildMapCheck(Node* receiver, Handle<Map> map, bool smi_check, 104 void BuildMapCheck(Node* receiver, Handle<Map> map, bool smi_check,
108 Node* effect, Node* control, Node** success, Node** fail); 105 Node* effect, Node* control, Node** success, Node** fail);
109 106
110 Node* GetFrameStateBefore(Node* node); 107 Node* GetFrameStateBefore(Node* node);
111 }; 108 };
112 109
113 } // namespace compiler 110 } // namespace compiler
114 } // namespace internal 111 } // namespace internal
115 } // namespace v8 112 } // namespace v8
116 113
117 #endif 114 #endif
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/js-type-feedback-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698