Home
last modified time | relevance | path

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

1234

/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/src/compiler/
Djs-builtin-reducer.cc99 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathAbs()
111 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathAtan()
125 Node* left = ToNumber(r.left()); in ReduceMathAtan2()
126 Node* right = ToNumber(r.right()); in ReduceMathAtan2()
149 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathCeil()
173 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathCos()
185 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathExp()
208 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathFloor()
220 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathFround()
247 Node* input = ToNumber(r.GetJSCallInput(0)); in ReduceMathLog()
[all …]
Dtyper.cc243 static Type* ToNumber(Type*, Typer*);
405 type = ToNumber(type, t); in ToInteger()
440 Type* Typer::Visitor::ToNumber(Type* type, Typer* t) { in ToNumber() function in v8::internal::compiler::Typer::Visitor
833 lhs = ToNumber(lhs, t); in JSCompareTyper()
834 rhs = ToNumber(rhs, t); in JSCompareTyper()
886 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseOrTyper()
887 rhs = NumberToInt32(ToNumber(rhs, t), t); in JSBitwiseOrTyper()
918 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseAndTyper()
919 rhs = NumberToInt32(ToNumber(rhs, t), t); in JSBitwiseAndTyper()
944 lhs = NumberToInt32(ToNumber(lhs, t), t); in JSBitwiseXorTyper()
[all …]
Doperation-typer.cc267 Type* OperationTyper::ToNumber(Type* type) { in ToNumber() function in v8::internal::compiler::OperationTyper
413 lhs = ToNumber(lhs); in TypeJSAdd()
414 rhs = ToNumber(rhs); in TypeJSAdd()
419 return NumericSubtract(ToNumber(lhs), ToNumber(rhs)); in TypeJSSubtract()
Djs-builtin-reducer.h58 Node* ToNumber(Node* value);
Doperation-typer.h32 Type* ToNumber(Type* type);
Dsimplified-lowering.cc369 lhs = op_typer_.ToNumber(lhs); in UpdateFeedbackType()
370 rhs = op_typer_.ToNumber(rhs); in UpdateFeedbackType()
389 lhs = op_typer_.ToNumber(lhs); in UpdateFeedbackType()
390 rhs = op_typer_.ToNumber(rhs); in UpdateFeedbackType()
409 lhs = op_typer_.ToNumber(lhs); in UpdateFeedbackType()
410 rhs = op_typer_.ToNumber(rhs); in UpdateFeedbackType()
429 lhs = op_typer_.ToNumber(lhs); in UpdateFeedbackType()
430 rhs = op_typer_.ToNumber(rhs); in UpdateFeedbackType()
449 lhs = op_typer_.ToNumber(lhs); in UpdateFeedbackType()
450 rhs = op_typer_.ToNumber(rhs); in UpdateFeedbackType()
[all …]
Djs-graph.cc29 HeapConstant(isolate()->builtins()->ToNumber())); in ToNumberBuiltinConstant()
/external/v8/test/cctest/interpreter/bytecode_expectations/
DCountOperators.golden41 /* 45 S> */ B(ToNumber),
84 /* 45 S> */ B(ToNumber),
109 B(ToNumber),
163 B(ToNumber),
246 B(ToNumber),
273 B(ToNumber),
DGlobalCountOperators.golden45 B(ToNumber),
92 B(ToNumber),
DAssignmentsInBinaryExpression.golden115 /* 75 S> */ B(ToNumber),
261 B(ToNumber),
/external/v8/src/
Dbuiltins.cc2248 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, x, Object::ToNumber(x)); in BUILTIN()
2258 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, x, Object::ToNumber(x)); in BUILTIN()
2482 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, x, Object::ToNumber(x)); in BUILTIN()
2493 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, x, Object::ToNumber(x)); in BUILTIN()
2494 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, y, Object::ToNumber(y)); in BUILTIN()
3099 Object::ToNumber(byte_offset)); in BUILTIN()
3506 Object::ToNumber(value)); in BUILTIN()
3513 Object::ToNumber(args.at<Object>(1))); in BUILTIN()
3516 Object::ToNumber(args.at<Object>(2))); in BUILTIN()
3523 Object::ToNumber(args.at<Object>(3))); in BUILTIN()
[all …]
Dcode-factory.cc148 Callable CodeFactory::ToNumber(Isolate* isolate) { in ToNumber() function in v8::internal::CodeFactory
149 return Callable(isolate->builtins()->ToNumber(), in ToNumber()
Dcode-factory.h70 static Callable ToNumber(Isolate* isolate);
/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()
/external/v8/test/cctest/compiler/
Dtest-js-typed-lowering.cc412 const Operator* ton = R.javascript.ToNumber(); in TEST()
439 R.graph.NewNode(R.javascript.ToNumber(), n, R.context(), in TEST()
470 Node* convert = R.Unop(R.javascript.ToNumber(), n); in TEST()
495 Node* r = R.ReduceUnop(R.javascript.ToNumber(), t); in TEST()
693 Node* ton = R.Unop(R.javascript.ToNumber(), p0); in TEST()
700 R.javascript.ToNumber())); in TEST()
701 effect_use = R.graph.NewNode(R.javascript.ToNumber(), p0, R.context(), in TEST()
706 R.javascript.ToNumber())); in TEST()
707 effect_use = R.graph.NewNode(R.javascript.ToNumber(), ton, R.context(), in TEST()
Dtest-linkage.cc101 Callable callable = CodeFactory::ToNumber(isolate); in TEST()
/external/v8/src/interpreter/
Dinterpreter-intrinsics.h46 V(ToNumber, to_number, 1) \
Dinterpreter-intrinsics.cc288 Node* IntrinsicsHelper::ToNumber(Node* input, Node* arg_count, Node* context) { in ToNumber() function in v8::internal::interpreter::IntrinsicsHelper
289 return IntrinsicAsStubCall(input, context, CodeFactory::ToNumber(isolate())); in ToNumber()
/external/v8/test/unittests/compiler/
Djs-operator-unittest.cc43 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
Dcontrol-flow-optimizer-unittest.cc71 Node* index = graph()->NewNode(javascript()->ToNumber(), input, context, in TEST_F()
/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/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/src/runtime/
Druntime-numbers.cc113 return *String::ToNumber(subject); in RUNTIME_FUNCTION()
/external/v8/test/cctest/
Dtest-serialize.cc558 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
564 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
569 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
574 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
580 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
591 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()
597 ->ToNumber(v8_isolate->GetCurrentContext()) in UNINITIALIZED_TEST()

1234