OLD | NEW |
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 V(Sync, "sync") \ | 111 V(Sync, "sync") \ |
112 V(YieldKw, "yield") \ | 112 V(YieldKw, "yield") \ |
113 V(AsyncCompleter, ":async_completer") \ | 113 V(AsyncCompleter, ":async_completer") \ |
114 V(AsyncOperation, ":async_op") \ | 114 V(AsyncOperation, ":async_op") \ |
115 V(AsyncThenCallback, ":async_op_then") \ | 115 V(AsyncThenCallback, ":async_op_then") \ |
116 V(AsyncCatchErrorCallback, ":async_op_catch_error") \ | 116 V(AsyncCatchErrorCallback, ":async_op_catch_error") \ |
117 V(AsyncOperationParam, ":async_result") \ | 117 V(AsyncOperationParam, ":async_result") \ |
118 V(AsyncOperationErrorParam, ":async_error_param") \ | 118 V(AsyncOperationErrorParam, ":async_error_param") \ |
119 V(AsyncOperationStackTraceParam, ":async_stack_trace_param") \ | 119 V(AsyncOperationStackTraceParam, ":async_stack_trace_param") \ |
120 V(AsyncSavedTryCtxVarPrefix, ":async_saved_try_ctx_var_") \ | 120 V(AsyncSavedTryCtxVarPrefix, ":async_saved_try_ctx_var_") \ |
| 121 V(AsyncStackTraceVar, ":async_stack_trace") \ |
| 122 V(ClearAsyncThreadStackTrace, "_clearAsyncThreadStackTrace") \ |
| 123 V(SetAsyncThreadStackTrace, "_setAsyncThreadStackTrace") \ |
121 V(AsyncCatchHelper, "_asyncCatchHelper") \ | 124 V(AsyncCatchHelper, "_asyncCatchHelper") \ |
122 V(AsyncThenWrapperHelper, "_asyncThenWrapperHelper") \ | 125 V(AsyncThenWrapperHelper, "_asyncThenWrapperHelper") \ |
123 V(AsyncErrorWrapperHelper, "_asyncErrorWrapperHelper") \ | 126 V(AsyncErrorWrapperHelper, "_asyncErrorWrapperHelper") \ |
| 127 V(AsyncStackTraceHelper, "_asyncStackTraceHelper") \ |
124 V(AsyncAwaitHelper, "_awaitHelper") \ | 128 V(AsyncAwaitHelper, "_awaitHelper") \ |
125 V(Await, "await") \ | 129 V(Await, "await") \ |
126 V(AwaitTempVarPrefix, ":await_temp_var_") \ | 130 V(AwaitTempVarPrefix, ":await_temp_var_") \ |
127 V(AwaitContextVar, ":await_ctx_var") \ | 131 V(AwaitContextVar, ":await_ctx_var") \ |
128 V(AwaitJumpVar, ":await_jump_var") \ | 132 V(AwaitJumpVar, ":await_jump_var") \ |
129 V(Future, "Future") \ | 133 V(Future, "Future") \ |
130 V(FutureOr, "FutureOr") \ | 134 V(FutureOr, "FutureOr") \ |
131 V(FutureMicrotask, "Future.microtask") \ | 135 V(FutureMicrotask, "Future.microtask") \ |
132 V(FutureValue, "Future.value") \ | 136 V(FutureValue, "Future.value") \ |
133 V(FutureThen, "then") \ | 137 V(FutureThen, "then") \ |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 V(add, "add") \ | 421 V(add, "add") \ |
418 V(ConstructorClosurePrefix, "new#") \ | 422 V(ConstructorClosurePrefix, "new#") \ |
419 V(_runExtension, "_runExtension") \ | 423 V(_runExtension, "_runExtension") \ |
420 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \ | 424 V(_runPendingImmediateCallback, "_runPendingImmediateCallback") \ |
421 V(DartLibrary, "dart.library.") \ | 425 V(DartLibrary, "dart.library.") \ |
422 V(DartLibraryMirrors, "dart.library.mirrors") \ | 426 V(DartLibraryMirrors, "dart.library.mirrors") \ |
423 V(_name, "_name") \ | 427 V(_name, "_name") \ |
424 V(_classRangeCheck, "_classRangeCheck") \ | 428 V(_classRangeCheck, "_classRangeCheck") \ |
425 V(_classRangeCheckNegative, "_classRangeCheckNegative") \ | 429 V(_classRangeCheckNegative, "_classRangeCheckNegative") \ |
426 V(GetRuntimeType, "get:runtimeType") \ | 430 V(GetRuntimeType, "get:runtimeType") \ |
427 V(HaveSameRuntimeType, "_haveSameRuntimeType") | 431 V(HaveSameRuntimeType, "_haveSameRuntimeType") \ |
| 432 V(DartDeveloperCausalAsyncStacks, "dart.developer.causal_async_stacks") |
428 | 433 |
429 | 434 |
430 // Contains a list of frequently used strings in a canonicalized form. This | 435 // Contains a list of frequently used strings in a canonicalized form. This |
431 // list is kept in the vm_isolate in order to share the copy across isolates | 436 // list is kept in the vm_isolate in order to share the copy across isolates |
432 // without having to maintain copies in each isolate. | 437 // without having to maintain copies in each isolate. |
433 class Symbols : public AllStatic { | 438 class Symbols : public AllStatic { |
434 public: | 439 public: |
435 enum { kMaxOneCharCodeSymbol = 0xFF }; | 440 enum { kMaxOneCharCodeSymbol = 0xFF }; |
436 | 441 |
437 // List of strings that are pre created in the vm isolate. | 442 // List of strings that are pre created in the vm isolate. |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 friend class Serializer; | 688 friend class Serializer; |
684 friend class Deserializer; | 689 friend class Deserializer; |
685 friend class ApiMessageReader; | 690 friend class ApiMessageReader; |
686 | 691 |
687 DISALLOW_COPY_AND_ASSIGN(Symbols); | 692 DISALLOW_COPY_AND_ASSIGN(Symbols); |
688 }; | 693 }; |
689 | 694 |
690 } // namespace dart | 695 } // namespace dart |
691 | 696 |
692 #endif // RUNTIME_VM_SYMBOLS_H_ | 697 #endif // RUNTIME_VM_SYMBOLS_H_ |
OLD | NEW |