Home
last modified time | relevance | path

Searched refs:jsNumber (Results 1 – 25 of 101) sorted by relevance

12345

/external/webkit/JavaScriptCore/runtime/
DExceptionHelpers.cpp81 …thAttributes(exec, Identifier(exec, expressionBeginOffsetPropertyName), jsNumber(exec, divotPoint … in createUndefinedVariableError()
82 …thAttributes(exec, Identifier(exec, expressionCaretOffsetPropertyName), jsNumber(exec, divotPoint)… in createUndefinedVariableError()
83 …exception->putWithAttributes(exec, Identifier(exec, expressionEndOffsetPropertyName), jsNumber(exe… in createUndefinedVariableError()
120 …thAttributes(exec, Identifier(exec, expressionBeginOffsetPropertyName), jsNumber(exec, divotPoint … in createInvalidParamError()
121 …thAttributes(exec, Identifier(exec, expressionCaretOffsetPropertyName), jsNumber(exec, divotPoint)… in createInvalidParamError()
122 …exception->putWithAttributes(exec, Identifier(exec, expressionEndOffsetPropertyName), jsNumber(exe… in createInvalidParamError()
141 …thAttributes(exec, Identifier(exec, expressionBeginOffsetPropertyName), jsNumber(exec, divotPoint … in createNotAConstructorError()
142 …thAttributes(exec, Identifier(exec, expressionCaretOffsetPropertyName), jsNumber(exec, divotPoint)… in createNotAConstructorError()
143 …exception->putWithAttributes(exec, Identifier(exec, expressionEndOffsetPropertyName), jsNumber(exe… in createNotAConstructorError()
155 …thAttributes(exec, Identifier(exec, expressionBeginOffsetPropertyName), jsNumber(exec, divotPoint … in createNotAFunctionError()
[all …]
DMathObject.cpp91 …putDirectWithoutTransition(Identifier(exec, "E"), jsNumber(exec, exp(1.0)), DontDelete | DontEnum … in MathObject()
92 …putDirectWithoutTransition(Identifier(exec, "LN2"), jsNumber(exec, log(2.0)), DontDelete | DontEnu… in MathObject()
93 …putDirectWithoutTransition(Identifier(exec, "LN10"), jsNumber(exec, log(10.0)), DontDelete | DontE… in MathObject()
94 …putDirectWithoutTransition(Identifier(exec, "LOG2E"), jsNumber(exec, 1.0 / log(2.0)), DontDelete |… in MathObject()
95 …putDirectWithoutTransition(Identifier(exec, "LOG10E"), jsNumber(exec, 1.0 / log(10.0)), DontDelete… in MathObject()
96 …putDirectWithoutTransition(Identifier(exec, "PI"), jsNumber(exec, piDouble), DontDelete | DontEnum… in MathObject()
97 …putDirectWithoutTransition(Identifier(exec, "SQRT1_2"), jsNumber(exec, sqrt(0.5)), DontDelete | Do… in MathObject()
98 …putDirectWithoutTransition(Identifier(exec, "SQRT2"), jsNumber(exec, sqrt(2.0)), DontDelete | Dont… in MathObject()
117 return jsNumber(exec, fabs(args.at(0).toNumber(exec))); in mathProtoFuncAbs()
142 return jsNumber(exec, ceil(args.at(0).toNumber(exec))); in mathProtoFuncCeil()
[all …]
DJSImmediate.h141 friend JSValue jsNumber(ExecState* exec, double d);
142 friend JSValue jsNumber(ExecState*, char i);
143 friend JSValue jsNumber(ExecState*, unsigned char i);
144 friend JSValue jsNumber(ExecState*, short i);
145 friend JSValue jsNumber(ExecState*, unsigned short i);
146 friend JSValue jsNumber(ExecState* exec, int i);
147 friend JSValue jsNumber(ExecState* exec, unsigned i);
148 friend JSValue jsNumber(ExecState* exec, long i);
149 friend JSValue jsNumber(ExecState* exec, unsigned long i);
150 friend JSValue jsNumber(ExecState* exec, long long i);
[all …]
DNumberConstructor.cpp63 …putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontEnum | … in NumberConstructor()
83 return jsNumber(exec, -Inf); in numberConstructorNegInfinity()
88 return jsNumber(exec, Inf); in numberConstructorPosInfinity()
93 return jsNumber(exec, 1.7976931348623157E+308); in numberConstructorMaxValue()
98 return jsNumber(exec, 5E-324); in numberConstructorMinValue()
106 object->setInternalValue(jsNumber(exec, n)); in constructWithNumberConstructor()
119 return jsNumber(exec, args.isEmpty() ? 0 : args.at(0).toNumber(exec)); in callNumberConstructor()
DArrayPrototype.cpp325 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length)); in arrayProtoFuncPop()
330 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length - 1)); in arrayProtoFuncPop()
340 return jsNumber(exec, array->length()); in arrayProtoFuncPush()
348 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length)); in arrayProtoFuncPush()
349 return jsNumber(exec, length); in arrayProtoFuncPush()
383 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length)); in arrayProtoFuncShift()
394 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length - 1)); in arrayProtoFuncShift()
553 …putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(exec, length - deleteCount + add… in arrayProtoFuncSplice()
574 JSValue result = jsNumber(exec, length + nrArgs); in arrayProtoFuncUnShift()
605 cachedCall.setArgument(1, jsNumber(exec, k)); in arrayProtoFuncFilter()
[all …]
DJSValue.h294 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, double d) in jsNumber() function
299 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, char i) in jsNumber() function
304 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned char i) in jsNumber() function
309 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, short i) in jsNumber() function
314 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned short i) in jsNumber() function
319 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, int i) in jsNumber() function
324 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned i) in jsNumber() function
329 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, long i) in jsNumber() function
334 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned long i) in jsNumber() function
339 ALWAYS_INLINE JSValue jsNumber(ExecState* exec, long long i) in jsNumber() function
[all …]
DDatePrototype.cpp544 return jsNumber(exec, 1900 + gregorianDateTime->year); in dateProtoFuncGetFullYear()
557 return jsNumber(exec, 1900 + gregorianDateTime->year); in dateProtoFuncGetUTCFullYear()
587 return jsNumber(exec, gregorianDateTime->month); in dateProtoFuncGetMonth()
600 return jsNumber(exec, gregorianDateTime->month); in dateProtoFuncGetUTCMonth()
613 return jsNumber(exec, gregorianDateTime->monthDay); in dateProtoFuncGetDate()
626 return jsNumber(exec, gregorianDateTime->monthDay); in dateProtoFuncGetUTCDate()
639 return jsNumber(exec, gregorianDateTime->weekDay); in dateProtoFuncGetDay()
652 return jsNumber(exec, gregorianDateTime->weekDay); in dateProtoFuncGetUTCDay()
665 return jsNumber(exec, gregorianDateTime->hour); in dateProtoFuncGetHours()
678 return jsNumber(exec, gregorianDateTime->hour); in dateProtoFuncGetUTCHours()
[all …]
DDateConstructor.cpp70 …putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 7), ReadOnly | DontEnum | … in DateConstructor()
152 return jsNumber(exec, parseDate(exec, args.at(0).toString(exec))); in dateParse()
157 return jsNumber(exec, jsCurrentTime()); in dateNow()
181 return jsNumber(exec, timeClip(gregorianDateTimeToMS(exec, t, ms, true))); in dateUTC()
DPrototypeFunction.cpp40 … putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); in PrototypeFunction()
48 … putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); in PrototypeFunction()
DDateInstance.cpp46 setInternalValue(jsNumber(exec, timeClip(time))); in DateInstance()
52 setInternalValue(jsNumber(exec, timeClip(time))); in DateInstance()
DJSGlobalObjectFunctions.cpp305 return jsNumber(exec, parseInt(value.toString(exec), radix)); in globalFuncParseInt()
313 return jsNumber(exec, (d > 0) ? floor(d) : ceil(d)); in globalFuncParseInt()
316 return jsNumber(exec, 0); in globalFuncParseInt()
319 return jsNumber(exec, parseInt(value.toString(exec), radix)); in globalFuncParseInt()
324 return jsNumber(exec, parseFloat(args.at(0).toString(exec))); in globalFuncParseFloat()
DStringPrototype.cpp138 …putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 0), DontDelete | ReadOnly … in StringPrototype()
367 cachedCall.setArgument(i++, jsNumber(exec, completeMatchStart)); in stringProtoFuncReplace()
411 args.append(jsNumber(exec, completeMatchStart)); in stringProtoFuncReplace()
453 args.append(jsNumber(exec, matchPos)); in stringProtoFuncReplace()
501 return jsNumber(exec, s.data()[i]); in stringProtoFuncCharCodeAt()
506 return jsNumber(exec, s[static_cast<int>(dpos)]); in stringProtoFuncCharCodeAt()
544 return jsNumber(exec, s.find(u2, pos)); in stringProtoFuncIndexOf()
566 return jsNumber(exec, s.rfind(u2, static_cast<int>(dpos))); in stringProtoFuncLastIndexOf()
642 return jsNumber(exec, pos); in stringProtoFuncSearch()
862 return jsNumber(exec, 0); in stringProtoFuncLocaleCompare()
[all …]
DError.cpp86 …error->putWithAttributes(exec, Identifier(exec, "line"), jsNumber(exec, lineNumber), ReadOnly | Do… in create()
88 …error->putWithAttributes(exec, Identifier(exec, "sourceId"), jsNumber(exec, sourceID), ReadOnly | … in create()
DJSFunction.cpp67 … putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); in JSFunction()
143 return jsNumber(exec, thisObj->jsExecutable()->parameterCount()); in lengthGetter()
199 …descriptor.setDescriptor(jsNumber(exec, jsExecutable()->parameterCount()), ReadOnly | DontEnum | D… in getOwnPropertyDescriptor()
/external/webkit/WebCore/bindings/js/
DJSCoordinatesCustom.cpp40 return jsNumber(exec, imp->altitude()); in altitude()
48 return jsNumber(exec, imp->altitudeAccuracy()); in altitudeAccuracy()
56 return jsNumber(exec, imp->heading()); in heading()
64 return jsNumber(exec, imp->speed()); in speed()
DScriptObject.cpp95 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
103 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
111 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
119 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
127 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
135 …jsObject()->put(m_scriptState, Identifier(m_scriptState, name), jsNumber(m_scriptState, value), sl… in set()
DScriptFunctionCall.cpp97 m_arguments.append(jsNumber(m_exec, argument)); in appendArgument()
103 m_arguments.append(jsNumber(m_exec, argument)); in appendArgument()
109 m_arguments.append(jsNumber(m_exec, argument)); in appendArgument()
115 m_arguments.append(jsNumber(m_exec, argument)); in appendArgument()
121 m_arguments.append(jsNumber(m_exec, argument)); in appendArgument()
DScriptArray.cpp75 jsArray()->put(m_scriptState, index, jsNumber(m_scriptState, value)); in set()
82 jsArray()->put(m_scriptState, index, jsNumber(m_scriptState, value)); in set()
89 jsArray()->put(m_scriptState, index, jsNumber(m_scriptState, value)); in set()
DJSHTMLInputElementCustom.cpp76 return jsNumber(exec, input->selectionStart()); in selectionStart()
94 return jsNumber(exec, input->selectionEnd()); in selectionEnd()
/external/webkit/WebCore/bridge/jni/jsc/
DJavaInstanceJSC.cpp113 return jsNumber(exec, doubleValue); in numberValue()
254 resultValue = jsNumber(exec, result.b); in invokeMethod()
260 resultValue = jsNumber(exec, result.c); in invokeMethod()
266 resultValue = jsNumber(exec, result.s); in invokeMethod()
272 resultValue = jsNumber(exec, result.i); in invokeMethod()
278 resultValue = jsNumber(exec, result.j); in invokeMethod()
284 resultValue = jsNumber(exec, result.f); in invokeMethod()
290 resultValue = jsNumber(exec, result.d); in invokeMethod()
DJNIBridgeJSC.cpp140 jsresult = jsNumber(exec, static_cast<int>(value)); in valueFromInstance()
151 jsresult = jsNumber(exec, static_cast<double>(value)); in valueFromInstance()
389 return jsNumber(exec, aByte); in valueAt()
397 return jsNumber(exec, aChar); in valueAt()
406 return jsNumber(exec, aShort); in valueAt()
414 return jsNumber(exec, anInt); in valueAt()
422 return jsNumber(exec, aLong); in valueAt()
430 return jsNumber(exec, aFloat); in valueAt()
438 return jsNumber(exec, aDouble); in valueAt()
/external/webkit/WebCore/bridge/objc/
Dobjc_utility.mm245 return jsNumber(exec, [obj doubleValue]);
259 return jsNumber(exec, *(char*)buffer);
261 return jsNumber(exec, *(unsigned char*)buffer);
263 return jsNumber(exec, *(short*)buffer);
265 return jsNumber(exec, *(unsigned short*)buffer);
267 return jsNumber(exec, *(int*)buffer);
269 return jsNumber(exec, *(unsigned int*)buffer);
271 return jsNumber(exec, *(long*)buffer);
273 return jsNumber(exec, *(unsigned long*)buffer);
275 return jsNumber(exec, *(long long*)buffer);
[all …]
/external/webkit/JavaScriptCore/interpreter/
DInterpreter.cpp513 …exception->putWithAttributes(callFrame, Identifier(callFrame, "line"), jsNumber(callFrame, line), … in throwException()
517 …es(callFrame, Identifier(callFrame, expressionBeginOffsetPropertyName), jsNumber(callFrame, divotP… in throwException()
518 …utes(callFrame, Identifier(callFrame, expressionEndOffsetPropertyName), jsNumber(callFrame, divotP… in throwException()
520 …exception->putWithAttributes(callFrame, Identifier(callFrame, "line"), jsNumber(callFrame, codeBlo… in throwException()
521 …exception->putWithAttributes(callFrame, Identifier(callFrame, "sourceId"), jsNumber(callFrame, cod… in throwException()
1380 callFrame->r(srcDst) = jsNumber(callFrame, v.asInt32() + 1); in privateExecute()
1382 JSValue result = jsNumber(callFrame, v.toNumber(callFrame) + 1); in privateExecute()
1399 callFrame->r(srcDst) = jsNumber(callFrame, v.asInt32() - 1); in privateExecute()
1401 JSValue result = jsNumber(callFrame, v.toNumber(callFrame) - 1); in privateExecute()
1420 callFrame->r(srcDst) = jsNumber(callFrame, v.asInt32() + 1); in privateExecute()
[all …]
/external/webkit/WebCore/bridge/c/
Dc_utility.cpp121 return jsNumber(exec, NPVARIANT_TO_INT32(*variant)); in convertNPVariantToValue()
123 return jsNumber(exec, NPVARIANT_TO_DOUBLE(*variant)); in convertNPVariantToValue()
/external/webkit/JavaScriptCore/jit/
DJITStubs.cpp1127 return JSValue::encode(jsNumber(stackFrame.globalData, left + right)); in DEFINE_STUB_FUNCTION()
1142 JSValue result = jsNumber(stackFrame.globalData, v.toNumber(callFrame) + 1); in DEFINE_STUB_FUNCTION()
1614 return JSValue::encode(jsNumber(stackFrame.globalData, left * right)); in DEFINE_STUB_FUNCTION()
1617 …JSValue result = jsNumber(stackFrame.globalData, src1.toNumber(callFrame) * src2.toNumber(callFram… in DEFINE_STUB_FUNCTION()
2039 return JSValue::encode(jsNumber(stackFrame.globalData, left - right)); in DEFINE_STUB_FUNCTION()
2042 …JSValue result = jsNumber(stackFrame.globalData, src1.toNumber(callFrame) - src2.toNumber(callFram… in DEFINE_STUB_FUNCTION()
2245 return JSValue::encode(jsNumber(stackFrame.globalData, -v)); in DEFINE_STUB_FUNCTION()
2248 JSValue result = jsNumber(stackFrame.globalData, -src.toNumber(callFrame)); in DEFINE_STUB_FUNCTION()
2335 return JSValue::encode(jsNumber(stackFrame.globalData, left / right)); in DEFINE_STUB_FUNCTION()
2338 …JSValue result = jsNumber(stackFrame.globalData, src1.toNumber(callFrame) / src2.toNumber(callFram… in DEFINE_STUB_FUNCTION()
[all …]

12345