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

Unified Diff: src/compiler/bytecode-graph-builder.h

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments 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 d2feb93a201defcdfbf7b6c67e15d374ad6f25f4..951f3bbcc3178369f219ec15244dfb161070a797 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"
@@ -20,17 +19,22 @@
namespace v8 {
namespace internal {
+// Forward declarations.
vogelheim 2016/11/07 17:53:26 nitpick: Drop comment. It's indeed a forward decla
class CompilationInfo;
namespace compiler {
+// Forward declarations.
+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);
@@ -317,6 +321,9 @@ class BytecodeGraphBuilder {
// The Turbofan source position table, to be populated.
SourcePositionTable* source_positions_;
+ SourcePosition const start_position_;
+ int const inlining_id_;
alph 2016/11/07 22:38:39 Isn't inlining_id already a part of 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