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

Unified Diff: runtime/vm/symbols.cc

Issue 64273012: Address comment from vm-based keyword symbols CL (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.cc
===================================================================
--- runtime/vm/symbols.cc (revision 30289)
+++ runtime/vm/symbols.cc (working copy)
@@ -50,8 +50,8 @@
const String& Symbols::Keyword(Token::Kind keyword) {
const int kw_index = keyword - Token::kFirstKeyword;
ASSERT((0 <= kw_index) && (kw_index < Token::numKeywords));
- ASSERT(Token::kABSTRACT == Token::kFirstKeyword);
- const intptr_t keyword_id = Symbols::kABSTRACTId + kw_index;
+ // First keyword symbol is in symbol_handles_[kKwTableStart + 1].
+ const intptr_t keyword_id = Symbols::kKwTableStart + 1 + kw_index;
ASSERT(symbol_handles_[keyword_id] != NULL);
return *symbol_handles_[keyword_id];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698