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

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

Issue 12779008: Mixins with Generics (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/language/language.status » ('j') | 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 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 303 }
304 static const String& LowercaseR() { 304 static const String& LowercaseR() {
305 return *(symbol_handles_[kNullCharId + 'r']); 305 return *(symbol_handles_[kNullCharId + 'r']);
306 } 306 }
307 static const String& Dash() { 307 static const String& Dash() {
308 return *(symbol_handles_[kNullCharId + '-']); 308 return *(symbol_handles_[kNullCharId + '-']);
309 } 309 }
310 static const String& Ampersand() { 310 static const String& Ampersand() {
311 return *(symbol_handles_[kNullCharId + '&']); 311 return *(symbol_handles_[kNullCharId + '&']);
312 } 312 }
313 static const String& Backtick() {
314 return *(symbol_handles_[kNullCharId + '`']);
315 }
313 316
314 // Access methods for symbol handles stored in the vm isolate. 317 // Access methods for symbol handles stored in the vm isolate.
315 #define DEFINE_SYMBOL_HANDLE_ACCESSOR(symbol, literal) \ 318 #define DEFINE_SYMBOL_HANDLE_ACCESSOR(symbol, literal) \
316 static const String& symbol() { return *(symbol_handles_[k##symbol##Id]); } 319 static const String& symbol() { return *(symbol_handles_[k##symbol##Id]); }
317 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_HANDLE_ACCESSOR) 320 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_HANDLE_ACCESSOR)
318 #undef DEFINE_SYMBOL_HANDLE_ACCESSOR 321 #undef DEFINE_SYMBOL_HANDLE_ACCESSOR
319 322
320 // Initialize frequently used symbols in the vm isolate. 323 // Initialize frequently used symbols in the vm isolate.
321 static void InitOnce(Isolate* isolate); 324 static void InitOnce(Isolate* isolate);
322 325
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 friend class SnapshotReader; 421 friend class SnapshotReader;
419 friend class SnapshotWriter; 422 friend class SnapshotWriter;
420 friend class ApiMessageReader; 423 friend class ApiMessageReader;
421 424
422 DISALLOW_COPY_AND_ASSIGN(Symbols); 425 DISALLOW_COPY_AND_ASSIGN(Symbols);
423 }; 426 };
424 427
425 } // namespace dart 428 } // namespace dart
426 429
427 #endif // VM_SYMBOLS_H_ 430 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698