Changeset 36726 in webkit for trunk/JavaScriptCore/kjs/JSNumberCell.h
- Timestamp:
- Sep 20, 2008, 7:29:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSNumberCell.h
r36316 r36726 44 44 class JSNumberCell : public JSCell { 45 45 friend JSValue* jsNumberCell(ExecState*, double); 46 friend JSValue* jsNaN(ExecState*); 46 47 public: 47 48 double value() const { return m_value; } … … 87 88 extern const double Inf; 88 89 89 // Beware marking this function ALWAYS_INLINE: It takes a PIC branch, so 90 // inlining it may not always be a win. 91 inline JSValue* jsNumberCell(ExecState* exec, double d) 92 { 93 return new (exec) JSNumberCell(exec, d); 94 } 95 96 inline JSValue* jsNaN(ExecState* exec) 97 { 98 return jsNumberCell(exec, NaN); 99 } 90 JSValue* jsNumberCell(ExecState*, double); 91 JSValue* jsNaN(ExecState*); 100 92 101 93 ALWAYS_INLINE JSValue* jsNumber(ExecState* exec, double d)
Note:
See TracChangeset
for help on using the changeset viewer.