Home
last modified time | relevance | path

Searched refs:ToNumber (Results 1 – 25 of 57) sorted by relevance

123

/external/v8/test/mjsunit/harmony/
Dto-number.js7 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/
Dregress-seqstrsetchar-ex1.js31 function ToNumber(x) { class
43 if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
/external/v8/src/
Dbuiltins.cc2234 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 …]
Dcode-factory.h71 static Callable ToNumber(Isolate* isolate);
Dcode-factory.cc158 Callable CodeFactory::ToNumber(Isolate* isolate) { in ToNumber() function in v8::internal::CodeFactory
Dobjects.cc124 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 …]
Dinterface-descriptors.h28 V(ToNumber) \
Djson-stringifier.h390 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate_, value, Object::ToNumber(object), in SerializeJSValue()
/external/v8/src/compiler/
Dtyper.cc240 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 …]
Djs-operator.h505 const Operator* ToNumber();
Djs-typed-lowering.cc344 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()
Djs-call-reducer.cc94 NodeProperties::ChangeOp(node, javascript()->ToNumber()); in ReduceNumberConstructor()
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_document.cpp77 if (ToNumber(pCount)) in LoadAsynDoc()
82 if (ToNumber(pNo)) in LoadAsynDoc()
86 if (ToNumber(pObjNum)) in LoadAsynDoc()
Dfpdf_parser_parser.cpp75 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/
Dtest-js-typed-lowering.cc167 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/
Druntime-numbers.cc113 return *String::ToNumber(subject); in RUNTIME_FUNCTION()
182 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, input, Object::ToNumber(input)); in RUNTIME_FUNCTION()
Druntime-i18n.cc355 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/
Dtest-bytecode-generator.cc2244 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/
Ddoc_tagged.cpp423 return ToNumber(pAttr) ? pAttr->GetNumber() : default_value; in GetNumber()
431 return ToNumber(pAttr) ? pAttr->GetInteger() : default_value; in GetInteger()
/external/v8/test/unittests/compiler/
Dcontrol-flow-optimizer-unittest.cc71 Node* index = graph()->NewNode(javascript()->ToNumber(), input, context, in TEST_F()
Djs-operator-unittest.cc74 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
/external/pdfium/core/include/fpdfapi/
Dfpdf_objects.h203 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/
Dtest-serialize.cc638 ->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/
DToNumber-expected.txt24 Test the JavaScript ToNumber operation.
/external/v8/src/interpreter/
Dbytecodes.h173 V(ToNumber, OperandType::kNone) \

123