Searched refs:AsNumber (Results 1 – 11 of 11) sorted by relevance
32 CPDF_Number* AsNumber() override;33 const CPDF_Number* AsNumber() const override;46 return obj ? obj->AsNumber() : nullptr; in ToNumber()50 return obj ? obj->AsNumber() : nullptr; in ToNumber()
42 CPDF_Number* CPDF_Number::AsNumber() { in AsNumber() function in CPDF_Number46 const CPDF_Number* CPDF_Number::AsNumber() const { in AsNumber() function in CPDF_Number
129 CPDF_Number* CPDF_Object::AsNumber() { in AsNumber() function in CPDF_Object133 const CPDF_Number* CPDF_Object::AsNumber() const { in AsNumber() function in CPDF_Object
82 virtual CPDF_Number* AsNumber();83 virtual const CPDF_Number* AsNumber() const;
119 return obj1->AsNumber()->IsInteger() == obj2->AsNumber()->IsInteger() && in Equal()348 EXPECT_EQ(m_DirectObjs[i].get(), m_DirectObjs[i]->AsNumber()); in TEST_F()351 EXPECT_EQ(nullptr, m_DirectObjs[i]->AsNumber()); in TEST_F()
176 EXPECT_EQ(elems[index++], it->AsNumber()->GetInteger()); in TEST()
612 double val = expr->raw_value()->AsNumber(); in VisitLiteral()619 double val = expr->raw_value()->AsNumber(); in VisitLiteral()785 DCHECK_EQ(1.0, binop->right()->AsLiteral()->raw_value()->AsNumber()); in EmitAssignmentRhs()793 DCHECK_EQ(0.0, binop->right()->AsLiteral()->raw_value()->AsNumber()); in EmitAssignmentRhs()978 int32_t val = static_cast<int32_t>(value->raw_value()->AsNumber()); in VisitPropertyAndEmitIndex()990 binop->right()->AsLiteral()->raw_value()->AsNumber())); in VisitPropertyAndEmitIndex()1254 float val = static_cast<float>(literal->raw_value()->AsNumber()); in VisitStdlibFunction()1404 if (static_cast<int32_t>(right->raw_value()->AsNumber()) == val) { in MatchIntBinaryOperation()1418 if (right->raw_value()->AsNumber() == val) { in MatchDoubleBinaryOperation()
718 right_as_literal->raw_value()->AsNumber() == 1.0; in IsDoubleAnnotation()732 right_as_literal->raw_value()->AsNumber() == 0.0; in IsIntAnnotation()1543 right_as_literal->raw_value()->AsNumber() == -1.0; in IsInvert()1558 right_as_literal->raw_value()->AsNumber() == -1.0; in IsUnaryMinus()
943 : ComputeLongHash(double_to_uint64(raw_value()->AsNumber())); in Hash()952 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); in Match()
175 double AsNumber() const { in AsNumber() function
321 double x_val = (*x)->AsLiteral()->raw_value()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()322 double y_val = y->AsLiteral()->raw_value()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()397 double value = literal->AsNumber(); in BuildUnaryExpression()