v8  3.14.5(node0.10.28)
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 IsCompareOp (Value op)
 
static bool IsOrderedRelationalCompareOp (Value op)
 
static bool IsEqualityOp (Value op)
 
static Value NegateCompareOp (Value op)
 
static Value InvertCompareOp (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 184 of file token.h.

Member Enumeration Documentation

enum Value
Enumerator
NUM_TOKENS 

Definition at line 188 of file token.h.

Member Function Documentation

static Value InvertCompareOp ( Value  op)
inlinestatic

Definition at line 241 of file token.h.

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

static bool IsAssignmentOp ( Value  tok)
inlinestatic

Definition at line 206 of file token.h.

Referenced by Assignment::Init().

static bool IsBinaryOp ( Value  op)
inlinestatic

Definition at line 210 of file token.h.

Referenced by BinaryOperation::BinaryOperation().

static bool IsBitOp ( Value  op)
inlinestatic

Definition at line 256 of file token.h.

static bool IsCountOp ( Value  op)
inlinestatic

Definition at line 264 of file token.h.

static bool IsEqualityOp ( Value  op)
inlinestatic

Definition at line 222 of file token.h.

References v8::internal::EQ.

static bool IsKeyword ( Value  tok)
inlinestatic

Definition at line 202 of file token.h.

static bool IsOrderedRelationalCompareOp ( Value  op)
inlinestatic

Definition at line 218 of file token.h.

Referenced by HCompareIDAndBranch::SetInputRepresentation().

static bool IsShiftOp ( Value  op)
inlinestatic

Definition at line 268 of file token.h.

static bool IsUnaryOp ( Value  op)
inlinestatic

Definition at line 260 of file token.h.

References v8::internal::ADD, v8::internal::SUB, and VOID.

Referenced by UnaryOperation::UnaryOperation().

static Value NegateCompareOp ( Value  op)
inlinestatic

Definition at line 226 of file token.h.

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

static int Precedence ( Value  tok)
inlinestatic

Definition at line 282 of file token.h.

References ASSERT, and Token::NUM_TOKENS.

static const char* String ( Value  tok)
inlinestatic

Definition at line 275 of file token.h.

References ASSERT, and Token::NUM_TOKENS.

Referenced by LCmpIDAndBranch::PrintDataTo(), and TestStreamScanner().


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