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

Side by Side Diff: src/parsing/token.h

Issue 2329703002: Private fields
Patch Set: some comments Created 4 years, 3 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
« no previous file with comments | « src/parsing/scanner.cc ('k') | src/runtime/runtime.h » ('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 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_PARSING_TOKEN_H_ 5 #ifndef V8_PARSING_TOKEN_H_
6 #define V8_PARSING_TOKEN_H_ 6 #define V8_PARSING_TOKEN_H_
7 7
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
(...skipping 27 matching lines...) Expand all
38 T(LBRACE, "{", 0) \ 38 T(LBRACE, "{", 0) \
39 T(RBRACE, "}", 0) \ 39 T(RBRACE, "}", 0) \
40 T(COLON, ":", 0) \ 40 T(COLON, ":", 0) \
41 T(SEMICOLON, ";", 0) \ 41 T(SEMICOLON, ";", 0) \
42 T(PERIOD, ".", 0) \ 42 T(PERIOD, ".", 0) \
43 T(ELLIPSIS, "...", 0) \ 43 T(ELLIPSIS, "...", 0) \
44 T(CONDITIONAL, "?", 3) \ 44 T(CONDITIONAL, "?", 3) \
45 T(INC, "++", 0) \ 45 T(INC, "++", 0) \
46 T(DEC, "--", 0) \ 46 T(DEC, "--", 0) \
47 T(ARROW, "=>", 0) \ 47 T(ARROW, "=>", 0) \
48 T(HASH, "#", 0) \
48 \ 49 \
49 /* Assignment operators. */ \ 50 /* Assignment operators. */ \
50 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \ 51 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \
51 /* this block of enum values being contiguous and sorted in the */ \ 52 /* this block of enum values being contiguous and sorted in the */ \
52 /* same order! */ \ 53 /* same order! */ \
53 T(INIT, "=init", 2) /* AST-use only. */ \ 54 T(INIT, "=init", 2) /* AST-use only. */ \
54 T(ASSIGN, "=", 2) \ 55 T(ASSIGN, "=", 2) \
55 T(ASSIGN_BIT_OR, "|=", 2) \ 56 T(ASSIGN_BIT_OR, "|=", 2) \
56 T(ASSIGN_BIT_XOR, "^=", 2) \ 57 T(ASSIGN_BIT_XOR, "^=", 2) \
57 T(ASSIGN_BIT_AND, "&=", 2) \ 58 T(ASSIGN_BIT_AND, "&=", 2) \
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 static const char* const string_[NUM_TOKENS]; 344 static const char* const string_[NUM_TOKENS];
344 static const uint8_t string_length_[NUM_TOKENS]; 345 static const uint8_t string_length_[NUM_TOKENS];
345 static const int8_t precedence_[NUM_TOKENS]; 346 static const int8_t precedence_[NUM_TOKENS];
346 static const char token_type[NUM_TOKENS]; 347 static const char token_type[NUM_TOKENS];
347 }; 348 };
348 349
349 } // namespace internal 350 } // namespace internal
350 } // namespace v8 351 } // namespace v8
351 352
352 #endif // V8_PARSING_TOKEN_H_ 353 #endif // V8_PARSING_TOKEN_H_
OLDNEW
« no previous file with comments | « src/parsing/scanner.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698