Home
last modified time | relevance | path

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

12

/external/v8/src/
Ddate.js160 value = IS_STRING(time) ? DateParse(time) : ToNumber(time);
164 year = ToNumber(year);
165 month = ToNumber(month);
166 date = argc > 2 ? ToNumber(date) : 1;
167 hours = argc > 3 ? ToNumber(hours) : 0;
168 minutes = argc > 4 ? ToNumber(minutes) : 0;
169 seconds = argc > 5 ? ToNumber(seconds) : 0;
170 ms = argc > 6 ? ToNumber(ms) : 0;
269 year = ToNumber(year);
270 month = ToNumber(month);
[all …]
Druntime.js42 return %NumberEquals(x, %ToNumber(y));
50 if (IS_NUMBER(y)) return %NumberEquals(%ToNumber(x), y);
51 if (IS_BOOLEAN(y)) return %NumberEquals(%ToNumber(x), %ToNumber(y));
61 if (IS_NUMBER(y)) return %NumberEquals(%ToNumber(x), y);
62 if (IS_STRING(y)) return %NumberEquals(%ToNumber(x), %ToNumber(y));
65 x = %ToNumber(x);
76 if (IS_BOOLEAN(y)) y = %ToNumber(y);
131 var left_number = %ToNumber(left);
132 var right_number = %ToNumber(right);
160 return %NumberAdd(%ToNumber(a), %ToNumber(b));
[all …]
Djson.js152 value = ToNumber(value);
174 space = ToNumber(space);
203 if (IS_NUMBER_WRAPPER(item)) item = ToNumber(item);
Ddebug-debugger.js943 if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action);
944 var count = opt_count ? %ToNumber(opt_count) : 1;
978 var i = %ToNumber(index);
1459 count = %ToNumber(stepcount);
1621 var break_point = %ToNumber(request.arguments.breakpoint);
1697 var break_point = %ToNumber(request.arguments.breakpoint);
1954 scope_index = %ToNumber(request.arguments.number);
2018 var scope_index = %ToNumber(scope_description.number);
2096 var frame_number = %ToNumber(frame);
2196 var frame_number = %ToNumber(request.arguments.frame);
[all …]
Dmacros.py160 macro TO_INTEGER(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToInteger(ToNumber(arg)));
161 macro TO_INTEGER_FOR_SIDE_EFFECT(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : ToNumber(arg));
162 …_MAP_MINUS_ZERO(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToIntegerMapMinusZero(ToNumber(arg)));
Dstring.js110 var position = ToNumber(%_Arguments(1));
805 if (!%_IsSmi(code)) code = ToNumber(code);
813 if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
824 if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
Dcode-factory.h51 static Callable ToNumber(Isolate* isolate);
Dcode-factory.cc70 Callable CodeFactory::ToNumber(Isolate* isolate) { in ToNumber() function in v8::internal::CodeFactory
Dharmony-string.js154 code = ToNumber(code);
Dexecution.h57 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(
Dinterface-descriptors.h25 V(ToNumber) \
Dv8natives.js865 if (new_length != ToNumber(desc.getValue())) {
1517 var value = %_ArgumentsLength() == 0 ? 0 : ToNumber(x);
Dcode-stubs.h78 V(ToNumber) \
547 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToNumber);
548 DEFINE_HYDROGEN_CODE_STUB(ToNumber, HydrogenCodeStub);
Dexecution.cc493 MaybeHandle<Object> Execution::ToNumber( in ToNumber() function in v8::internal::Execution
/external/v8/test/mjsunit/regress/
Dregress-seqstrsetchar-ex1.js31 function ToNumber(x) { class
43 if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
/external/v8/test/cctest/compiler/
Dtest-js-typed-lowering.cc123 return graph.NewNode(javascript.ToNumber(), node, context(), node, in UseForEffect()
394 const Operator* ton = R.javascript.ToNumber(); in TEST()
420 Node* c = R.graph.NewNode(R.javascript.ToNumber(), n, R.context(), in TEST()
451 Node* convert = R.Unop(R.javascript.ToNumber(), n); in TEST()
476 Node* r = R.ReduceUnop(R.javascript.ToNumber(), t); in TEST()
815 Node* ton = R.Unop(R.javascript.ToNumber(), p0); in TEST()
821 effect_use = R.graph.NewNode(R.javascript.ToNumber(), p0, R.context(), in TEST()
825 effect_use = R.graph.NewNode(R.javascript.ToNumber(), ton, R.context(), in TEST()
Dtest-scheduler.cc857 op = js_builder.ToNumber(); in TEST()
981 op = js_builder.ToNumber(); in TEST()
1044 op = js_builder.ToNumber(); in TEST()
1230 op = js_builder.ToNumber(); in TEST()
1309 op = js_builder.ToNumber(); in TEST()
1368 op = js_builder.ToNumber(); in TEST()
1419 op = js_builder.ToNumber(); in TEST()
/external/v8/src/compiler/
Djs-operator.h106 const Operator* ToNumber() { UNOP(JSToNumber); } in ToNumber() function
Djs-generic-lowering.cc262 Callable callable = CodeFactory::ToNumber(isolate()); in LowerJSToNumber()
Djs-typed-lowering.cc160 Node* n = graph()->NewNode(javascript()->ToNumber(), node, context(), in ConvertToNumber()
/external/v8/test/webkit/
DToNumber-expected.txt24 Test the JavaScript ToNumber operation.
/external/pdfium/fpdfsdk/src/jsapi/
Dfxjs_v8.cpp740 return pValue->ToNumber(context).ToLocalChecked()->Value(); in JS_ToNumber()
1011 double date = v->ToNumber(context).ToLocalChecked()->Value(); in JS_DateParse()
/external/v8/src/mips/
Dmacro-assembler-mips.h473 rt == static_cast<uint32_t>(ToNumber(zero_reg)) && in GetCodeMarker()
474 rs == static_cast<uint32_t>(ToNumber(zero_reg))); in GetCodeMarker()
Dassembler-mips.cc136 int ToNumber(Register reg) { in ToNumber() function
602 rd == static_cast<uint32_t>(ToNumber(zero_reg)) && in IsNop()
603 rt == static_cast<uint32_t>(ToNumber(nop_rt_reg)) && in IsNop()
/external/v8/src/mips64/
Dmacro-assembler-mips64.h494 rt == static_cast<uint32_t>(ToNumber(zero_reg)) && in GetCodeMarker()
495 rs == static_cast<uint32_t>(ToNumber(zero_reg))); in GetCodeMarker()

12