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

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

Issue 1439693002: [runtime] Support Proxy setPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-11-09_new_Proxy_1417063011
Patch Set: merging with master Created 5 years 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/token.h ('k') | src/regexp/bytecodes-irregexp.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "src/parsing/token.h" 7 #include "src/parsing/token.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 11
12 #define T(name, string, precedence) #name, 12 #define T(name, string, precedence) #name,
13 const char* const Token::name_[NUM_TOKENS] = { 13 const char* const Token::name_[NUM_TOKENS] = {TOKEN_LIST(T, T)};
14 TOKEN_LIST(T, T)
15 };
16 #undef T 14 #undef T
17 15
18 16
19 #define T(name, string, precedence) string, 17 #define T(name, string, precedence) string,
20 const char* const Token::string_[NUM_TOKENS] = { 18 const char* const Token::string_[NUM_TOKENS] = {TOKEN_LIST(T, T)};
21 TOKEN_LIST(T, T)
22 };
23 #undef T 19 #undef T
24 20
25 21
26 #define T(name, string, precedence) precedence, 22 #define T(name, string, precedence) precedence,
27 const int8_t Token::precedence_[NUM_TOKENS] = { 23 const int8_t Token::precedence_[NUM_TOKENS] = {TOKEN_LIST(T, T)};
28 TOKEN_LIST(T, T)
29 };
30 #undef T 24 #undef T
31 25
32 26
33 #define KT(a, b, c) 'T', 27 #define KT(a, b, c) 'T',
34 #define KK(a, b, c) 'K', 28 #define KK(a, b, c) 'K',
35 const char Token::token_type[] = { 29 const char Token::token_type[] = {TOKEN_LIST(KT, KK)};
36 TOKEN_LIST(KT, KK)
37 };
38 #undef KT 30 #undef KT
39 #undef KK 31 #undef KK
40 32
41 } // namespace internal 33 } // namespace internal
42 } // namespace v8 34 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/token.h ('k') | src/regexp/bytecodes-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698