Changeset 37845 in webkit for trunk/JavaScriptCore/kjs/JSValue.h
- Timestamp:
- Oct 24, 2008, 9:22:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSValue.h
r37812 r37845 81 81 82 82 // Basic conversions. 83 JSValue PtrtoPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;84 bool getPrimitiveNumber(ExecState*, double& number, JSValue Ptr&);83 JSValue* toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const; 84 bool getPrimitiveNumber(ExecState*, double& number, JSValue*&); 85 85 86 86 bool toBoolean(ExecState*) const; … … 89 89 // been set in the ExecState already. 90 90 double toNumber(ExecState*) const; 91 JSValue PtrtoJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number.91 JSValue* toJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number. 92 92 93 93 UString toString(ExecState*) const; … … 110 110 111 111 // Object operations, with the toObject operation included. 112 JSValue Ptrget(ExecState*, const Identifier& propertyName) const;113 JSValue Ptrget(ExecState*, const Identifier& propertyName, PropertySlot&) const;114 JSValue Ptrget(ExecState*, unsigned propertyName) const;115 JSValue Ptrget(ExecState*, unsigned propertyName, PropertySlot&) const;116 void put(ExecState*, const Identifier& propertyName, JSValue Ptr, PutPropertySlot&);117 void put(ExecState*, unsigned propertyName, JSValue Ptr);112 JSValue* get(ExecState*, const Identifier& propertyName) const; 113 JSValue* get(ExecState*, const Identifier& propertyName, PropertySlot&) const; 114 JSValue* get(ExecState*, unsigned propertyName) const; 115 JSValue* get(ExecState*, unsigned propertyName, PropertySlot&) const; 116 void put(ExecState*, const Identifier& propertyName, JSValue*, PutPropertySlot&); 117 void put(ExecState*, unsigned propertyName, JSValue*); 118 118 bool deleteProperty(ExecState*, const Identifier& propertyName); 119 119 bool deleteProperty(ExecState*, unsigned propertyName); … … 124 124 JSString* toThisJSString(ExecState*); 125 125 126 JSValue PtrgetJSNumber(); // 0 if this is not a JSNumber or number object127 128 JSValue PtrasValue() const;126 JSValue* getJSNumber(); // 0 if this is not a JSNumber or number object 127 128 JSValue* asValue() const; 129 129 130 130 JSCell* asCell() const; … … 143 143 uint32_t toUInt32SlowCase(double, bool& ok); 144 144 145 inline JSValue PtrJSValue::asValue() const145 inline JSValue* JSValue::asValue() const 146 146 { 147 147 return const_cast<JSValue*>(this);
Note:
See TracChangeset
for help on using the changeset viewer.