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

Unified Diff: runtime/vm/scanner.h

Issue 72923002: Add Dart keyword symbols to the VM isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/scanner.h
===================================================================
--- runtime/vm/scanner.h (revision 30276)
+++ runtime/vm/scanner.h (working copy)
@@ -105,15 +105,12 @@
Token::Kind kind;
const char* keyword_chars;
int keyword_len;
- String* keyword_symbol;
+ const String* keyword_symbol;
};
// Rewind scanner position to token 0.
void Reset();
- // Initialize Scanner tables.
- void InitKeywordTable();
-
// Reads next lookahead character.
void ReadChar();
@@ -216,8 +213,8 @@
const String& private_key_;
SourcePosition c0_pos_; // Source position of lookahead character c0_.
- KeywordTable keywords_[Token::numKeywords];
- Array& keyword_symbol_table_; // Access to keyword symbols in object store.
+
+ static KeywordTable keywords_[Token::numKeywords];
};

Powered by Google App Engine
This is Rietveld 408576698