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

Side by Side Diff: src/token.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_TOKEN_H_ 5 #ifndef V8_TOKEN_H_
6 #define V8_TOKEN_H_ 6 #define V8_TOKEN_H_
7 7
8 #include "src/checks.h" 8 #include "src/base/logging.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // TOKEN_LIST takes a list of 3 macros M, all of which satisfy the 13 // TOKEN_LIST takes a list of 3 macros M, all of which satisfy the
14 // same signature M(name, string, precedence), where name is the 14 // same signature M(name, string, precedence), where name is the
15 // symbolic token name, string is the corresponding syntactic symbol 15 // symbolic token name, string is the corresponding syntactic symbol
16 // (or NULL, for literals), and precedence is the precedence (or 0). 16 // (or NULL, for literals), and precedence is the precedence (or 0).
17 // The parameters are invoked for token categories as follows: 17 // The parameters are invoked for token categories as follows:
18 // 18 //
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 private: 283 private:
284 static const char* const name_[NUM_TOKENS]; 284 static const char* const name_[NUM_TOKENS];
285 static const char* const string_[NUM_TOKENS]; 285 static const char* const string_[NUM_TOKENS];
286 static const int8_t precedence_[NUM_TOKENS]; 286 static const int8_t precedence_[NUM_TOKENS];
287 static const char token_type[NUM_TOKENS]; 287 static const char token_type[NUM_TOKENS];
288 }; 288 };
289 289
290 } } // namespace v8::internal 290 } } // namespace v8::internal
291 291
292 #endif // V8_TOKEN_H_ 292 #endif // V8_TOKEN_H_
OLDNEW
« src/base/macros.h ('K') | « src/sweeper-thread.cc ('k') | src/transitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698