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

Unified Diff: runtime/vm/object_test.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_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index fb4b621d61096674bfa36cd4d717a7a71813f2a5..0e7ba6c14611c07573440007dd79921b541161ab 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -2799,10 +2799,14 @@ ISOLATE_UNIT_TEST_CASE(ExceptionHandlers) {
exception_handlers ^= ExceptionHandlers::New(kNumEntries);
const bool kNeedsStackTrace = true;
const bool kNoStackTrace = false;
- exception_handlers.SetHandlerInfo(0, -1, 20u, kNeedsStackTrace, false);
- exception_handlers.SetHandlerInfo(1, 0, 30u, kNeedsStackTrace, false);
- exception_handlers.SetHandlerInfo(2, -1, 40u, kNoStackTrace, true);
- exception_handlers.SetHandlerInfo(3, 1, 150u, kNoStackTrace, true);
+ exception_handlers.SetHandlerInfo(0, -1, 20u, kNeedsStackTrace, false,
+ TokenPosition::kNoSource, true);
+ exception_handlers.SetHandlerInfo(1, 0, 30u, kNeedsStackTrace, false,
+ TokenPosition::kNoSource, true);
+ exception_handlers.SetHandlerInfo(2, -1, 40u, kNoStackTrace, true,
+ TokenPosition::kNoSource, true);
+ exception_handlers.SetHandlerInfo(3, 1, 150u, kNoStackTrace, true,
+ TokenPosition::kNoSource, true);
extern void GenerateIncrement(Assembler * assembler);
Assembler _assembler_;

Powered by Google App Engine
This is Rietveld 408576698