| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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") \ | 191 V(_instanceOf, "_instanceOf") \ |
| 192 V(PrivateGetterPrefix, "get:_") \ | 192 V(PrivateGetterPrefix, "get:_") \ |
| 193 V(PrivateSetterPrefix, "set:_") \ | 193 V(PrivateSetterPrefix, "set:_") \ |
| 194 V(_New, "_new") \ |
| 194 | 195 |
| 195 | 196 |
| 196 // Contains a list of frequently used strings in a canonicalized form. This | 197 // Contains a list of frequently used strings in a canonicalized form. This |
| 197 // list is kept in the vm_isolate in order to share the copy across isolates | 198 // list is kept in the vm_isolate in order to share the copy across isolates |
| 198 // without having to maintain copies in each isolate. | 199 // without having to maintain copies in each isolate. |
| 199 class Symbols : public AllStatic { | 200 class Symbols : public AllStatic { |
| 200 public: | 201 public: |
| 201 enum { kMaxOneCharCodeSymbol = 0xFF }; | 202 enum { kMaxOneCharCodeSymbol = 0xFF }; |
| 202 | 203 |
| 203 // List of strings that are pre created in the vm isolate. | 204 // List of strings that are pre created in the vm isolate. |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 friend class SnapshotReader; | 378 friend class SnapshotReader; |
| 378 friend class SnapshotWriter; | 379 friend class SnapshotWriter; |
| 379 friend class ApiMessageReader; | 380 friend class ApiMessageReader; |
| 380 | 381 |
| 381 DISALLOW_COPY_AND_ASSIGN(Symbols); | 382 DISALLOW_COPY_AND_ASSIGN(Symbols); |
| 382 }; | 383 }; |
| 383 | 384 |
| 384 } // namespace dart | 385 } // namespace dart |
| 385 | 386 |
| 386 #endif // VM_SYMBOLS_H_ | 387 #endif // VM_SYMBOLS_H_ |
| OLD | NEW |