| 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 VM_SYMBOLS_H_ | 5 #ifndef VM_SYMBOLS_H_ |
| 6 #define VM_SYMBOLS_H_ | 6 #define VM_SYMBOLS_H_ |
| 7 | 7 |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/snapshot_ids.h" | 9 #include "vm/snapshot_ids.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 V(NoSuchMethod, "noSuchMethod") \ | 46 V(NoSuchMethod, "noSuchMethod") \ |
| 47 V(SavedContextVar, ":saved_context_var") \ | 47 V(SavedContextVar, ":saved_context_var") \ |
| 48 V(ExceptionVar, ":exception_var") \ | 48 V(ExceptionVar, ":exception_var") \ |
| 49 V(StacktraceVar, ":stacktrace_var") \ | 49 V(StacktraceVar, ":stacktrace_var") \ |
| 50 V(ListLiteralElement, "list literal element") \ | 50 V(ListLiteralElement, "list literal element") \ |
| 51 V(ForInIter, ":for-in-iter") \ | 51 V(ForInIter, ":for-in-iter") \ |
| 52 V(Library, "library") \ | 52 V(Library, "library") \ |
| 53 V(Import, "import") \ | 53 V(Import, "import") \ |
| 54 V(Source, "source") \ | 54 V(Source, "source") \ |
| 55 V(Resource, "resource") \ | 55 V(Resource, "resource") \ |
| 56 V(Class, "Class") \ |
| 57 V(Null, "Null") \ |
| 58 V(Dynamic, "Dynamic") \ |
| 59 V(Void, "void") \ |
| 60 V(UnresolvedClass, "UnresolvedClass") \ |
| 61 V(Type, "Type") \ |
| 62 V(TypeParameter, "TypeParameter") \ |
| 63 V(TypeArguments, "TypeArguments") \ |
| 64 V(InstantiatedTypeArguments, "InstantiatedTypeArguments") \ |
| 65 V(Function, "Function") \ |
| 66 V(Field, "Field") \ |
| 67 V(LiteralToken, "LiteralToken") \ |
| 68 V(TokenStream, "TokenStream") \ |
| 69 V(Script, "Script") \ |
| 70 V(LibraryClass, "Library") \ |
| 71 V(LibraryPrefix, "LibraryPrefix") \ |
| 72 V(Code, "Code") \ |
| 73 V(Instructions, "Instructions") \ |
| 74 V(PcDescriptors, "PcDescriptors") \ |
| 75 V(Stackmap, "Stackmap") \ |
| 76 V(LocalVarDescriptors, "LocalVarDescriptors") \ |
| 77 V(ExceptionHandlers, "ExceptionHandlers") \ |
| 78 V(DeoptInfo, "DeoptInfo") \ |
| 79 V(Context, "Context") \ |
| 80 V(ContextScope, "ContextScope") \ |
| 81 V(ICData, "ICData") \ |
| 82 V(SubtypeTestCache, "SubtypeTestCache") \ |
| 83 V(ApiError, "ApiError") \ |
| 84 V(LanguageError, "LanguageError") \ |
| 85 V(UnhandledException, "UnhandledException") \ |
| 86 V(UnwindError, "UnwindError") \ |
| 56 | 87 |
| 57 // Contains a list of frequently used strings in a canonicalized form. This | 88 // Contains a list of frequently used strings in a canonicalized form. This |
| 58 // list is kept in the vm_isolate in order to share the copy across isolates | 89 // list is kept in the vm_isolate in order to share the copy across isolates |
| 59 // without having to maintain copies in each isolate. | 90 // without having to maintain copies in each isolate. |
| 60 class Symbols : public AllStatic { | 91 class Symbols : public AllStatic { |
| 61 public: | 92 public: |
| 62 // List of strings that are pre created in the vm isolate. | 93 // List of strings that are pre created in the vm isolate. |
| 63 enum { | 94 enum { |
| 64 kIllegal = 0, | 95 kIllegal = 0, |
| 65 | 96 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 friend class SnapshotReader; | 169 friend class SnapshotReader; |
| 139 friend class SnapshotWriter; | 170 friend class SnapshotWriter; |
| 140 friend class ApiMessageReader; | 171 friend class ApiMessageReader; |
| 141 | 172 |
| 142 DISALLOW_COPY_AND_ASSIGN(Symbols); | 173 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 143 }; | 174 }; |
| 144 | 175 |
| 145 } // namespace dart | 176 } // namespace dart |
| 146 | 177 |
| 147 #endif // VM_SYMBOLS_H_ | 178 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |