Home
last modified time | relevance | path

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

12345

/external/webkit/Source/JavaScriptCore/runtime/
DMathObject.cpp94 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "E"), jsNumber(exp(1.0)), DontDele… in MathObject()
95 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "LN2"), jsNumber(log(2.0)), DontDe… in MathObject()
96 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "LN10"), jsNumber(log(10.0)), Dont… in MathObject()
97 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "LOG2E"), jsNumber(1.0 / log(2.0))… in MathObject()
98 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "LOG10E"), jsNumber(0.434294481903… in MathObject()
99 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "PI"), jsNumber(piDouble), DontDel… in MathObject()
100 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "SQRT1_2"), jsNumber(sqrt(0.5)), D… in MathObject()
101 …putDirectWithoutTransition(exec->globalData(), Identifier(exec, "SQRT2"), jsNumber(sqrt(2.0)), Don… in MathObject()
120 return JSValue::encode(jsNumber(fabs(exec->argument(0).toNumber(exec)))); in mathProtoFuncAbs()
147 return JSValue::encode(jsNumber(ceil(exec->argument(0).toNumber(exec)))); in mathProtoFuncCeil()
[all …]
DNumberConstructor.cpp66 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly… in NumberConstructor()
86 return jsNumber(-Inf); in numberConstructorNegInfinity()
91 return jsNumber(Inf); in numberConstructorPosInfinity()
96 return jsNumber(1.7976931348623157E+308); in numberConstructorMaxValue()
101 return jsNumber(5E-324); in numberConstructorMinValue()
109 object->setInternalValue(exec->globalData(), jsNumber(n)); in constructWithNumberConstructor()
122 return JSValue::encode(jsNumber(!exec->argumentCount() ? 0 : exec->argument(0).toNumber(exec))); in callNumberConstructor()
DJSValue.h406 ALWAYS_INLINE JSValue jsNumber(double d) in jsNumber() function
411 ALWAYS_INLINE JSValue jsNumber(char i) in jsNumber() function
416 ALWAYS_INLINE JSValue jsNumber(unsigned char i) in jsNumber() function
421 ALWAYS_INLINE JSValue jsNumber(short i) in jsNumber() function
426 ALWAYS_INLINE JSValue jsNumber(unsigned short i) in jsNumber() function
431 ALWAYS_INLINE JSValue jsNumber(int i) in jsNumber() function
436 ALWAYS_INLINE JSValue jsNumber(unsigned i) in jsNumber() function
441 ALWAYS_INLINE JSValue jsNumber(long i) in jsNumber() function
446 ALWAYS_INLINE JSValue jsNumber(unsigned long i) in jsNumber() function
451 ALWAYS_INLINE JSValue jsNumber(long long i) in jsNumber() function
[all …]
DArrayPrototype.cpp379 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length)); in arrayProtoFuncPop()
384 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - 1)); in arrayProtoFuncPop()
396 return JSValue::encode(jsNumber(array->length())); in arrayProtoFuncPush()
407 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length)); in arrayProtoFuncPush()
408 return JSValue::encode(jsNumber(length)); in arrayProtoFuncPush()
447 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length)); in arrayProtoFuncShift()
462 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - 1)); in arrayProtoFuncShift()
616 …putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - deleteCount + additiona… in arrayProtoFuncSplice()
644 JSValue result = jsNumber(length + nrArgs); in arrayProtoFuncUnShift()
677 cachedCall.setArgument(1, jsNumber(k)); in arrayProtoFuncFilter()
[all …]
DDatePrototype.cpp591 return JSValue::encode(jsNumber(1900 + gregorianDateTime->year)); in dateProtoFuncGetFullYear()
605 return JSValue::encode(jsNumber(1900 + gregorianDateTime->year)); in dateProtoFuncGetUTCFullYear()
637 return JSValue::encode(jsNumber(gregorianDateTime->month)); in dateProtoFuncGetMonth()
651 return JSValue::encode(jsNumber(gregorianDateTime->month)); in dateProtoFuncGetUTCMonth()
665 return JSValue::encode(jsNumber(gregorianDateTime->monthDay)); in dateProtoFuncGetDate()
679 return JSValue::encode(jsNumber(gregorianDateTime->monthDay)); in dateProtoFuncGetUTCDate()
693 return JSValue::encode(jsNumber(gregorianDateTime->weekDay)); in dateProtoFuncGetDay()
707 return JSValue::encode(jsNumber(gregorianDateTime->weekDay)); in dateProtoFuncGetUTCDay()
721 return JSValue::encode(jsNumber(gregorianDateTime->hour)); in dateProtoFuncGetHours()
735 return JSValue::encode(jsNumber(gregorianDateTime->hour)); in dateProtoFuncGetUTCHours()
[all …]
DDateConstructor.cpp69 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(7), ReadOnly… in DateConstructor()
161 return JSValue::encode(jsNumber(parseDate(exec, exec->argument(0).toString(exec)))); in dateParse()
166 return JSValue::encode(jsNumber(jsCurrentTime())); in dateNow()
199 return JSValue::encode(jsNumber(timeClip(gregorianDateTimeToMS(exec, t, ms, true)))); in dateUTC()
DRegExpObject.h41 d->lastIndex.setWithoutWriteBarrier(jsNumber(lastIndex)); in setLastIndex()
80 lastIndex.setWithoutWriteBarrier(jsNumber(0)); in RegExpObjectData()
DStringPrototype.cpp141 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(0), DontDele… in StringPrototype()
356 cachedCall.setArgument(i++, jsNumber(completeMatchStart)); in stringProtoFuncReplace()
403 args.append(jsNumber(completeMatchStart)); in stringProtoFuncReplace()
459 args.append(jsNumber(matchPos)); in stringProtoFuncReplace()
515 return JSValue::encode(jsNumber(s.characters()[i])); in stringProtoFuncCharCodeAt()
520 return JSValue::encode(jsNumber(s[static_cast<int>(dpos)])); in stringProtoFuncCharCodeAt()
565 return JSValue::encode(jsNumber(-1)); in stringProtoFuncIndexOf()
566 return JSValue::encode(jsNumber(result)); in stringProtoFuncIndexOf()
594 return JSValue::encode(jsNumber(-1)); in stringProtoFuncLastIndexOf()
595 return JSValue::encode(jsNumber(result)); in stringProtoFuncLastIndexOf()
[all …]
DJSFunction.cpp71 …putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnl… in JSFunction()
84 …putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnl… in JSFunction()
178 return jsNumber(thisObj->jsExecutable()->parameterCount()); in lengthGetter()
248 …descriptor.setDescriptor(jsNumber(jsExecutable()->parameterCount()), ReadOnly | DontEnum | DontDel… in getOwnPropertyDescriptor()
DJSGlobalObjectFunctions.cpp466 return JSValue::encode(jsNumber(parseInt(value.toString(exec), radix))); in globalFuncParseInt()
474 return JSValue::encode(jsNumber((d > 0) ? floor(d) : ceil(d))); in globalFuncParseInt()
477 return JSValue::encode(jsNumber(0)); in globalFuncParseInt()
480 return JSValue::encode(jsNumber(parseInt(value.toString(exec), radix))); in globalFuncParseInt()
485 return JSValue::encode(jsNumber(parseFloat(exec->argument(0).toString(exec)))); in globalFuncParseFloat()
/external/webkit/Source/WebCore/bindings/js/
DJSCoordinatesCustom.cpp40 return jsNumber(imp->altitude()); in altitude()
48 return jsNumber(imp->altitudeAccuracy()); in altitudeAccuracy()
56 return jsNumber(imp->heading()); in heading()
64 return jsNumber(imp->speed()); in speed()
DJSDeviceMotionEventCustom.cpp117 …xec->globalData(), Identifier(exec, "x"), acceleration->canProvideX() ? jsNumber(acceleration->x()… in createAccelerationObject()
118 …xec->globalData(), Identifier(exec, "y"), acceleration->canProvideY() ? jsNumber(acceleration->y()… in createAccelerationObject()
119 …xec->globalData(), Identifier(exec, "z"), acceleration->canProvideZ() ? jsNumber(acceleration->z()… in createAccelerationObject()
126 …balData(), Identifier(exec, "alpha"), rotationRate->canProvideAlpha() ? jsNumber(rotationRate->alp… in createRotationRateObject()
127 …balData(), Identifier(exec, "beta"), rotationRate->canProvideBeta() ? jsNumber(rotationRate->bet… in createRotationRateObject()
128 …balData(), Identifier(exec, "gamma"), rotationRate->canProvideGamma() ? jsNumber(rotationRate->gam… in createRotationRateObject()
161 return jsNumber(imp->deviceMotionData()->interval()); in interval()
DScriptFunctionCall.cpp85 m_arguments.append(jsNumber(argument)); in appendArgument()
91 m_arguments.append(jsNumber(argument)); in appendArgument()
97 m_arguments.append(jsNumber(argument)); in appendArgument()
103 m_arguments.append(jsNumber(argument)); in appendArgument()
109 m_arguments.append(jsNumber(argument)); in appendArgument()
DJSDeviceOrientationEventCustom.cpp43 return jsNumber(imp->orientation()->alpha()); in alpha()
51 return jsNumber(imp->orientation()->beta()); in beta()
59 return jsNumber(imp->orientation()->gamma()); in gamma()
DJSWebKitAnimationCustom.cpp40 return jsNumber(std::numeric_limits<float>::infinity()); in iterationCount()
41 return jsNumber(count); in iterationCount()
DJSDataViewCustom.cpp84 result = jsNumber(imp->getInt8(byteOffset, ec)); in getDataViewMember()
87 result = jsNumber(imp->getUint8(byteOffset, ec)); in getDataViewMember()
92 result = isnan(value) ? JSValue(nonInlineNaN()) : jsNumber(value); in getDataViewMember()
DJSHTMLInputElementCustom.cpp42 return jsNumber(input->selectionStart()); in selectionStart()
60 return jsNumber(input->selectionEnd()); in selectionEnd()
DJSInjectedScriptHostCustom.cpp131 return jsNumber(impl()->databaseIdImpl(database)); in databaseId()
143 return jsNumber(impl()->storageIdImpl(storage)); in storageId()
DJSWorkerContextCustom.cpp130 return jsNumber(impl()->setTimeout(action.release(), delay)); in setTimeout()
140 return jsNumber(impl()->setInterval(action.release(), delay)); in setInterval()
DJSIDBKeyCustom.cpp49 return jsNumber(key->number()); in toJS()
/external/webkit/Source/WebCore/bridge/jni/jsc/
DJavaArrayJSC.cpp184 return jsNumber(aByte); in valueAt()
192 return jsNumber(aChar); in valueAt()
201 return jsNumber(aShort); in valueAt()
209 return jsNumber(anInt); in valueAt()
217 return jsNumber(aLong); in valueAt()
225 return jsNumber(aFloat); in valueAt()
233 return jsNumber(aDouble); in valueAt()
DJavaInstanceJSC.cpp108 return jsNumber(doubleValue); in numberValue()
256 resultValue = jsNumber(result.b); in invokeMethod()
262 resultValue = jsNumber(result.c); in invokeMethod()
268 resultValue = jsNumber(result.s); in invokeMethod()
274 resultValue = jsNumber(result.i); in invokeMethod()
280 resultValue = jsNumber(result.j); in invokeMethod()
286 resultValue = jsNumber(result.f); in invokeMethod()
292 resultValue = jsNumber(result.d); in invokeMethod()
/external/webkit/Source/WebCore/bridge/objc/
Dobjc_utility.mm245 return jsNumber([obj doubleValue]);
259 return jsNumber(*(char*)buffer);
261 return jsNumber(*(unsigned char*)buffer);
263 return jsNumber(*(short*)buffer);
265 return jsNumber(*(unsigned short*)buffer);
267 return jsNumber(*(int*)buffer);
269 return jsNumber(*(unsigned int*)buffer);
271 return jsNumber(*(long*)buffer);
273 return jsNumber(*(unsigned long*)buffer);
275 return jsNumber(*(long long*)buffer);
[all …]
/external/webkit/Source/WebCore/bindings/scripts/test/JS/
DJSTestObj.cpp286 JSValue result = jsNumber(imp->readOnlyIntAttr()); in jsTestObjReadOnlyIntAttr()
313 JSValue result = jsNumber(imp->shortAttr()); in jsTestObjShortAttr()
322 JSValue result = jsNumber(imp->unsignedShortAttr()); in jsTestObjUnsignedShortAttr()
331 JSValue result = jsNumber(imp->intAttr()); in jsTestObjIntAttr()
340 JSValue result = jsNumber(imp->longLongAttr()); in jsTestObjLongLongAttr()
349 JSValue result = jsNumber(imp->unsignedLongLongAttr()); in jsTestObjUnsignedLongLongAttr()
403 …JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr)… in jsTestObjReflectedIntegralAttr()
412 …JSValue result = jsNumber(std::max(0, imp->getIntegralAttribute(WebCore::HTMLNames::reflectedunsig… in jsTestObjReflectedUnsignedIntegralAttr()
457 …JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrA… in jsTestObjReflectedCustomIntegralAttr()
493 JSC::JSValue result = jsNumber(imp->attrWithGetterException(ec)); in jsTestObjAttrWithGetterException()
[all …]
/external/webkit/Source/WebCore/bridge/c/
Dc_utility.cpp127 return jsNumber(NPVARIANT_TO_INT32(*variant)); in convertNPVariantToValue()
129 return jsNumber(NPVARIANT_TO_DOUBLE(*variant)); in convertNPVariantToValue()

12345