| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 V(MegamorphicMiss, "megamorphic_miss") \ | 181 V(MegamorphicMiss, "megamorphic_miss") \ |
| 182 V(CommaSpace, ", ") \ | 182 V(CommaSpace, ", ") \ |
| 183 V(ColonSpace, ": ") \ | 183 V(ColonSpace, ": ") \ |
| 184 V(RParenArrow, ") => ") \ | 184 V(RParenArrow, ") => ") \ |
| 185 V(SpaceExtendsSpace, " extends ") \ | 185 V(SpaceExtendsSpace, " extends ") \ |
| 186 V(PatchSpace, "patch ") \ | 186 V(PatchSpace, "patch ") \ |
| 187 V(AliasOwner, ":alias_owner") \ | 187 V(AliasOwner, ":alias_owner") \ |
| 188 V(SwitchExpr, ":switch_expr") \ | 188 V(SwitchExpr, ":switch_expr") \ |
| 189 V(TwoNewlines, "\n\n") \ | 189 V(TwoNewlines, "\n\n") \ |
| 190 V(TwoSpaces, " ") \ | 190 V(TwoSpaces, " ") \ |
| 191 V(_instanceOf, "_instanceOf") \ |
| 192 V(PrivateGetterPrefix, "get:_") \ |
| 193 V(PrivateSetterPrefix, "set:_") \ |
| 191 | 194 |
| 192 // Contains a list of frequently used strings in a canonicalized form. This | 195 // Contains a list of frequently used strings in a canonicalized form. This |
| 193 // list is kept in the vm_isolate in order to share the copy across isolates | 196 // list is kept in the vm_isolate in order to share the copy across isolates |
| 194 // without having to maintain copies in each isolate. | 197 // without having to maintain copies in each isolate. |
| 195 class Symbols : public AllStatic { | 198 class Symbols : public AllStatic { |
| 196 public: | 199 public: |
| 197 enum { kMaxOneCharCodeSymbol = 0xFF }; | 200 enum { kMaxOneCharCodeSymbol = 0xFF }; |
| 198 | 201 |
| 199 // List of strings that are pre created in the vm isolate. | 202 // List of strings that are pre created in the vm isolate. |
| 200 enum SymbolId { | 203 enum SymbolId { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 friend class SnapshotReader; | 376 friend class SnapshotReader; |
| 374 friend class SnapshotWriter; | 377 friend class SnapshotWriter; |
| 375 friend class ApiMessageReader; | 378 friend class ApiMessageReader; |
| 376 | 379 |
| 377 DISALLOW_COPY_AND_ASSIGN(Symbols); | 380 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 378 }; | 381 }; |
| 379 | 382 |
| 380 } // namespace dart | 383 } // namespace dart |
| 381 | 384 |
| 382 #endif // VM_SYMBOLS_H_ | 385 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |