Home
last modified time | relevance | path

Searched refs:NewNumber (Results 1 – 25 of 51) sorted by relevance

123

/external/v8/src/runtime/
Druntime-maths.cc40 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 …]
Druntime-numbers.cc141 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()
Druntime-date.cc36 return *isolate->factory()->NewNumber(JSDate::CurrentTimeValue(isolate)); in RUNTIME_FUNCTION()
Druntime-simd.cc268 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) \
Druntime-i18n.cc116 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()
Druntime-typedarray.cc584 DATA_VIEW_GETTER(Float32, float, NewNumber)
585 DATA_VIEW_GETTER(Float64, double, NewNumber)
Druntime-atomics.cc198 return *isolate->factory()->NewNumber(t); in ToObject()
203 return *isolate->factory()->NewNumber(t); in ToObject()
/external/v8/test/unittests/runtime/
Druntime-interpreter-unittest.cc57 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/
Dtest-types.cc371 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 …]
Dtypes-fuzz.h95 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()
Dtest-elements-kind.cc294 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/
Dtest-changes-lowering.cc82 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()
Dtest-run-bytecode-graph-builder.cc201 {"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 …]
Dfunction-tester.h148 return isolate->factory()->NewNumber(value); in Val()
/external/v8/test/cctest/wasm/
Dtest-run-wasm-js.cc55 Handle<Object> buffer[] = {isolate->factory()->NewNumber(a), in EXPECT_CALL()
56 isolate->factory()->NewNumber(b)}; in EXPECT_CALL()
/external/v8/test/unittests/compiler/
Dtyper-unittest.cc139 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()
Djs-type-feedback-unittest.cc68 SetGlobalProperty(string, isolate()->factory()->NewNumber(value)); in SetGlobalProperty()
/external/v8/src/ast/
Dast-value-factory.cc182 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
Dast-value-factory.h334 const AstValue* NewNumber(double number, bool with_dot = false);
/external/v8/test/cctest/interpreter/
Dtest-interpreter.cc560 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/
Dcode-generator-arm.cc73 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/
Dfactory.h337 Handle<Object> NewNumber(double value,
352 return NewNumber(static_cast<double>(value), pretenure);
/external/v8/src/compiler/
Dcode-generator.cc682 constant_object = isolate()->factory()->NewNumber(constant.ToFloat32()); in AddTranslationForOperand()
687 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); in AddTranslationForOperand()
/external/v8/src/compiler/ppc/
Dcode-generator-ppc.cc65 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/
Dcode-generator-mips.cc76 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()

123