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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed obsolete identifiers Created 4 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 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..32af5e662dd7c2efc33c04fe42eefdf97fe4eab9 100644
--- a/src/compiler/js-inlining.h
+++ b/src/compiler/js-inlining.h
@@ -5,8 +5,9 @@
#ifndef V8_COMPILER_JS_INLINING_H_
#define V8_COMPILER_JS_INLINING_H_
-#include "src/compiler/js-graph.h"
+#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/graph-reducer.h"
+#include "src/compiler/js-graph.h"
namespace v8 {
namespace internal {
@@ -22,11 +23,12 @@ namespace compiler {
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 +47,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