Home
last modified time | relevance | path

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

123

/external/v8/test/cctest/wasm/
Dtest-run-wasm-js.cc93 Handle<Object> buffer[] = {isolate->factory()->NewNumber(a), in EXPECT_CALL()
94 isolate->factory()->NewNumber(b)}; in EXPECT_CALL()
226 isolate->factory()->NewNumber(inputs.arg_d(0)), in RunWASMSelectTest()
227 isolate->factory()->NewNumber(inputs.arg_d(1)), in RunWASMSelectTest()
228 isolate->factory()->NewNumber(inputs.arg_d(2)), in RunWASMSelectTest()
229 isolate->factory()->NewNumber(inputs.arg_d(3)), in RunWASMSelectTest()
230 isolate->factory()->NewNumber(inputs.arg_d(4)), in RunWASMSelectTest()
231 isolate->factory()->NewNumber(inputs.arg_d(5)), in RunWASMSelectTest()
232 isolate->factory()->NewNumber(inputs.arg_d(6)), in RunWASMSelectTest()
233 isolate->factory()->NewNumber(inputs.arg_d(7)), in RunWASMSelectTest()
[all …]
/external/v8/src/runtime/
Druntime-maths.cc23 return *isolate->factory()->NewNumber(signed32); in RUNTIME_FUNCTION()
34 return *isolate->factory()->NewNumber(signed32); in RUNTIME_FUNCTION()
51 return *isolate->factory()->NewNumber(power_double_int(x, y)); in RUNTIME_FUNCTION()
57 return *isolate->factory()->NewNumber(result); in RUNTIME_FUNCTION()
75 return *isolate->factory()->NewNumber(result); in RUNTIME_FUNCTION()
Druntime-date.cc36 return *isolate->factory()->NewNumber(JSDate::CurrentTimeValue(isolate)); in RUNTIME_FUNCTION()
Druntime-simd.cc241 FUNCTION(Float32x4, float, 4, NewNumber, GET_NUMERIC_ARG) \
242 FUNCTION(Int32x4, int32_t, 4, NewNumber, GET_NUMERIC_ARG) \
243 FUNCTION(Uint32x4, uint32_t, 4, NewNumber, GET_NUMERIC_ARG) \
245 FUNCTION(Int16x8, int16_t, 8, NewNumber, GET_NUMERIC_ARG) \
246 FUNCTION(Uint16x8, uint16_t, 8, NewNumber, GET_NUMERIC_ARG) \
248 FUNCTION(Int8x16, int8_t, 16, NewNumber, GET_NUMERIC_ARG) \
249 FUNCTION(Uint8x16, uint8_t, 16, NewNumber, GET_NUMERIC_ARG) \
Druntime-numbers.cc141 return *isolate->factory()->NewNumber(value); in RUNTIME_FUNCTION()
155 return *isolate->factory()->NewNumber(value); in RUNTIME_FUNCTION()
Druntime-typedarray.cc556 DATA_VIEW_GETTER(Float32, float, NewNumber)
557 DATA_VIEW_GETTER(Float64, double, NewNumber)
Druntime-atomics.cc181 return *isolate->factory()->NewNumber(t); in ToObject()
186 return *isolate->factory()->NewNumber(t); in ToObject()
Druntime-i18n.cc137 factory->NewNumber(i), NONE)); in RUNTIME_FUNCTION()
509 return *isolate->factory()->NewNumber(result.getDouble()); in RUNTIME_FUNCTION()
513 return *isolate->factory()->NewNumber( in RUNTIME_FUNCTION()
/external/v8/test/cctest/
Dtest-types.cc303 CHECK(T.Constant(fac->NewNumber(0))->Is(T.UnsignedSmall)); in Constant()
304 CHECK(T.Constant(fac->NewNumber(1))->Is(T.UnsignedSmall)); in Constant()
305 CHECK(T.Constant(fac->NewNumber(0x3fffffff))->Is(T.UnsignedSmall)); in Constant()
306 CHECK(T.Constant(fac->NewNumber(-1))->Is(T.Negative31)); in Constant()
307 CHECK(T.Constant(fac->NewNumber(-0x3fffffff))->Is(T.Negative31)); in Constant()
308 CHECK(T.Constant(fac->NewNumber(-0x40000000))->Is(T.Negative31)); in Constant()
309 CHECK(T.Constant(fac->NewNumber(0x40000000))->Is(T.Unsigned31)); in Constant()
310 CHECK(!T.Constant(fac->NewNumber(0x40000000))->Is(T.Unsigned30)); in Constant()
311 CHECK(T.Constant(fac->NewNumber(0x7fffffff))->Is(T.Unsigned31)); in Constant()
312 CHECK(!T.Constant(fac->NewNumber(0x7fffffff))->Is(T.Unsigned30)); in Constant()
[all …]
Dtypes-fuzz.h94 integers.push_back(isolate->factory()->NewNumber(-V8_INFINITY)); in Types()
95 integers.push_back(isolate->factory()->NewNumber(+V8_INFINITY)); in Types()
96 integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); in Types()
97 integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); in Types()
100 integers.push_back(isolate->factory()->NewNumber(x)); in Types()
102 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/unittests/interpreter/
Dconstant-array-builder-unittest.cc236 CHECK_EQ(builder.Insert(isolate()->factory()->NewNumber(i)), i); in TEST_F()
238 CHECK_EQ(builder.Insert(isolate()->factory()->NewNumber(256)), 256); in TEST_F()
264 isolate()->factory()->NewNumber(1)), in TEST_F()
267 isolate()->factory()->NewNumber(2)), in TEST_F()
270 isolate()->factory()->NewNumber(3)), in TEST_F()
278 expected = isolate()->factory()->NewNumber(count++); in TEST_F()
/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-typed-lowering-unittest.cc134 Type::Constant(factory()->NewNumber(0), zone()), zone()))); in TEST_F()
160 Handle<Object> constant = factory()->NewNumber(nan); in TEST_F()
181 Handle<Object> constant = factory()->NewNumber(value); in TEST_F()
Djs-type-feedback-unittest.cc68 SetGlobalProperty(string, isolate()->factory()->NewNumber(value)); in SetGlobalProperty()
/external/v8/src/ast/
Dast-value-factory.cc184 value_ = isolate->factory()->NewNumber(number_, TENURED); in Internalize()
298 const AstValue* AstValueFactory::NewNumber(double number, bool with_dot) { in NewNumber() function in v8::internal::AstValueFactory
Dast-value-factory.h337 const AstValue* NewNumber(double number, bool with_dot = false);
/external/v8/test/cctest/compiler/
Dtest-run-bytecode-graph-builder.cc203 {"return 0.001;", {factory->NewNumber(0.001)}}, in TEST()
204 {"return 3.7e-60;", {factory->NewNumber(3.7e-60)}}, in TEST()
205 {"return -3.7e60;", {factory->NewNumber(-3.7e60)}}, in TEST()
1048 {"return x;", {factory->NewNumber(12)}}, in TEST()
1049 {"return obj.val;", {factory->NewNumber(3.1414)}}, in TEST()
1053 {"x = 23; return x;", {factory->NewNumber(23)}}, in TEST()
1055 {factory->NewNumber(23.456)}}}; in TEST()
1092 {factory->NewNumber(12)}}, in TEST()
1096 {factory->NewNumber(23)}}, in TEST()
1098 {factory->NewNumber(23.456)}}}; in TEST()
[all …]
Dfunction-tester.h176 return isolate->factory()->NewNumber(value); in Val()
/external/v8/test/cctest/interpreter/
Dtest-interpreter.cc287 factory->NewNumber(BinaryOpC(kShiftOperators[o], lhs, rhs)); in TEST()
320 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs)); in TEST()
342 builder.LoadLiteral(factory->NewNumber(lhs)) in TEST()
344 .LoadLiteral(factory->NewNumber(rhs)) in TEST()
353 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs)); in TEST()
1062 builder.LoadLiteral(handles.main_isolate()->factory()->NewNumber(i)); in TEST()
1111 builder.LoadLiteral(handles.main_isolate()->factory()->NewNumber(i)); in TEST()
1313 builder.LoadLiteral(factory->NewNumber(lhs)) in TEST()
1322 .LoadLiteral(factory->NewNumber(rhs)) in TEST()
1360 Handle<Object> lhs_obj = factory->NewNumber(lhs); in TEST()
[all …]
/external/v8/src/
Dfactory.h358 Handle<Object> NewNumber(double value,
373 return NewNumber(static_cast<double>(value), pretenure);
Djson-parser.cc53 Handle<Object> index = isolate_->factory()->NewNumber(i); in InternalizeJsonProperty()
579 return factory()->NewNumber(number, pretenure_); in ParseJsonNumber()
/external/v8/src/compiler/
Dcode-generator.cc762 constant_object = isolate()->factory()->NewNumber(constant.ToFloat32()); in AddTranslationForOperand()
767 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); in AddTranslationForOperand()
/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()
1915 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); in AssembleMove()
1921 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); in AssembleMove()
/external/v8/src/compiler/arm/
Dcode-generator-arm.cc50 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); in InputImmediate()
53 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); in InputImmediate()
1592 isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); in AssembleMove()
1596 isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); in AssembleMove()

123