Home
last modified time | relevance | path

Searched refs:AsLiteral (Results 1 – 15 of 15) sorted by relevance

/third_party/node/deps/v8/src/ast/
Dast.cc87 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 …]
Dprettyprinter.cc396 Literal* literal = key->AsLiteral(); in VisitProperty()
1343 PrintLiteralIndented("NAME", node->key()->AsLiteral(), false); in VisitProperty()
/third_party/gn/src/gn/
Dparse_tree.cc87 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 ParseNode
563 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
Dcommand_format.cc461 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()
Dparse_tree.h92 virtual const LiteralNode* AsLiteral() const;
503 const LiteralNode* AsLiteral() const override;
Dparser.cc809 } else if (root->AsLiteral()) { in TraverseOrder()
/third_party/node/deps/v8/src/interpreter/
Dbytecode-generator.cc1810 (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 …]
/third_party/node/deps/v8/src/compiler/
Dprocessed-feedback.h56 LiteralFeedback const& AsLiteral() const;
Djs-heap-broker.cc939 LiteralFeedback const& ProcessedFeedback::AsLiteral() const { in AsLiteral() function in v8::internal::compiler::ProcessedFeedback
Djs-create-lowering.cc1106 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceJSCreateLiteralArrayOrObject()
1128 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceJSCreateEmptyLiteralArray()
Djs-call-reducer.cc4246 AllocationSiteRef site = feedback.AsLiteral().value(); in ReduceCallOrConstructWithArrayLikeOrSpread()
/third_party/node/deps/v8/src/objects/
Dliteral-objects.cc612 if (property->key()->AsLiteral()->IsPropertyName()) { in BuildClassBoilerplate()
701 Literal* key_literal = property->key()->AsLiteral(); in BuildClassBoilerplate()
/third_party/node/deps/v8/src/parsing/
Dparser.h629 Literal* literal = e_stat->expression()->AsLiteral();
652 fni_.PushLiteralName(expression->AsLiteral()->AsRawPropertyName());
Dparser.cc158 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()
/third_party/node/deps/v8/src/execution/
Dmessages.cc936 ->AsLiteral() in ThrowLoadFromNullOrUndefined()