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

Unified Diff: runtime/vm/kernel_binary_flowgraph.cc

Issue 3000023002: [kernel] Add fileOffset on FunctionExpression (Closed)
Patch Set: Almost forgot the C++ side of things Created 3 years, 4 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 | « runtime/vm/kernel_binary_flowgraph.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary_flowgraph.cc
diff --git a/runtime/vm/kernel_binary_flowgraph.cc b/runtime/vm/kernel_binary_flowgraph.cc
index 0ac620dbefe7e43a9048f9d3b935187d41a2725e..d260874d4aa122b02bb9da79705624d29825fa92 100644
--- a/runtime/vm/kernel_binary_flowgraph.cc
+++ b/runtime/vm/kernel_binary_flowgraph.cc
@@ -618,6 +618,7 @@ void StreamingScopeBuilder::VisitExpression() {
case kFunctionExpression: {
intptr_t offset =
builder_->ReaderOffset() - 1; // -1 to include tag byte.
+ builder_->ReadPosition(); // read position.
HandleLocalFunction(offset); // read function node.
return;
}
@@ -3956,6 +3957,7 @@ void StreamingFlowGraphBuilder::SkipExpression() {
return;
}
case kFunctionExpression:
+ ReadPosition(); // read position.
SkipFunctionNode(); // read function node.
return;
case kLet:
@@ -5738,6 +5740,7 @@ Fragment StreamingFlowGraphBuilder::BuildMapLiteral(bool is_const,
}
Fragment StreamingFlowGraphBuilder::BuildFunctionExpression() {
+ ReadPosition(); // read position.
return BuildFunctionNode(TokenPosition::kNoSource, StringIndex());
}
« no previous file with comments | « runtime/vm/kernel_binary_flowgraph.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698