Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/token.h')
-rw-r--r--deps/v8/src/token.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/token.h b/deps/v8/src/token.h
index 0d8960b8ee4..ebc7fea1cd5 100644
--- a/deps/v8/src/token.h
+++ b/deps/v8/src/token.h
@@ -248,6 +248,10 @@ class Token {
return op == INC || op == DEC;
}
+ static bool IsShiftOp(Value op) {
+ return (SHL <= op) && (op <= SHR);
+ }
+
// Returns a string corresponding to the JS token string
// (.e., "<" for the token LT) or NULL if the token doesn't
// have a (unique) string (e.g. an IDENTIFIER).