/external/v8/test/mjsunit/harmony/ |
D | to-number.js | 7 assertEquals(1, %ToNumber(1)); 10 assertEquals(.5, %ToNumber(.5)); 13 assertEquals(0, %ToNumber(null)); 16 assertEquals(1, %ToNumber(true)); 19 assertEquals(0, %ToNumber(false)); 22 assertEquals(NaN, %ToNumber(undefined)); 25 assertEquals(-1, %ToNumber("-1")); 27 assertEquals(123, %ToNumber("123")); 29 assertEquals(NaN, %ToNumber("random text")); 32 assertThrows(function() { %ToNumber(Symbol.toPrimitive) }, TypeError); [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-seqstrsetchar-ex1.js | 31 function ToNumber(x) { class 43 if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
|
/external/v8/src/ |
D | builtins.cc | 2234 Object::ToNumber(value)); in BUILTIN() 2241 Object::ToNumber(args.at<Object>(1))); in BUILTIN() 2244 Object::ToNumber(args.at<Object>(2))); in BUILTIN() 2251 Object::ToNumber(args.at<Object>(3))); in BUILTIN() 2256 isolate, hours_object, Object::ToNumber(args.at<Object>(4))); in BUILTIN() 2261 isolate, minutes_object, Object::ToNumber(args.at<Object>(5))); in BUILTIN() 2266 isolate, seconds_object, Object::ToNumber(args.at<Object>(6))); in BUILTIN() 2271 isolate, ms_object, Object::ToNumber(args.at<Object>(7))); in BUILTIN() 2327 Object::ToNumber(args.at<Object>(1))); in BUILTIN() 2332 Object::ToNumber(args.at<Object>(2))); in BUILTIN() [all …]
|
D | code-factory.h | 71 static Callable ToNumber(Isolate* isolate);
|
D | code-factory.cc | 158 Callable CodeFactory::ToNumber(Isolate* isolate) { in ToNumber() function in v8::internal::CodeFactory
|
D | objects.cc | 124 MaybeHandle<Object> Object::ToNumber(Handle<Object> input) { in ToNumber() function in v8::internal::Object 130 return String::ToNumber(Handle<String>::cast(input)); in ToNumber() 133 return Oddball::ToNumber(Handle<Oddball>::cast(input)); in ToNumber() 154 ASSIGN_RETURN_ON_EXCEPTION(isolate, input, ToNumber(input), Object); in ToInteger() 161 ASSIGN_RETURN_ON_EXCEPTION(isolate, input, ToNumber(input), Object); in ToInt32() 168 ASSIGN_RETURN_ON_EXCEPTION(isolate, input, ToNumber(input), Object); in ToUint32() 202 ASSIGN_RETURN_ON_EXCEPTION(isolate, input, ToNumber(input), Object); in ToLength() 278 if (!Object::ToNumber(x).ToHandle(&x) || in Compare() 279 !Object::ToNumber(y).ToHandle(&y)) { in Compare() 308 return Just(NumberEquals(x, String::ToNumber(Handle<String>::cast(y)))); in Equals() [all …]
|
D | interface-descriptors.h | 28 V(ToNumber) \
|
D | json-stringifier.h | 390 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate_, value, Object::ToNumber(object), in SerializeJSValue()
|
/external/v8/src/compiler/ |
D | typer.cc | 240 static Type* ToNumber(Type*, Typer*); 414 type = ToNumber(type, t); in ToInteger() 444 Type* Typer::Visitor::ToNumber(Type* type, Typer* t) { in ToNumber() function in v8::internal::compiler::Typer::Visitor 738 lhs = ToNumber(lhs, t); in JSCompareTyper() 739 rhs = ToNumber(rhs, t); in JSCompareTyper() 792 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseOrTyper() 793 rhs = NumberToInt32(ToNumber(rhs, t), t); in JSBitwiseOrTyper() 825 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseAndTyper() 826 rhs = NumberToInt32(ToNumber(rhs, t), t); in JSBitwiseAndTyper() 851 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseXorTyper() [all …]
|
D | js-operator.h | 505 const Operator* ToNumber();
|
D | js-typed-lowering.cc | 344 javascript()->ToNumber(), node, jsgraph()->NoContextConstant(), in ConvertPlainPrimitiveToNumber() 350 Node* const n = graph()->NewNode(javascript()->ToNumber(), node, context(), in ConvertSingleInputToNumber() 370 graph()->NewNode(javascript()->ToNumber(), left(), context(), in ConvertBothInputsToNumber() 375 graph()->NewNode(javascript()->ToNumber(), right(), context(), in ConvertBothInputsToNumber() 1078 graph()->NewNode(javascript()->ToNumber(), value, context, in ReduceJSStoreProperty()
|
D | js-call-reducer.cc | 94 NodeProperties::ChangeOp(node, javascript()->ToNumber()); in ReduceNumberConstructor()
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
D | fpdf_parser_document.cpp | 77 if (ToNumber(pCount)) in LoadAsynDoc() 82 if (ToNumber(pNo)) in LoadAsynDoc() 86 if (ToNumber(pObjNum)) in LoadAsynDoc()
|
D | fpdf_parser_parser.cpp | 75 CPDF_Number* pObj = ToNumber(pDict->GetElement(key)); in GetDirectInteger() 1064 if (ToNumber(pStartNumObj) && ToNumber(pCountObj)) { in LoadCrossRefV5() 1579 if (CPDF_Number* pNo = ToNumber(pDict->GetElement("P"))) in IsLinearizedFile() 1582 if (CPDF_Number* pTable = ToNumber(pDict->GetElement("T"))) in IsLinearizedFile() 3739 if (CPDF_Number* pNo = ToNumber(pDict->GetElement("P"))) in IsLinearizedFile()
|
/external/v8/test/cctest/compiler/ |
D | test-js-typed-lowering.cc | 167 if (OperatorProperties::GetFrameStateInputCount(javascript.ToNumber()) > in UseForEffect() 170 javascript.ToNumber())); in UseForEffect() 171 return graph.NewNode(javascript.ToNumber(), node, context(), in UseForEffect() 174 return graph.NewNode(javascript.ToNumber(), node, context(), node, in UseForEffect() 445 const Operator* ton = R.javascript.ToNumber(); in TEST() 472 R.graph.NewNode(R.javascript.ToNumber(), n, R.context(), in TEST() 503 Node* convert = R.Unop(R.javascript.ToNumber(), n); in TEST() 528 Node* r = R.ReduceUnop(R.javascript.ToNumber(), t); in TEST() 727 Node* ton = R.Unop(R.javascript.ToNumber(), p0); in TEST_WITH_STRONG() 734 R.javascript.ToNumber())); in TEST_WITH_STRONG() [all …]
|
/external/v8/src/runtime/ |
D | runtime-numbers.cc | 113 return *String::ToNumber(subject); in RUNTIME_FUNCTION() 182 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, input, Object::ToNumber(input)); in RUNTIME_FUNCTION()
|
D | runtime-i18n.cc | 355 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, value, Object::ToNumber(date)); in RUNTIME_FUNCTION() 449 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, value, Object::ToNumber(number)); in RUNTIME_FUNCTION()
|
/external/v8/test/cctest/interpreter/ |
D | test-bytecode-generator.cc | 2244 B(ToNumber), // in TEST() 2257 B(ToNumber), // in TEST() 2262 B(ToNumber), // in TEST() 2837 B(ToNumber), // in TEST() 2887 B(ToNumber), // in TEST() 2953 B(ToNumber), // in TEST() 4633 B(ToNumber), // in TEST() 4645 B(ToNumber), // in TEST() 4659 B(ToNumber), // in TEST() 4671 B(ToNumber), // in TEST() [all …]
|
/external/pdfium/core/src/fpdfdoc/ |
D | doc_tagged.cpp | 423 return ToNumber(pAttr) ? pAttr->GetNumber() : default_value; in GetNumber() 431 return ToNumber(pAttr) ? pAttr->GetInteger() : default_value; in GetInteger()
|
/external/v8/test/unittests/compiler/ |
D | control-flow-optimizer-unittest.cc | 71 Node* index = graph()->NewNode(javascript()->ToNumber(), input, context, in TEST_F()
|
D | js-operator-unittest.cc | 74 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
|
/external/pdfium/core/include/fpdfapi/ |
D | fpdf_objects.h | 203 inline CPDF_Number* ToNumber(CPDF_Object* obj) { in ToNumber() function 206 inline const CPDF_Number* ToNumber(const CPDF_Object* obj) { in ToNumber() function
|
/external/v8/test/cctest/ |
D | test-serialize.cc | 638 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_DEPENDENT_TEST() 643 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_DEPENDENT_TEST() 649 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_DEPENDENT_TEST() 660 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_DEPENDENT_TEST() 666 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_DEPENDENT_TEST()
|
/external/v8/test/webkit/ |
D | ToNumber-expected.txt | 24 Test the JavaScript ToNumber operation.
|
/external/v8/src/interpreter/ |
D | bytecodes.h | 173 V(ToNumber, OperandType::kNone) \
|