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

Unified Diff: runtime/vm/source_report.cc

Issue 1562993003: Add the forceCompile param to _getSourceReport. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« runtime/vm/service.cc ('K') | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/source_report.cc
diff --git a/runtime/vm/source_report.cc b/runtime/vm/source_report.cc
index 4da21b6e8a350f7cbe4fc5e918b271d8af71d95c..847ead7bbeb1a521b08486c10910d4cf78bedfd7 100644
--- a/runtime/vm/source_report.cc
+++ b/runtime/vm/source_report.cc
@@ -244,6 +244,13 @@ void SourceReport::VisitFunction(JSONArray* jsarr, const Function& func) {
}
ASSERT(!code.IsNull());
+ // We skip compiled async functions. Once an async function has
+ // been compiled, there is another function with the same range which
+ // actually contains the user code.
+ if (func.IsAsyncFunction()) {
rmacnak 2016/01/07 18:08:43 Similar story with sync* and async* functions. Is
turnidge 2016/01/07 19:25:17 Done.
+ return;
+ }
+
JSONObject range(jsarr);
range.AddProperty("scriptIndex", GetScriptIndex(script));
range.AddProperty("startPos", begin_pos);
« runtime/vm/service.cc ('K') | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698