/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/src/compiler/ |
D | js-builtin-reducer.cc | 99 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 …]
|
D | typer.cc | 243 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 …]
|
D | operation-typer.cc | 267 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()
|
D | js-builtin-reducer.h | 58 Node* ToNumber(Node* value);
|
D | operation-typer.h | 32 Type* ToNumber(Type* type);
|
D | simplified-lowering.cc | 369 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 …]
|
D | js-graph.cc | 29 HeapConstant(isolate()->builtins()->ToNumber())); in ToNumberBuiltinConstant()
|
/external/v8/test/cctest/interpreter/bytecode_expectations/ |
D | CountOperators.golden | 41 /* 45 S> */ B(ToNumber), 84 /* 45 S> */ B(ToNumber), 109 B(ToNumber), 163 B(ToNumber), 246 B(ToNumber), 273 B(ToNumber),
|
D | GlobalCountOperators.golden | 45 B(ToNumber), 92 B(ToNumber),
|
D | AssignmentsInBinaryExpression.golden | 115 /* 75 S> */ B(ToNumber), 261 B(ToNumber),
|
/external/v8/src/ |
D | builtins.cc | 2248 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 …]
|
D | code-factory.cc | 148 Callable CodeFactory::ToNumber(Isolate* isolate) { in ToNumber() function in v8::internal::CodeFactory 149 return Callable(isolate->builtins()->ToNumber(), in ToNumber()
|
D | code-factory.h | 70 static Callable ToNumber(Isolate* isolate);
|
/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()
|
/external/v8/test/cctest/compiler/ |
D | test-js-typed-lowering.cc | 412 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()
|
D | test-linkage.cc | 101 Callable callable = CodeFactory::ToNumber(isolate); in TEST()
|
/external/v8/src/interpreter/ |
D | interpreter-intrinsics.h | 46 V(ToNumber, to_number, 1) \
|
D | interpreter-intrinsics.cc | 288 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/ |
D | js-operator-unittest.cc | 43 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
|
D | control-flow-optimizer-unittest.cc | 71 Node* index = graph()->NewNode(javascript()->ToNumber(), input, context, in TEST_F()
|
/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/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/src/runtime/ |
D | runtime-numbers.cc | 113 return *String::ToNumber(subject); in RUNTIME_FUNCTION()
|
/external/v8/test/cctest/ |
D | test-serialize.cc | 558 ->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()
|