Home
last modified time | relevance | path

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

12

/external/v8/src/
Ddate.js438 value = IS_STRING(time) ? DateParse(time) : TimeClip(ToNumber(time));
442 year = ToNumber(year);
443 month = ToNumber(month);
444 date = argc > 2 ? ToNumber(date) : 1;
445 hours = argc > 3 ? ToNumber(hours) : 0;
446 minutes = argc > 4 ? ToNumber(minutes) : 0;
447 seconds = argc > 5 ? ToNumber(seconds) : 0;
448 ms = argc > 6 ? ToNumber(ms) : 0;
552 year = ToNumber(year);
553 month = ToNumber(month);
[all …]
Druntime.js64 return %NumberEquals(x, %ToNumber(y));
67 if (IS_NUMBER(y)) return %NumberEquals(%ToNumber(x), y);
68 if (IS_BOOLEAN(y)) return %NumberEquals(%ToNumber(x), %ToNumber(y));
76 return %NumberEquals(%ToNumber(x), %ToNumber(y));
141 var left_number = %ToNumber(left);
142 var right_number = %ToNumber(right);
170 return %NumberAdd(%ToNumber(a), %ToNumber(b));
465 return %ToNumber(this);
503 function ToNumber(x) { class
511 return (IS_NULL(x)) ? 0 : ToNumber(%DefaultNumber(x));
[all …]
Djson.js166 value = ToNumber(value);
287 value = ToNumber(value);
314 space = ToNumber(space);
Dmacros.py124 macro TO_INTEGER(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToInteger(ToNumber(arg)));
125 …_MAP_MINUS_ZERO(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToIntegerMapMinusZero(ToNumber(arg)));
Dv8natives.js79 var n = ToNumber(number);
1015 var value = %_ArgumentsLength() == 0 ? 0 : ToNumber(x);
1073 var x = ToNumber(this);
1087 var x = ToNumber(this);
1099 var x = ToNumber(this);
Ddebug-debugger.js909 if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action);
910 var count = opt_count ? %ToNumber(opt_count) : 1;
939 var i = %ToNumber(index);
1493 count = %ToNumber(stepcount);
1646 var break_point = %ToNumber(request.arguments.breakpoint);
1720 var break_point = %ToNumber(request.arguments.breakpoint);
1949 scope_index = %ToNumber(request.arguments.number);
2022 var frame_number = %ToNumber(frame);
2140 var frame_number = %ToNumber(request.arguments.frame);
2176 types = %ToNumber(request.arguments.types);
[all …]
Dstring.js126 var position = ToNumber(%_Arguments(1));
729 if (!%_IsSmi(code)) code = ToNumber(code);
739 if (!%_IsSmi(code)) code = ToNumber(code);
Dexecution.h86 static Handle<Object> ToNumber(Handle<Object> obj, bool* exc);
Dcode-stubs.h59 V(ToNumber) \
279 Major MajorKey() { return ToNumber; } in MajorKey()
Daccessors.cc125 Handle<Object> number_v = Execution::ToNumber(value_handle, &has_exception); in ArraySetLength()
Dexecution.cc498 Handle<Object> Execution::ToNumber(Handle<Object> obj, bool* exc) { in ToNumber() function in v8::internal::Execution
Dhandles.cc502 Handle<Object> number = Execution::ToNumber(value, &has_exception); in SetElement()
Dapi.cc2112 Local<Number> Value::ToNumber() const { in ToNumber() function in v8::Value
2125 num = i::Execution::ToNumber(obj, &has_pending_exception); in ToNumber()
2260 num = i::Execution::ToNumber(obj, &has_pending_exception); in NumberValue()
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8GeolocationCustom.cpp83 v8::Local<v8::Number> timeoutNumber = timeoutValue->ToNumber(); in createPositionOptions()
107 v8::Local<v8::Number> maximumAgeNumber = maximumAgeValue->ToNumber(); in createPositionOptions()
/external/v8/src/mips/
Dregister-allocator-mips-inl.h46 int RegisterAllocator::ToNumber(Register reg) { in ToNumber() function
Dmacro-assembler-mips.h297 rt == static_cast<uint32_t>(ToNumber(zero_reg)) && in GetCodeMarker()
298 rs == static_cast<uint32_t>(ToNumber(zero_reg))); in GetCodeMarker()
Dassembler-mips.cc78 int ToNumber(Register reg) { in ToNumber() function
410 rt == static_cast<uint32_t>(ToNumber(zero_reg)) && in IsNop()
411 rs == static_cast<uint32_t>(ToNumber(zero_reg)) && in IsNop()
Dassembler-mips.h163 int ToNumber(Register reg);
/external/webkit/Source/WebCore/bindings/v8/
DV8Binding.cpp152 v8::Local<v8::Number> numberObject = value->ToNumber(); in toInt32()
192 v8::Local<v8::Number> numberObject = value->ToNumber(); in toUInt32()
/external/v8/test/cctest/
Dtest-heap-profiler.cc1020 static_cast<int>(string_obj_pos_val->ToNumber()->Value()); in TEST()
1024 nodes_array->Get(string_obj_pos + 1)->ToNumber()->Value()); in TEST()
Dtest-api.cc1039 THREADED_TEST(ToNumber) { in THREADED_TEST() argument
2364 CHECK_EQ(5312874545152.0, obj->ToNumber()->Value()); in THREADED_TEST()
2370 CHECK_EQ(-1234567890123.0, obj->ToNumber()->Value()); in THREADED_TEST()
2376 CHECK_EQ(42.0, obj->ToNumber()->Value()); in THREADED_TEST()
2382 CHECK_EQ(-37.0, obj->ToNumber()->Value()); in THREADED_TEST()
2388 CHECK_EQ(2166572391.0, obj->ToNumber()->Value()); in THREADED_TEST()
2394 CHECK_EQ(42.3, obj->ToNumber()->Value()); in THREADED_TEST()
2400 CHECK_EQ(-5726623061.75, obj->ToNumber()->Value()); in THREADED_TEST()
2462 Local<Value> to_number_result = obj->ToNumber(); in THREADED_TEST()
/external/v8/include/
Dv8.h932 V8EXPORT Local<Number> ToNumber() const;
/external/webkit/Source/JavaScriptCore/
DChangeLog-2011-02-1615992 ToNumber:
15994 ToNumber conversion from strings (see ecma-262 9.3.1), so UString::toDouble
15995 should largely just be moved out to a global jsToNumber function. ToNumber is
20073 ToNumber should ignore NBSP (\u00a0)
24329 Null characters handled incorrectly in ToNumber conversion
24338 standard JavaScript numeric conversion, ToNumber.
DChangeLog-2010-05-243631 Tests: fast/js/ToNumber.html
26600 bytecode generator, so x=x++ effectively becomes x=ToNumber(x) (for a
DChangeLog-2009-06-169495 uses ToNumber, not ToPrimitive. Change the test to match the spec.

12