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

Unified Diff: runtime/vm/kernel_binary_flowgraph.cc

Issue 2987143002: Fix parsing of ClosureCreation kernel nodes in VM. (Closed)
Patch Set: Created 3 years, 5 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 | « pkg/kernel/test/closures/closures.status ('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 34a20248b9bb9d8047dbf2d32c18c374395226b6..2ce609a343f08ef5574016dfe0b00dcb295330cb 100644
--- a/runtime/vm/kernel_binary_flowgraph.cc
+++ b/runtime/vm/kernel_binary_flowgraph.cc
@@ -696,7 +696,8 @@ void StreamingScopeBuilder::VisitExpression() {
case kClosureCreation:
builder_->SkipCanonicalNameReference(); // read function reference.
VisitExpression(); // read context vector.
- VisitDartType(); // read function type of the closure.
+ VisitDartType(); // read function type of the closure.
+ builder_->SkipListOfDartTypes(); // read type arguments
Dmitry Stefantsov 2017/07/31 15:15:06 As I mentioned, we maintain these comments related
sjindel 2017/07/31 15:44:30 Done.
return;
default:
UNREACHABLE();
@@ -4009,6 +4010,7 @@ void StreamingFlowGraphBuilder::SkipExpression() {
SkipCanonicalNameReference(); // read top-level function reference.
SkipExpression(); // read context vector.
SkipDartType(); // read function type.
+ SkipListOfDartTypes(); // read type arguments
Dmitry Stefantsov 2017/07/31 15:15:06 Please, add a full-stop at the end.
sjindel 2017/07/31 15:44:30 Done.
return;
case kBigIntLiteral:
SkipStringReference(); // read string reference.
@@ -5904,6 +5906,7 @@ Fragment StreamingFlowGraphBuilder::BuildClosureCreation(
instructions += Drop();
SkipDartType(); // skip function type of the closure.
+ SkipListOfDartTypes(); // skip list of type arguments (for now)
Dmitry Stefantsov 2017/07/31 15:15:06 Please, remove "(for now)" and add a full-stop.
sjindel 2017/07/31 15:44:30 Done.
return instructions;
}
« no previous file with comments | « pkg/kernel/test/closures/closures.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698