v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Token Class Reference

#include <token.h>

Public Types

enum  Value { NUM_TOKENS }
 

Static Public Member Functions

static const char * Name (Value tok)
 
static bool IsKeyword (Value tok)
 
static bool IsAssignmentOp (Value tok)
 
static bool IsBinaryOp (Value op)
 
static bool IsTruncatingBinaryOp (Value op)
 
static bool IsCompareOp (Value op)
 
static bool IsOrderedRelationalCompareOp (Value op)
 
static bool IsEqualityOp (Value op)
 
static bool IsInequalityOp (Value op)
 
static bool IsArithmeticCompareOp (Value op)
 
static Value NegateCompareOp (Value op)
 
static Value ReverseCompareOp (Value op)
 
static bool IsBitOp (Value op)
 
static bool IsUnaryOp (Value op)
 
static bool IsCountOp (Value op)
 
static bool IsShiftOp (Value op)
 
static const char * String (Value tok)
 
static int Precedence (Value tok)
 

Detailed Description

Definition at line 186 of file token.h.

Member Enumeration Documentation

enum Value
Enumerator
NUM_TOKENS 

Definition at line 190 of file token.h.

Member Function Documentation

static bool IsArithmeticCompareOp ( Value  op)
inlinestatic
static bool IsAssignmentOp ( Value  tok)
inlinestatic
static bool IsBinaryOp ( Value  op)
inlinestatic

Definition at line 212 of file token.h.

References COMMA.

Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::BinaryOperation().

static bool IsBitOp ( Value  op)
inlinestatic

Definition at line 275 of file token.h.

static bool IsCountOp ( Value  op)
inlinestatic
static bool IsEqualityOp ( Value  op)
inlinestatic
static bool IsInequalityOp ( Value  op)
inlinestatic

Definition at line 232 of file token.h.

Referenced by Token::IsArithmeticCompareOp().

static bool IsKeyword ( Value  tok)
inlinestatic
static bool IsOrderedRelationalCompareOp ( Value  op)
inlinestatic
static bool IsShiftOp ( Value  op)
inlinestatic

Definition at line 287 of file token.h.

static bool IsTruncatingBinaryOp ( Value  op)
inlinestatic

Definition at line 216 of file token.h.

References v8::internal::ROR.

static bool IsUnaryOp ( Value  op)
inlinestatic
static const char* Name ( Value  tok)
inlinestatic
static Value NegateCompareOp ( Value  op)
inlinestatic

Definition at line 241 of file token.h.

References ASSERT, v8::internal::EQ, Token::IsArithmeticCompareOp(), and UNREACHABLE.

static int Precedence ( Value  tok)
inlinestatic

Definition at line 301 of file token.h.

References ASSERT, and Token::NUM_TOKENS.

Referenced by ParserBase< ParserTraits >::Precedence().

static Value ReverseCompareOp ( Value  op)
inlinestatic

Definition at line 258 of file token.h.

References ASSERT, v8::internal::EQ, Token::IsArithmeticCompareOp(), and UNREACHABLE.

static const char* String ( Value  tok)
inlinestatic

Definition at line 294 of file token.h.

References ASSERT, and Token::NUM_TOKENS.

Referenced by ParserBase< Traits >::ReportUnexpectedToken(), and TestStreamScanner().


The documentation for this class was generated from the following files: