/external/v8/src/runtime/ |
D | runtime-maths.cc | 40 return *isolate->factory()->NewNumber(signed32); in RUNTIME_UNARY_MATH() 51 return *isolate->factory()->NewNumber(signed32); in RUNTIME_FUNCTION() 61 return *isolate->factory()->NewNumber(uint64_to_double(result)); in RUNTIME_FUNCTION() 100 return *isolate->factory()->NewNumber(result); in RUNTIME_FUNCTION() 111 return *isolate->factory()->NewNumber(fast_exp(x, isolate)); in RUNTIME_FUNCTION() 132 return *isolate->factory()->NewNumber(Floor(x)); in RUNTIME_FUNCTION() 149 return *isolate->factory()->NewNumber(power_double_int(x, y)); in RUNTIME_FUNCTION() 155 return *isolate->factory()->NewNumber(result); in RUNTIME_FUNCTION() 173 return *isolate->factory()->NewNumber(result); in RUNTIME_FUNCTION() 217 return *isolate->factory()->NewNumber(Floor(value + 0.5)); in RUNTIME_FUNCTION() [all …]
|
D | runtime-numbers.cc | 141 return *isolate->factory()->NewNumber(value); in RUNTIME_FUNCTION() 155 return *isolate->factory()->NewNumber(value); in RUNTIME_FUNCTION() 187 return *isolate->factory()->NewNumber(double_value); in RUNTIME_FUNCTION()
|
D | runtime-date.cc | 36 return *isolate->factory()->NewNumber(JSDate::CurrentTimeValue(isolate)); in RUNTIME_FUNCTION()
|
D | runtime-simd.cc | 268 FUNCTION(Float32x4, float, 4, NewNumber, GET_NUMERIC_ARG) \ 269 FUNCTION(Int32x4, int32_t, 4, NewNumber, GET_NUMERIC_ARG) \ 270 FUNCTION(Uint32x4, uint32_t, 4, NewNumber, GET_NUMERIC_ARG) \ 272 FUNCTION(Int16x8, int16_t, 8, NewNumber, GET_NUMERIC_ARG) \ 273 FUNCTION(Uint16x8, uint16_t, 8, NewNumber, GET_NUMERIC_ARG) \ 275 FUNCTION(Int8x16, int8_t, 16, NewNumber, GET_NUMERIC_ARG) \ 276 FUNCTION(Uint8x16, uint8_t, 16, NewNumber, GET_NUMERIC_ARG) \
|
D | runtime-i18n.cc | 116 factory->NewNumber(i), NONE)); in RUNTIME_FUNCTION() 497 return *isolate->factory()->NewNumber(result.getDouble()); in RUNTIME_FUNCTION() 501 return *isolate->factory()->NewNumber( in RUNTIME_FUNCTION()
|
D | runtime-typedarray.cc | 584 DATA_VIEW_GETTER(Float32, float, NewNumber) 585 DATA_VIEW_GETTER(Float64, double, NewNumber)
|
D | runtime-atomics.cc | 198 return *isolate->factory()->NewNumber(t); in ToObject() 203 return *isolate->factory()->NewNumber(t); in ToObject()
|
/external/v8/test/unittests/runtime/ |
D | runtime-interpreter-unittest.cc | 57 Handle<Object> x = isolate()->factory()->NewNumber(lhs); in TestOperator() 58 Handle<Object> y = isolate()->factory()->NewNumber(rhs); in TestOperator() 147 std::make_pair(isolate()->factory()->NewNumber(7.7), true), in TEST_F() 148 std::make_pair(isolate()->factory()->NewNumber(0.00001), true), in TEST_F() 149 std::make_pair(isolate()->factory()->NewNumber(quiet_nan), false), in TEST_F()
|
/external/v8/test/cctest/ |
D | test-types.cc | 371 CHECK(T.Constant(fac->NewNumber(0))->Is(T.UnsignedSmall)); in Constant() 372 CHECK(T.Constant(fac->NewNumber(1))->Is(T.UnsignedSmall)); in Constant() 373 CHECK(T.Constant(fac->NewNumber(0x3fffffff))->Is(T.UnsignedSmall)); in Constant() 374 CHECK(T.Constant(fac->NewNumber(-1))->Is(T.Negative31)); in Constant() 375 CHECK(T.Constant(fac->NewNumber(-0x3fffffff))->Is(T.Negative31)); in Constant() 376 CHECK(T.Constant(fac->NewNumber(-0x40000000))->Is(T.Negative31)); in Constant() 377 CHECK(T.Constant(fac->NewNumber(0x40000000))->Is(T.Unsigned31)); in Constant() 378 CHECK(!T.Constant(fac->NewNumber(0x40000000))->Is(T.Unsigned30)); in Constant() 379 CHECK(T.Constant(fac->NewNumber(0x7fffffff))->Is(T.Unsigned31)); in Constant() 380 CHECK(!T.Constant(fac->NewNumber(0x7fffffff))->Is(T.Unsigned30)); in Constant() [all …]
|
D | types-fuzz.h | 95 integers.push_back(isolate->factory()->NewNumber(-V8_INFINITY)); in Types() 96 integers.push_back(isolate->factory()->NewNumber(+V8_INFINITY)); in Types() 97 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); in Types() 98 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); in Types() 101 integers.push_back(isolate->factory()->NewNumber(x)); in Types() 103 if (!IsMinusZero(x)) integers.push_back(isolate->factory()->NewNumber(x)); in Types()
|
D | test-elements-kind.cc | 294 Handle<Object> value_double = factory->NewNumber(3.1415); in TEST() 417 Handle<Object> value_double = factory->NewNumber(3.1415); in TEST()
|
/external/v8/test/cctest/compiler/ |
D | test-changes-lowering.cc | 82 CHECK(this->isolate()->factory()->NewNumber(expected)->SameValue(number)); in CheckNumber() 160 Handle<Object> number = t.factory()->NewNumber(input); in TEST() 188 Handle<Object> number = t.factory()->NewNumber(input); in TEST() 221 Handle<Object> number = t.factory()->NewNumber(input); in TEST() 238 Handle<Object> number = t.factory()->NewNumber(input); in TEST()
|
D | test-run-bytecode-graph-builder.cc | 201 {"return 0.001;", {factory->NewNumber(0.001)}}, in TEST() 202 {"return 3.7e-60;", {factory->NewNumber(3.7e-60)}}, in TEST() 203 {"return -3.7e60;", {factory->NewNumber(-3.7e60)}}, in TEST() 1039 {"return x;", {factory->NewNumber(12)}}, in TEST() 1040 {"return obj.val;", {factory->NewNumber(3.1414)}}, in TEST() 1044 {"x = 23; return x;", {factory->NewNumber(23)}}, in TEST() 1046 {factory->NewNumber(23.456)}}}; in TEST() 1084 {factory->NewNumber(12)}}, in TEST() 1088 {factory->NewNumber(23)}}, in TEST() 1090 {factory->NewNumber(23.456)}}}; in TEST() [all …]
|
D | function-tester.h | 148 return isolate->factory()->NewNumber(value); in Val()
|
/external/v8/test/cctest/wasm/ |
D | test-run-wasm-js.cc | 55 Handle<Object> buffer[] = {isolate->factory()->NewNumber(a), in EXPECT_CALL() 56 isolate->factory()->NewNumber(b)}; in EXPECT_CALL()
|
/external/v8/test/unittests/compiler/ |
D | typer-unittest.cc | 139 isolate()->factory()->NewNumber(result_value), zone()); in TestBinaryArithOpCloseToZero() 160 isolate()->factory()->NewNumber(result_value), zone()); in TestBinaryArithOp() 196 isolate()->factory()->NewNumber(result_value), zone()); in TestBinaryBitOp()
|
D | js-type-feedback-unittest.cc | 68 SetGlobalProperty(string, isolate()->factory()->NewNumber(value)); in SetGlobalProperty()
|
/external/v8/src/ast/ |
D | ast-value-factory.cc | 182 value_ = isolate->factory()->NewNumber(number_, TENURED); in Internalize() 296 const AstValue* AstValueFactory::NewNumber(double number, bool with_dot) { in NewNumber() function in v8::internal::AstValueFactory
|
D | ast-value-factory.h | 334 const AstValue* NewNumber(double number, bool with_dot = false);
|
/external/v8/test/cctest/interpreter/ |
D | test-interpreter.cc | 560 factory->NewNumber(BinaryOpC(kShiftOperators[o], lhs, rhs)); in TEST() 595 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs)); in TEST() 620 builder.LoadLiteral(factory->NewNumber(lhs)) in TEST() 622 .LoadLiteral(factory->NewNumber(rhs)) in TEST() 631 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs)); in TEST() 1529 builder.LoadLiteral(factory->NewNumber(lhs)) in TEST() 1538 .LoadLiteral(factory->NewNumber(rhs)) in TEST() 1563 Handle<i::Object> other = factory->NewNumber(3.3333); in TEST() 1676 std::make_pair(factory->NewNumber(9.1), false), in TEST() 2056 std::make_pair("return 3.2, 2.3, 4.5;\n", factory->NewNumber(4.5)), in TEST() [all …]
|
/external/v8/src/compiler/arm/ |
D | code-generator-arm.cc | 73 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); in InputImmediate() 76 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); in InputImmediate() 1212 isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); in AssembleMove() 1216 isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); in AssembleMove()
|
/external/v8/src/ |
D | factory.h | 337 Handle<Object> NewNumber(double value, 352 return NewNumber(static_cast<double>(value), pretenure);
|
/external/v8/src/compiler/ |
D | code-generator.cc | 682 constant_object = isolate()->factory()->NewNumber(constant.ToFloat32()); in AddTranslationForOperand() 687 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); in AddTranslationForOperand()
|
/external/v8/src/compiler/ppc/ |
D | code-generator-ppc.cc | 65 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); in InputImmediate() 68 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); in InputImmediate() 1696 isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); in AssembleMove() 1700 isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); in AssembleMove()
|
/external/v8/src/compiler/mips/ |
D | code-generator-mips.cc | 76 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); in InputImmediate() 79 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); in InputImmediate() 1574 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); in AssembleMove() 1580 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); in AssembleMove()
|