Rubber stamped by Eric.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Nov 2005 03:10:03 +0000 (03:10 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Nov 2005 03:10:03 +0000 (03:10 +0000)
- renamed InterpreterLock to JSLock

        * JSUtils.cpp:
        (CFStringToUString):
        (JSObjectKJSValue):
        (KJSValueToCFTypeInternal):
        * JSValueWrapper.cpp:
        (JSValueWrapper::JSObjectCopyPropertyNames):
        (JSValueWrapper::JSObjectCopyProperty):
        (JSValueWrapper::JSObjectSetProperty):
        (JSValueWrapper::JSObjectCallFunction):
        (JSValueWrapper::JSObjectCopyCFValue):
        * JavaScriptGlue.cpp:
        (JSRunCreate):
        (JSCollect):
        (JSLockInterpreter):
        (JSUnlockInterpreter):
        * UserObjectImp.cpp:
        (UserObjectImp::callAsFunction):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12216 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptGlue/ChangeLog
JavaScriptGlue/JSUtils.cpp
JavaScriptGlue/JSValueWrapper.cpp
JavaScriptGlue/JavaScriptGlue.cpp
JavaScriptGlue/UserObjectImp.cpp

index 21ca430bac415f9d09ba04ab87dcc844310d0e52..d7260eca570e108fa3a7f5f9a41258f784532945 100644 (file)
@@ -1,3 +1,27 @@
+2005-11-26  Maciej Stachowiak  <mjs@apple.com>
+
+        Rubber stamped by Eric.
+
+       - renamed InterpreterLock to JSLock
+
+        * JSUtils.cpp:
+        (CFStringToUString):
+        (JSObjectKJSValue):
+        (KJSValueToCFTypeInternal):
+        * JSValueWrapper.cpp:
+        (JSValueWrapper::JSObjectCopyPropertyNames):
+        (JSValueWrapper::JSObjectCopyProperty):
+        (JSValueWrapper::JSObjectSetProperty):
+        (JSValueWrapper::JSObjectCallFunction):
+        (JSValueWrapper::JSObjectCopyCFValue):
+        * JavaScriptGlue.cpp:
+        (JSRunCreate):
+        (JSCollect):
+        (JSLockInterpreter):
+        (JSUnlockInterpreter):
+        * UserObjectImp.cpp:
+        (UserObjectImp::callAsFunction):
+
 2005-11-16  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Geoff.
index debfaa8ab17441ece79197de85ca423c5df54b6a..637fa8091e4741e880bc068a08df51e841dee6d7 100644 (file)
@@ -26,7 +26,7 @@ static CFTypeRef KJSValueToCFTypeInternal(ValueImp *inValue, ExecState *exec, Ob
 
 UString CFStringToUString(CFStringRef inCFString)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     UString result;
     if (inCFString) {
@@ -104,7 +104,7 @@ JSUserObject* KJSValueToJSObject(ValueImp *inValue, ExecState *exec)
 //--------------------------------------------------------------------------
 ValueImp *JSObjectKJSValue(JSUserObject* ptr)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     ValueImp *result = Undefined();
     if (ptr)
@@ -195,7 +195,7 @@ CFTypeRef KJSValueToCFTypeInternal(ValueImp *inValue, ExecState *exec, ObjectImp
 
     CFTypeRef result = 0;
 
-    InterpreterLock lock;
+    JSLock lock;
 
     switch (inValue->type())
     {
index 6b18fec0ff6a5a9f541d243f745b7fc3c01a7afc..d1a6460b854f3bb42c37dbc6dc3a5ac61789a162 100644 (file)
@@ -43,7 +43,7 @@ void JSValueWrapper::JSObjectDispose(void *data)
 
 CFArrayRef JSValueWrapper::JSObjectCopyPropertyNames(void *data)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     CFMutableArrayRef result = 0;
     JSValueWrapper* ptr = (JSValueWrapper*)data;
@@ -77,7 +77,7 @@ CFArrayRef JSValueWrapper::JSObjectCopyPropertyNames(void *data)
 
 JSObjectRef JSValueWrapper::JSObjectCopyProperty(void *data, CFStringRef propertyName)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     JSObjectRef result = 0;
     JSValueWrapper* ptr = (JSValueWrapper*)data;
@@ -101,7 +101,7 @@ JSObjectRef JSValueWrapper::JSObjectCopyProperty(void *data, CFStringRef propert
 
 void JSValueWrapper::JSObjectSetProperty(void *data, CFStringRef propertyName, JSObjectRef jsValue)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     JSValueWrapper* ptr = (JSValueWrapper*)data;
     if (ptr)
@@ -115,7 +115,7 @@ void JSValueWrapper::JSObjectSetProperty(void *data, CFStringRef propertyName, J
 
 JSObjectRef JSValueWrapper::JSObjectCallFunction(void *data, JSObjectRef thisObj, CFArrayRef args)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     JSObjectRef result = 0;
     JSValueWrapper* ptr = (JSValueWrapper*)data;
@@ -151,7 +151,7 @@ JSObjectRef JSValueWrapper::JSObjectCallFunction(void *data, JSObjectRef thisObj
 
 CFTypeRef JSValueWrapper::JSObjectCopyCFValue(void *data)
 {
-    InterpreterLock lock;
+    JSLock lock;
 
     CFTypeRef result = 0;
     JSValueWrapper* ptr = (JSValueWrapper*)data;
index 09df020e1a80273b082f4e65b9d9bd53664c14ff..f138b75142ec06e0acddf8f693e675bd038034f7 100644 (file)
@@ -217,7 +217,7 @@ JSRunRef JSRunCreate(CFStringRef jsSource, JSFlags inFlags)
     JSRunRef result = 0;
     if (jsSource)
     {
-        InterpreterLock lock;
+        JSLock lock;
         result = (JSRunRef) new JSRun(jsSource, inFlags);
     }
     return result;
@@ -307,7 +307,7 @@ bool JSRunCheckSyntax(JSRunRef ref)
 */
 void JSCollect(void)
 {
-    InterpreterLock lock;
+    JSLock lock;
     Collector::collect();
 }
 
@@ -615,11 +615,11 @@ CFMutableArrayRef JSCreateJSArrayFromCFArray(CFArrayRef array)
 
 void JSLockInterpreter()
 {
-    InterpreterLock::lock();
+    JSLock::lock();
 }
 
 
 void JSUnlockInterpreter()
 {
-    InterpreterLock::unlock();
+    JSLock::unlock();
 }
index fbd86baf8ee82d677dbe3126859aca8095ac150a..52d5e56430071cc29f123dca1b48cee2825b9f16 100644 (file)
@@ -74,7 +74,7 @@ ValueImp *UserObjectImp::callAsFunction(ExecState *exec, ObjectImp *thisObj, con
 
         JSUserObject* jsResult;
         { // scope
-            InterpreterLock::DropAllLocks dropLocks;
+            JSLock::DropAllLocks dropLocks;
 
             // implementsCall should have guarded against a NULL fJSUserObject.
             assert(fJSUserObject);