diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-12-18 15:05:04 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-12-18 15:05:04 +0100 |
commit | 20b945df706b2b9fcbc1a84230372d288d497544 (patch) | |
tree | 0c60abd605dfb4452ba1e866b2bd075f1bd929ef /deps/v8/src/token.h | |
parent | 164ce76e941490e82230e905e719b5b556b669f5 (diff) | |
download | node-new-20b945df706b2b9fcbc1a84230372d288d497544.tar.gz |
Upgrade V8 to 2.0.5
Diffstat (limited to 'deps/v8/src/token.h')
-rw-r--r-- | deps/v8/src/token.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/deps/v8/src/token.h b/deps/v8/src/token.h index a60704cd07..2a228d67cf 100644 --- a/deps/v8/src/token.h +++ b/deps/v8/src/token.h @@ -66,8 +66,9 @@ namespace internal { T(DEC, "--", 0) \ \ /* Assignment operators. */ \ - /* IsAssignmentOp() relies on this block of enum values */ \ - /* being contiguous and sorted in the same order! */ \ + /* IsAssignmentOp() and Assignment::is_compound() relies on */ \ + /* this block of enum values being contiguous and sorted in the */ \ + /* same order! */ \ T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \ T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \ T(ASSIGN, "=", 2) \ @@ -211,14 +212,12 @@ class Token { }; #undef T -#ifdef DEBUG // Returns a string corresponding to the C++ token name // (e.g. "LT" for the token LT). static const char* Name(Value tok) { ASSERT(0 <= tok && tok < NUM_TOKENS); return name_[tok]; } -#endif // Predicates static bool IsAssignmentOp(Value tok) { @@ -261,9 +260,7 @@ class Token { } private: -#ifdef DEBUG static const char* name_[NUM_TOKENS]; -#endif static const char* string_[NUM_TOKENS]; static int8_t precedence_[NUM_TOKENS]; }; |