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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/js-inlining.h
diff --git a/src/compiler/js-inlining.h b/src/compiler/js-inlining.h
index 323c3ae0bf1e183b6fc69ca8f90097ceb28553f4..9bb8ec46436d84477ee6695981604474ce8a240d 100644
--- a/src/compiler/js-inlining.h
+++ b/src/compiler/js-inlining.h
@@ -5,8 +5,8 @@
#ifndef V8_COMPILER_JS_INLINING_H_
#define V8_COMPILER_JS_INLINING_H_
-#include "src/compiler/js-graph.h"
#include "src/compiler/graph-reducer.h"
+#include "src/compiler/js-graph.h"
namespace v8 {
namespace internal {
@@ -16,17 +16,20 @@ class CompilationInfo;
namespace compiler {
+class SourcePositionTable;
+
// The JSInliner provides the core graph inlining machinery. Note that this
// class only deals with the mechanics of how to inline one graph into another,
// heuristics that decide what and how much to inline are beyond its scope.
class JSInliner final : public AdvancedReducer {
public:
JSInliner(Editor* editor, Zone* local_zone, CompilationInfo* info,
- JSGraph* jsgraph)
+ JSGraph* jsgraph, SourcePositionTable* source_positions)
: AdvancedReducer(editor),
local_zone_(local_zone),
info_(info),
- jsgraph_(jsgraph) {}
+ jsgraph_(jsgraph),
+ source_positions_(source_positions) {}
// Reducer interface, eagerly inlines everything.
Reduction Reduce(Node* node) final;
@@ -45,6 +48,7 @@ class JSInliner final : public AdvancedReducer {
Zone* const local_zone_;
CompilationInfo* info_;
JSGraph* const jsgraph_;
+ SourcePositionTable* const source_positions_;
Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state,
int parameter_count,

Powered by Google App Engine
This is Rietveld 408576698