Searched refs:AsLiteral (Results 1 – 15 of 15) sorted by relevance
87 return IsLiteral() && AsLiteral()->type() == Literal::kSmi; in IsSmiLiteral()91 return IsLiteral() && AsLiteral()->IsNumber(); in IsNumberLiteral()95 return IsLiteral() && AsLiteral()->type() == Literal::kString; in IsStringLiteral()99 return IsLiteral() && AsLiteral()->IsPropertyName(); in IsPropertyName()103 return IsLiteral() && AsLiteral()->type() == Literal::kNull; in IsNullLiteral()107 return IsLiteral() && AsLiteral()->type() == Literal::kTheHole; in IsTheHoleLiteral()118 if (IsLiteral() && AsLiteral()->type() == Literal::kUndefined) return true; in IsUndefinedLiteral()134 return IsLiteral() && AsLiteral()->ToBooleanIsTrue(); in ToBooleanIsTrue()138 return IsLiteral() && AsLiteral()->ToBooleanIsFalse(); in ToBooleanIsFalse()289 if (!is_computed_name && key->AsLiteral()->IsString() && in ObjectLiteralProperty()[all …]
396 Literal* literal = key->AsLiteral(); in VisitProperty()1343 PrintLiteralIndented("NAME", node->key()->AsLiteral(), false); in VisitProperty()
87 DCHECK(node->AsLiteral() || node->AsIdentifier() || node->AsAccessor()); in GetStringRepresentation()88 if (node->AsLiteral()) in GetStringRepresentation()89 return node->AsLiteral()->value().value(); in GetStringRepresentation()201 const LiteralNode* ParseNode::AsLiteral() const { in AsLiteral() function in ParseNode563 if (cur->AsList() || cur->AsLiteral() || cur->AsUnaryOp() || in Execute()930 if (!node->AsLiteral() && !node->AsIdentifier() && !node->AsAccessor()) { in SortList()966 DCHECK(node->AsLiteral() || node->AsIdentifier() || node->AsAccessor()); in SortList()969 if (node->AsLiteral()) { in SortList()970 const_cast<LiteralNode*>(node->AsLiteral()) in SortList()1071 const LiteralNode* LiteralNode::AsLiteral() const { in AsLiteral() function in LiteralNode
461 if (!a_args.empty() && a_args[0]->AsLiteral()) in SortImports()462 a_name = a_args[0]->AsLiteral()->value().value(); in SortImports()463 if (!b_args.empty() && b_args[0]->AsLiteral()) in SortImports()464 b_name = b_args[0]->AsLiteral()->value().value(); in SortImports()542 } else if (node->AsLiteral()) { in SuffixCommentTreeWalk()909 } else if (const LiteralNode* literal = root->AsLiteral()) { in Expr()
92 virtual const LiteralNode* AsLiteral() const;503 const LiteralNode* AsLiteral() const override;
809 } else if (root->AsLiteral()) { in TraverseOrder()
1810 (expr->IsLiteral() && expr->AsLiteral()->IsNumber() && in IsSmiLiteralSwitchCaseValue()1811 expr->AsLiteral()->AsNumber() == 0.0)) { in IsSmiLiteralSwitchCaseValue()1814 } else if (expr->IsLiteral() && expr->AsLiteral()->IsNumber()) { in IsSmiLiteralSwitchCaseValue()1815 DCHECK(!IsSmiDouble(expr->AsLiteral()->AsNumber())); in IsSmiLiteralSwitchCaseValue()1824 return expr->AsLiteral()->AsSmiLiteral().value(); in ReduceToSmiSwitchCaseValue()1827 DCHECK(expr->IsLiteral() && expr->AsLiteral()->IsNumber() && in ReduceToSmiSwitchCaseValue()1828 expr->AsLiteral()->AsNumber() == -0.0); in ReduceToSmiSwitchCaseValue()2599 ->LoadLiteral(property->key()->AsLiteral()->AsRawPropertyName()) in BuildClassLiteral()2617 Literal* key = property->key()->AsLiteral(); in BuildClassLiteral()2623 Literal* key = property->key()->AsLiteral(); in BuildClassLiteral()[all …]
56 LiteralFeedback const& AsLiteral() const;
939 LiteralFeedback const& ProcessedFeedback::AsLiteral() const { in AsLiteral() function in v8::internal::compiler::ProcessedFeedback
1106 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceJSCreateLiteralArrayOrObject()1128 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceJSCreateEmptyLiteralArray()
4246 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceCallOrConstructWithArrayLikeOrSpread()
612 if (property->key()->AsLiteral()->IsPropertyName()) { in BuildClassBoilerplate()701 Literal* key_literal = property->key()->AsLiteral(); in BuildClassBoilerplate()
629 Literal* literal = e_stat->expression()->AsLiteral();652 fni_.PushLiteralName(expression->AsLiteral()->AsRawPropertyName());
158 double x_val = (*x)->AsLiteral()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()159 double y_val = y->AsLiteral()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()263 const Literal* literal = expression->AsLiteral(); in BuildUnaryExpression()
936 ->AsLiteral() in ThrowLoadFromNullOrUndefined()