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

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

Issue 1135483004: [turbofan] Add AdvancedReducer::ReplaceWithValue() method and convert JSInlining to an AdvancedRedu… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « src/compiler/graph-reducer.cc ('k') | 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 174b1e9a7abadcb2edd16c5da7a7c80d8dea7096..2f8dfa031e2611015814973cfbec6d4e99fbeef7 100644
--- a/src/compiler/js-inlining.h
+++ b/src/compiler/js-inlining.h
@@ -13,14 +13,19 @@ namespace internal {
namespace compiler {
class JSCallFunctionAccessor;
+struct Inlinee;
-class JSInliner final : public Reducer {
+class JSInliner final : public AdvancedReducer {
public:
enum Mode { kBuiltinsInlining, kGeneralInlining };
- JSInliner(Mode mode, Zone* local_zone, CompilationInfo* info,
+ JSInliner(Editor* editor, Mode mode, Zone* local_zone, CompilationInfo* info,
JSGraph* jsgraph)
- : mode_(mode), local_zone_(local_zone), info_(info), jsgraph_(jsgraph) {}
+ : AdvancedReducer(editor),
+ mode_(mode),
+ local_zone_(local_zone),
+ info_(info),
+ jsgraph_(jsgraph) {}
Reduction Reduce(Node* node) final;
@@ -34,6 +39,8 @@ class JSInliner final : public Reducer {
Handle<JSFunction> jsfunction,
Zone* temp_zone);
void AddClosureToFrameState(Node* frame_state, Handle<JSFunction> jsfunction);
+
+ Reduction InlineCall(Node* call, Inlinee& inlinee);
};
} // namespace compiler
« no previous file with comments | « src/compiler/graph-reducer.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698