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

Unified Diff: src/compiler/js-inlining.h

Issue 934723002: [turbofan] Refactor JSInliner to be a Reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-inlining.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-inlining.h
diff --git a/src/compiler/js-inlining.h b/src/compiler/js-inlining.h
index 5e6b39a0273c2d99b3cbf093134350a46f6b268d..8a4e0c178084a1a0ed4fc6689ce5216aa4c74b8c 100644
--- a/src/compiler/js-inlining.h
+++ b/src/compiler/js-inlining.h
@@ -6,6 +6,7 @@
#define V8_COMPILER_JS_INLINING_H_
#include "src/compiler/js-graph.h"
+#include "src/compiler/graph-reducer.h"
namespace v8 {
namespace internal {
@@ -13,13 +14,12 @@ namespace compiler {
class JSCallFunctionAccessor;
-class JSInliner {
+class JSInliner FINAL : public Reducer {
public:
JSInliner(Zone* local_zone, CompilationInfo* info, JSGraph* jsgraph)
: local_zone_(local_zone), info_(info), jsgraph_(jsgraph) {}
- void Inline();
- void TryInlineJSCall(Node* node);
+ Reduction Reduce(Node* node) OVERRIDE;
private:
friend class InlinerVisitor;
@@ -31,6 +31,7 @@ class JSInliner {
Handle<JSFunction> jsfunction,
Zone* temp_zone);
void AddClosureToFrameState(Node* frame_state, Handle<JSFunction> jsfunction);
+ Reduction TryInlineJSCall(Node* node, Handle<JSFunction> jsfunction);
static void UnifyReturn(Graph* graph);
};
}
« no previous file with comments | « no previous file | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698