summaryrefslogtreecommitdiff
path: root/deps/v8/src/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/token.h')
-rw-r--r--deps/v8/src/token.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/token.h b/deps/v8/src/token.h
index eb825c1a7..7a2156c95 100644
--- a/deps/v8/src/token.h
+++ b/deps/v8/src/token.h
@@ -73,6 +73,7 @@ namespace internal {
T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \
T(INIT_LET, "=init_let", 2) /* AST-use only. */ \
T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \
+ T(INIT_CONST_HARMONY, "=init_const_harmony", 2) /* AST-use only. */ \
T(ASSIGN, "=", 2) \
T(ASSIGN_BIT_OR, "|=", 2) \
T(ASSIGN_BIT_XOR, "^=", 2) \
@@ -216,6 +217,10 @@ class Token {
return op == LT || op == LTE || op == GT || op == GTE;
}
+ static bool IsEqualityOp(Value op) {
+ return op == EQ || op == EQ_STRICT;
+ }
+
static Value NegateCompareOp(Value op) {
ASSERT(IsCompareOp(op));
switch (op) {