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

Side by Side Diff: runtime/vm/symbols.h

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, 9 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 unified diff | Download patch
« runtime/vm/debugger.cc ('K') | « runtime/vm/scopes.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_SYMBOLS_H_ 5 #ifndef RUNTIME_VM_SYMBOLS_H_
6 #define RUNTIME_VM_SYMBOLS_H_ 6 #define RUNTIME_VM_SYMBOLS_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/snapshot_ids.h" 10 #include "vm/snapshot_ids.h"
(...skipping 28 matching lines...) Expand all
39 V(MoveNext, "moveNext") \ 39 V(MoveNext, "moveNext") \
40 V(IsYieldEach, "isYieldEach") \ 40 V(IsYieldEach, "isYieldEach") \
41 V(Value, "value") \ 41 V(Value, "value") \
42 V(_EnumHelper, "_EnumHelper") \ 42 V(_EnumHelper, "_EnumHelper") \
43 V(_SyncIterable, "_SyncIterable") \ 43 V(_SyncIterable, "_SyncIterable") \
44 V(_SyncIterableConstructor, "_SyncIterable.") \ 44 V(_SyncIterableConstructor, "_SyncIterable.") \
45 V(_SyncIterator, "_SyncIterator") \ 45 V(_SyncIterator, "_SyncIterator") \
46 V(IteratorParameter, ":iterator") \ 46 V(IteratorParameter, ":iterator") \
47 V(_AsyncStarStreamController, "_AsyncStarStreamController") \ 47 V(_AsyncStarStreamController, "_AsyncStarStreamController") \
48 V(_AsyncStarStreamControllerConstructor, "_AsyncStarStreamController.") \ 48 V(_AsyncStarStreamControllerConstructor, "_AsyncStarStreamController.") \
49 V(Controller, ":controller") \ 49 V(Controller, ":controller") \
hausner 2017/02/28 19:04:51 In other cases, the internal name is called ColonX
Cutch 2017/02/28 21:46:52 Done.
50 V(ControllerStream, ":controller_stream") \
51 V(Controller2, "controller") \
50 V(Stream, "stream") \ 52 V(Stream, "stream") \
53 V(_StreamImpl, "_StreamImpl") \
51 V(isPaused, "isPaused") \ 54 V(isPaused, "isPaused") \
52 V(AddError, "addError") \ 55 V(AddError, "addError") \
53 V(AddStream, "addStream") \ 56 V(AddStream, "addStream") \
54 V(Cancel, "cancel") \ 57 V(Cancel, "cancel") \
55 V(Close, "close") \ 58 V(Close, "close") \
56 V(Values, "values") \ 59 V(Values, "values") \
57 V(_EnumNames, "_enum_names") \ 60 V(_EnumNames, "_enum_names") \
58 V(_DeletedEnumSentinel, "_deleted_enum_sentinel") \ 61 V(_DeletedEnumSentinel, "_deleted_enum_sentinel") \
59 V(_DeletedEnumPrefix, "Deleted enum value from ") \ 62 V(_DeletedEnumPrefix, "Deleted enum value from ") \
60 V(ExprTemp, ":expr_temp") \ 63 V(ExprTemp, ":expr_temp") \
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 V(AsyncSavedTryCtxVarPrefix, ":async_saved_try_ctx_var_") \ 123 V(AsyncSavedTryCtxVarPrefix, ":async_saved_try_ctx_var_") \
121 V(AsyncStackTraceVar, ":async_stack_trace") \ 124 V(AsyncStackTraceVar, ":async_stack_trace") \
122 V(ClearAsyncThreadStackTrace, "_clearAsyncThreadStackTrace") \ 125 V(ClearAsyncThreadStackTrace, "_clearAsyncThreadStackTrace") \
123 V(SetAsyncThreadStackTrace, "_setAsyncThreadStackTrace") \ 126 V(SetAsyncThreadStackTrace, "_setAsyncThreadStackTrace") \
124 V(AsyncCatchHelper, "_asyncCatchHelper") \ 127 V(AsyncCatchHelper, "_asyncCatchHelper") \
125 V(AsyncThenWrapperHelper, "_asyncThenWrapperHelper") \ 128 V(AsyncThenWrapperHelper, "_asyncThenWrapperHelper") \
126 V(AsyncErrorWrapperHelper, "_asyncErrorWrapperHelper") \ 129 V(AsyncErrorWrapperHelper, "_asyncErrorWrapperHelper") \
127 V(AsyncStackTraceHelper, "_asyncStackTraceHelper") \ 130 V(AsyncStackTraceHelper, "_asyncStackTraceHelper") \
128 V(AsyncAwaitHelper, "_awaitHelper") \ 131 V(AsyncAwaitHelper, "_awaitHelper") \
129 V(Await, "await") \ 132 V(Await, "await") \
133 V(_Awaiter, "_awaiter") \
130 V(AwaitTempVarPrefix, ":await_temp_var_") \ 134 V(AwaitTempVarPrefix, ":await_temp_var_") \
131 V(AwaitContextVar, ":await_ctx_var") \ 135 V(AwaitContextVar, ":await_ctx_var") \
132 V(AwaitJumpVar, ":await_jump_var") \ 136 V(AwaitJumpVar, ":await_jump_var") \
133 V(Future, "Future") \ 137 V(Future, "Future") \
134 V(FutureOr, "FutureOr") \ 138 V(FutureOr, "FutureOr") \
135 V(FutureMicrotask, "Future.microtask") \ 139 V(FutureMicrotask, "Future.microtask") \
136 V(FutureValue, "Future.value") \ 140 V(FutureValue, "Future.value") \
137 V(FutureThen, "then") \ 141 V(FutureThen, "then") \
138 V(FutureCatchError, "catchError") \ 142 V(FutureCatchError, "catchError") \
139 V(Completer, "Completer") \ 143 V(Completer, "Completer") \
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 V(TwoByteString, "_TwoByteString") \ 215 V(TwoByteString, "_TwoByteString") \
212 V(ExternalOneByteString, "_ExternalOneByteString") \ 216 V(ExternalOneByteString, "_ExternalOneByteString") \
213 V(ExternalTwoByteString, "_ExternalTwoByteString") \ 217 V(ExternalTwoByteString, "_ExternalTwoByteString") \
214 V(_CapabilityImpl, "_CapabilityImpl") \ 218 V(_CapabilityImpl, "_CapabilityImpl") \
215 V(_RawReceivePortImpl, "_RawReceivePortImpl") \ 219 V(_RawReceivePortImpl, "_RawReceivePortImpl") \
216 V(_SendPortImpl, "_SendPortImpl") \ 220 V(_SendPortImpl, "_SendPortImpl") \
217 V(_StackTrace, "_StackTrace") \ 221 V(_StackTrace, "_StackTrace") \
218 V(_RegExp, "_RegExp") \ 222 V(_RegExp, "_RegExp") \
219 V(RegExp, "RegExp") \ 223 V(RegExp, "RegExp") \
220 V(ColonMatcher, ":matcher") \ 224 V(ColonMatcher, ":matcher") \
225 V(ColonStream, ":stream") \
221 V(Object, "Object") \ 226 V(Object, "Object") \
222 V(Int, "int") \ 227 V(Int, "int") \
223 V(Double, "double") \ 228 V(Double, "double") \
224 V(Float32x4, "Float32x4") \ 229 V(Float32x4, "Float32x4") \
225 V(Float64x2, "Float64x2") \ 230 V(Float64x2, "Float64x2") \
226 V(Int32x4, "Int32x4") \ 231 V(Int32x4, "Int32x4") \
227 V(_Float32x4, "_Float32x4") \ 232 V(_Float32x4, "_Float32x4") \
228 V(_Float64x2, "_Float64x2") \ 233 V(_Float64x2, "_Float64x2") \
229 V(_Int32x4, "_Int32x4") \ 234 V(_Int32x4, "_Int32x4") \
230 V(Int8List, "Int8List") \ 235 V(Int8List, "Int8List") \
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 V(ConstructorClosurePrefix, "new#") \ 427 V(ConstructorClosurePrefix, "new#") \
423 V(_runExtension, "_runExtension") \ 428 V(_runExtension, "_runExtension") \
424 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \ 429 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \
425 V(DartLibrary, "dart.library.") \ 430 V(DartLibrary, "dart.library.") \
426 V(DartLibraryMirrors, "dart.library.mirrors") \ 431 V(DartLibraryMirrors, "dart.library.mirrors") \
427 V(_name, "_name") \ 432 V(_name, "_name") \
428 V(_classRangeCheck, "_classRangeCheck") \ 433 V(_classRangeCheck, "_classRangeCheck") \
429 V(_classRangeCheckNegative, "_classRangeCheckNegative") \ 434 V(_classRangeCheckNegative, "_classRangeCheckNegative") \
430 V(GetRuntimeType, "get:runtimeType") \ 435 V(GetRuntimeType, "get:runtimeType") \
431 V(HaveSameRuntimeType, "_haveSameRuntimeType") \ 436 V(HaveSameRuntimeType, "_haveSameRuntimeType") \
432 V(DartDeveloperCausalAsyncStacks, "dart.developer.causal_async_stacks") 437 V(DartDeveloperCausalAsyncStacks, "dart.developer.causal_async_stacks") \
438 V(_AsyncStarListenHelper, "_asyncStarListenHelper")
433 439
434 440
435 // Contains a list of frequently used strings in a canonicalized form. This 441 // Contains a list of frequently used strings in a canonicalized form. This
436 // list is kept in the vm_isolate in order to share the copy across isolates 442 // list is kept in the vm_isolate in order to share the copy across isolates
437 // without having to maintain copies in each isolate. 443 // without having to maintain copies in each isolate.
438 class Symbols : public AllStatic { 444 class Symbols : public AllStatic {
439 public: 445 public:
440 enum { kMaxOneCharCodeSymbol = 0xFF }; 446 enum { kMaxOneCharCodeSymbol = 0xFF };
441 447
442 // List of strings that are pre created in the vm isolate. 448 // List of strings that are pre created in the vm isolate.
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 friend class Serializer; 694 friend class Serializer;
689 friend class Deserializer; 695 friend class Deserializer;
690 friend class ApiMessageReader; 696 friend class ApiMessageReader;
691 697
692 DISALLOW_COPY_AND_ASSIGN(Symbols); 698 DISALLOW_COPY_AND_ASSIGN(Symbols);
693 }; 699 };
694 700
695 } // namespace dart 701 } // namespace dart
696 702
697 #endif // RUNTIME_VM_SYMBOLS_H_ 703 #endif // RUNTIME_VM_SYMBOLS_H_
OLDNEW
« runtime/vm/debugger.cc ('K') | « runtime/vm/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698