Changeset 37684 in webkit for trunk/JavaScriptCore/kjs/JSValue.h
- Timestamp:
- Oct 18, 2008, 6:52:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSValue.h
r37681 r37684 96 96 97 97 // Basic conversions. 98 JSValue *toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;99 bool getPrimitiveNumber(ExecState*, double& number, JSValue *&);98 JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const; 99 bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr&); 100 100 101 101 bool toBoolean(ExecState*) const; … … 104 104 // been set in the ExecState already. 105 105 double toNumber(ExecState*) const; 106 JSValue *toJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number.106 JSValuePtr toJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number. 107 107 UString toString(ExecState*) const; 108 108 JSObject* toObject(ExecState*) const; … … 131 131 132 132 // Object operations, with the toObject operation included. 133 JSValue *get(ExecState*, const Identifier& propertyName) const;134 JSValue *get(ExecState*, const Identifier& propertyName, PropertySlot&) const;135 JSValue *get(ExecState*, unsigned propertyName) const;136 JSValue *get(ExecState*, unsigned propertyName, PropertySlot&) const;137 void put(ExecState*, const Identifier& propertyName, JSValue *, PutPropertySlot&);138 void put(ExecState*, unsigned propertyName, JSValue *);133 JSValuePtr get(ExecState*, const Identifier& propertyName) const; 134 JSValuePtr get(ExecState*, const Identifier& propertyName, PropertySlot&) const; 135 JSValuePtr get(ExecState*, unsigned propertyName) const; 136 JSValuePtr get(ExecState*, unsigned propertyName, PropertySlot&) const; 137 void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&); 138 void put(ExecState*, unsigned propertyName, JSValuePtr); 139 139 bool deleteProperty(ExecState*, const Identifier& propertyName); 140 140 bool deleteProperty(ExecState*, unsigned propertyName); … … 145 145 JSString* toThisJSString(ExecState*); 146 146 147 JSValue *getJSNumber(); // 0 if this is not a JSNumber or number object148 149 JSValue *asValue() const;147 JSValuePtr getJSNumber(); // 0 if this is not a JSNumber or number object 148 149 JSValuePtr asValue() const; 150 150 151 151 JSCell* asCell() const; … … 166 166 } 167 167 168 inline JSValue *JSValue::asValue() const169 { 170 return const_cast<JSValue *>(this);168 inline JSValuePtr JSValue::asValue() const 169 { 170 return const_cast<JSValuePtr>(this); 171 171 } 172 172
Note:
See TracChangeset
for help on using the changeset viewer.