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

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: port to other architectures 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 c435602c24a15d7c8f053d718f1c4ef163dd04eb..4b62c8b1634e5c6062b60a06828b3eebe8748424 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -2793,10 +2793,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