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

Unified Diff: runtime/vm/object_service.cc

Issue 2692803006: Track the 'awaiter return' call stack use it to detect uncaught exceptions in async functions (Closed)
Patch Set: rmacnak review Created 3 years, 10 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
Index: runtime/vm/object_service.cc
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc
index a7c846b7009e04c517f9eea6e05886f02a3db506..f1935152e7a583a33e8c8eaf883508397b2b3c7f 100644
--- a/runtime/vm/object_service.cc
+++ b/runtime/vm/object_service.cc
@@ -869,6 +869,11 @@ void Code::PrintJSONImpl(JSONStream* stream, bool ref) const {
}
+void Code::SetAwaitTokenPositions(const Array& await_token_positions) const {
+ StorePointer(&raw_ptr()->await_token_positions_, await_token_positions.raw());
+}
+
+
void Context::PrintJSONImpl(JSONStream* stream, bool ref) const {
JSONObject jsobj(stream);
// TODO(turnidge): Should the user level type for Context be Context

Powered by Google App Engine
This is Rietveld 408576698