V8 Project
|
#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) |
Static Private Attributes | |
static const char *const | name_ [NUM_TOKENS] |
static const char *const | string_ [NUM_TOKENS] |
static const int8_t | precedence_ [NUM_TOKENS] |
static const char | token_type [NUM_TOKENS] |
Definition at line 218 of file token.h.
References IsEqualityOp(), IsInequalityOp(), and IsOrderedRelationalCompareOp().
Referenced by NegateCompareOp(), and ReverseCompareOp().
Definition at line 190 of file token.h.
Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::Init(), and v8::internal::ParserBase< Traits >::ParseAssignmentExpression().
Definition at line 194 of file token.h.
References COMMA.
Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::BinaryOperation().
Definition at line 202 of file token.h.
References v8::internal::EQ, and IN.
Referenced by v8::internal::CompareICStub::CompareICStub(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::CompareOperation(), v8::internal::EvalComparison(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::HCompareGeneric(), v8::internal::HCompareNumericAndBranch::HCompareNumericAndBranch(), v8::internal::HStringCompareAndBranch::HStringCompareAndBranch(), and v8::internal::ParserBase< Traits >::ParseBinaryExpression().
Definition at line 265 of file token.h.
Referenced by v8::internal::ParserBase< Traits >::ParsePostfixExpression(), and v8::internal::ParserBase< Traits >::ParseUnaryExpression().
Definition at line 210 of file token.h.
References v8::internal::EQ.
Referenced by v8::internal::HOptimizedGraphBuilder::BuildCompareInstruction(), IsArithmeticCompareOp(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::LimitFromPredecessorBlock::LimitIsIncluded(), v8::internal::MatchLiteralCompareNull(), v8::internal::MatchLiteralCompareTypeof(), and v8::internal::MatchLiteralCompareUndefined().
Definition at line 214 of file token.h.
Referenced by IsArithmeticCompareOp().
Definition at line 186 of file token.h.
References token_type.
Referenced by v8::internal::ParserBase< Traits >::ParseIdentifierName().
Definition at line 206 of file token.h.
Referenced by IsArithmeticCompareOp().
Definition at line 261 of file token.h.
References v8::internal::ADD, v8::internal::NOT, v8::internal::SUB, and VOID.
Referenced by v8::internal::ParserBase< Traits >::ParseUnaryExpression(), and v8::internal::FINAL< kOperandKind, kNumCachedOperands >::UnaryOperation().
|
inlinestatic |
Definition at line 180 of file token.h.
References DCHECK, name_, and NUM_TOKENS.
Referenced by v8::internal::CompareIC::UpdateCaches(), and v8::internal::HRangeAnalysisPhase::UpdateControlFlowRange().
Definition at line 223 of file token.h.
References DCHECK, v8::internal::EQ, IsArithmeticCompareOp(), and UNREACHABLE.
Referenced by v8::internal::HRangeAnalysisPhase::InferControlFlowRange().
Definition at line 283 of file token.h.
References DCHECK, NUM_TOKENS, and precedence_.
Referenced by v8::internal::ParserBase< Traits >::Precedence().
Definition at line 240 of file token.h.
References DCHECK, v8::internal::EQ, IsArithmeticCompareOp(), and UNREACHABLE.
Referenced by v8::internal::HRangeAnalysisPhase::InferControlFlowRange().
|
inlinestatic |
Definition at line 276 of file token.h.
References DCHECK, NUM_TOKENS, and string_.
Referenced by v8::internal::ParserBase< Traits >::ReportUnexpectedToken().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |