Home
last modified time | relevance | path

Searched refs:AsNumber (Results 1 – 11 of 11) sorted by relevance

/external/pdfium/core/fpdfapi/parser/
Dcpdf_number.h32 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()
Dcpdf_number.cpp42 CPDF_Number* CPDF_Number::AsNumber() { in AsNumber() function in CPDF_Number
46 const CPDF_Number* CPDF_Number::AsNumber() const { in AsNumber() function in CPDF_Number
Dcpdf_object.cpp129 CPDF_Number* CPDF_Object::AsNumber() { in AsNumber() function in CPDF_Object
133 const CPDF_Number* CPDF_Object::AsNumber() const { in AsNumber() function in CPDF_Object
Dcpdf_object.h82 virtual CPDF_Number* AsNumber();
83 virtual const CPDF_Number* AsNumber() const;
Dcpdf_object_unittest.cpp119 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()
Dcpdf_array_unittest.cpp176 EXPECT_EQ(elems[index++], it->AsNumber()->GetInteger()); in TEST()
/external/v8/src/asmjs/
Dasm-wasm-builder.cc612 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()
Dasm-typer.cc718 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()
/external/v8/src/ast/
Dast.cc943 : ComputeLongHash(double_to_uint64(raw_value()->AsNumber())); in Hash()
952 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); in Match()
Dast-value-factory.h175 double AsNumber() const { in AsNumber() function
/external/v8/src/parsing/
Dparser.cc321 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()