Lines Matching full:jsvalue
39 JSValue jsNumberCell(ExecState*, double);
52 friend JSValue jsNumberCell(JSGlobalData*, double);
53 friend JSValue jsNumberCell(ExecState*, double);
58 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
59 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
67 virtual JSValue getJSNumber();
79 static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(NumberType, OverridesGetOwnPropertySlot | NeedsThisConversion), AnonymousSlotCount); }
99 JSValue jsNumberCell(JSGlobalData*, double);
101 inline bool isNumberCell(JSValue v)
106 inline JSNumberCell* asNumberCell(JSValue v)
112 ALWAYS_INLINE JSValue::JSValue(EncodeAsDoubleTag, ExecState* exec, double d)
117 inline JSValue::JSValue(ExecState* exec, double d)
119 JSValue v = JSImmediate::from(d);
123 inline JSValue::JSValue(ExecState* exec, int i)
125 JSValue v = JSImmediate::from(i);
129 inline JSValue::JSValue(ExecState* exec, unsigned i)
131 JSValue v = JSImmediate::from(i);
135 inline JSValue::JSValue(ExecState* exec, long i)
137 JSValue v = JSImmediate::from(i);
141 inline JSValue::JSValue(ExecState* exec, unsigned long i)
143 JSValue v = JSImmediate::from(i);
147 inline JSValue::JSValue(ExecState* exec, long long i)
149 JSValue v = JSImmediate::from(i);
153 inline JSValue::JSValue(ExecState* exec, unsigned long long i)
155 JSValue v = JSImmediate::from(i);
159 inline JSValue::JSValue(JSGlobalData* globalData, double d)
161 JSValue v = JSImmediate::from(d);
165 inline JSValue::JSValue(JSGlobalData* globalData, int i)
167 JSValue v = JSImmediate::from(i);
171 inline JSValue::JSValue(JSGlobalData* globalData, unsigned i)
173 JSValue v = JSImmediate::from(i);
177 inline bool JSValue::isDouble() const
182 inline double JSValue::asDouble() const
187 inline bool JSValue::isNumber() const
192 inline double JSValue::uncheckedGetNumber() const
201 ALWAYS_INLINE JSValue::JSValue(EncodeAsDoubleTag, ExecState*, double d)
206 inline JSValue::JSValue(ExecState*, double d)
208 JSValue v = JSImmediate::from(d);
213 inline JSValue::JSValue(ExecState*, int i)
215 JSValue v = JSImmediate::from(i);
220 inline JSValue::JSValue(ExecState*, unsigned i)
222 JSValue v = JSImmediate::from(i);
227 inline JSValue::JSValue(ExecState*, long i)
229 JSValue v = JSImmediate::from(i);
234 inline JSValue::JSValue(ExecState*, unsigned long i)
236 JSValue v = JSImmediate::from(i);
241 inline JSValue::JSValue(ExecState*, long long i)
243 JSValue v = JSImmediate::from(static_cast<double>(i));
248 inline JSValue::JSValue(ExecState*, unsigned long long i)
250 JSValue v = JSImmediate::from(static_cast<double>(i));
255 inline JSValue::JSValue(JSGlobalData*, double d)
257 JSValue v = JSImmediate::from(d);
262 inline JSValue::JSValue(JSGlobalData*, int i)
264 JSValue v = JSImmediate::from(i);
269 inline JSValue::JSValue(JSGlobalData*, unsigned i)
271 JSValue v = JSImmediate::from(i);
276 inline bool JSValue::isDouble() const
281 inline double JSValue::asDouble() const
286 inline bool JSValue::isNumber() const
291 inline double JSValue::uncheckedGetNumber() const
301 inline JSValue::JSValue(ExecState*, char i)
307 inline JSValue::JSValue(ExecState*, unsigned char i)
313 inline JSValue::JSValue(ExecState*, short i)
319 inline JSValue::JSValue(ExecState*, unsigned short i)
325 inline JSValue jsNaN(ExecState* exec)
330 inline JSValue jsNaN(JSGlobalData* globalData)
335 // --- JSValue inlines ----------------------------
337 ALWAYS_INLINE JSValue JSValue::toJSNumber(ExecState* exec) const
342 inline bool JSValue::getNumber(double &result) const