Changeset 37428 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Oct 8, 2008, 10:50:42 AM (17 years ago)
- Location:
- trunk/JavaScriptCore/API
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.cpp
r37427 r37428 93 93 JSLock lock(exec); 94 94 95 Identifier nameID = name ? name->identifier( &exec->globalData()) : Identifier(exec, "anonymous");95 Identifier nameID = name ? name->identifier(exec) : Identifier(exec, "anonymous"); 96 96 97 97 return toRef(new (exec) JSCallbackFunction(exec, callAsFunction, nameID)); … … 119 119 JSLock lock(exec); 120 120 121 Identifier nameID = name ? name->identifier( &exec->globalData()) : Identifier(exec, "anonymous");121 Identifier nameID = name ? name->identifier(exec) : Identifier(exec, "anonymous"); 122 122 123 123 ArgList args; … … 247 247 JSObject* jsObject = toJS(object); 248 248 249 return jsObject->hasProperty(exec, propertyName->identifier( &exec->globalData()));249 return jsObject->hasProperty(exec, propertyName->identifier(exec)); 250 250 } 251 251 … … 258 258 JSObject* jsObject = toJS(object); 259 259 260 JSValue* jsValue = jsObject->get(exec, propertyName->identifier( &exec->globalData()));260 JSValue* jsValue = jsObject->get(exec, propertyName->identifier(exec)); 261 261 if (exec->hadException()) { 262 262 if (exception) … … 274 274 275 275 JSObject* jsObject = toJS(object); 276 Identifier name(propertyName->identifier( &exec->globalData()));276 Identifier name(propertyName->identifier(exec)); 277 277 JSValue* jsValue = toJS(value); 278 278 … … 334 334 JSObject* jsObject = toJS(object); 335 335 336 bool result = jsObject->deleteProperty(exec, propertyName->identifier(&exec->globalData()));336 bool result = jsObject->deleteProperty(exec, propertyName->identifier(exec)); 337 337 if (exec->hadException()) { 338 338 if (exception) -
trunk/JavaScriptCore/API/OpaqueJSString.cpp
r37427 r37428 47 47 } 48 48 49 Identifier OpaqueJSString::identifier(ExecState* exec) const 50 { 51 return identifier(&exec->globalData()); 52 } 53 49 54 Identifier OpaqueJSString::identifier(JSGlobalData* globalData) const 50 55 { -
trunk/JavaScriptCore/API/OpaqueJSString.h
r37427 r37428 30 30 31 31 namespace JSC { 32 class ExecState; 32 33 class Identifier; 33 34 class JSGlobalData; 34 } 35 }; 35 36 36 37 struct OpaqueJSString : public ThreadSafeShared<OpaqueJSString> { … … 52 53 53 54 JSC::UString ustring() const; 55 56 JSC::Identifier identifier(JSC::ExecState*) const; 54 57 JSC::Identifier identifier(JSC::JSGlobalData*) const; 55 58
Note:
See TracChangeset
for help on using the changeset viewer.