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

Unified Diff: src/compiler/bytecode-graph-builder.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/bytecode-graph-builder.h
diff --git a/src/compiler/bytecode-graph-builder.h b/src/compiler/bytecode-graph-builder.h
index 7ac2d06c70f0904f810d03d3e8f3319cc48b6f90..6994226dc3716bb29d058dad9454cb8128c02d72 100644
--- a/src/compiler/bytecode-graph-builder.h
+++ b/src/compiler/bytecode-graph-builder.h
@@ -9,7 +9,6 @@
#include "src/compiler/bytecode-loop-analysis.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/liveness-analyzer.h"
-#include "src/compiler/source-position.h"
#include "src/compiler/state-values-utils.h"
#include "src/compiler/type-hint-analyzer.h"
#include "src/interpreter/bytecode-array-iterator.h"
@@ -24,13 +23,16 @@ class CompilationInfo;
namespace compiler {
+class SourcePositionTable;
+
// The BytecodeGraphBuilder produces a high-level IR graph based on
// interpreter bytecodes.
class BytecodeGraphBuilder {
public:
BytecodeGraphBuilder(Zone* local_zone, CompilationInfo* info,
JSGraph* jsgraph, float invocation_frequency,
- SourcePositionTable* source_positions);
+ SourcePositionTable* source_positions,
+ int inlining_id = SourcePosition::kNotInlined);
// Creates a graph by visiting bytecodes.
bool CreateGraph(bool stack_check = true);
@@ -313,6 +315,8 @@ class BytecodeGraphBuilder {
// The Turbofan source position table, to be populated.
SourcePositionTable* source_positions_;
+ SourcePosition const start_position_;
+
// Update [source_positions_]'s current position to that of the bytecode at
// [offset], if any.
void UpdateCurrentSourcePosition(SourcePositionTableIterator* it, int offset);

Powered by Google App Engine
This is Rietveld 408576698