Changeset 80254 in webkit
- Timestamp:
- Mar 3, 2011 10:28:29 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r80217 r80254 1 2011-03-03 Timothy Hatcher <timothy@apple.com> 2 3 Make APIShims usable from WebCore. 4 5 Reviewed by Oliver Hunt. 6 7 * ForwardingHeaders/JavaScriptCore/APIShims.h: Added. 8 * GNUmakefile.am: 9 * JavaScriptCore.exp: 10 * JavaScriptCore.gypi: 11 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make: 12 * JavaScriptCore.xcodeproj/project.pbxproj: 13 1 14 2011-03-03 Peter Varga <pvarga@webkit.org> 2 15 -
trunk/Source/JavaScriptCore/GNUmakefile.am
r79472 r80254 123 123 Source/JavaScriptCore/debugger/Debugger.h \ 124 124 Source/JavaScriptCore/ForwardingHeaders/JavaScriptCore/APICast.h \ 125 Source/JavaScriptCore/ForwardingHeaders/JavaScriptCore/APIShims.h \ 125 126 Source/JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScriptCore.h \ 126 127 Source/JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScript.h \ -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r80052 r80254 185 185 __ZN3JSC17createSyntaxErrorEPNS_9ExecStateERKNS_7UStringE 186 186 __ZN3JSC18DebuggerActivationC1ERNS_12JSGlobalDataEPNS_8JSObjectE 187 __ZN3JSC18MachineStackMarker14registerThreadEv 187 188 __ZN3JSC18PropertyDescriptor11setWritableEb 188 189 __ZN3JSC18PropertyDescriptor12setUndefinedEv … … 210 211 __ZN3JSC35createInterruptedExecutionExceptionEPNS_12JSGlobalDataE 211 212 __ZN3JSC3NaNE 213 __ZN3JSC4Heap16activityCallbackEv 212 214 __ZN3JSC4Heap16allocateSlowCaseEm 213 215 __ZN3JSC4Heap16objectTypeCountsEv -
trunk/Source/JavaScriptCore/JavaScriptCore.gypi
r80100 r80254 16 16 'javascriptcore_privateheader_files': [ 17 17 'API/APICast.h', 18 'API/APIShims.h', 18 19 'API/JSBasePrivate.h', 19 20 'API/JSContextRefPrivate.h', … … 252 253 'AllInOneFile.cpp', 253 254 'ForwardingHeaders/JavaScriptCore/APICast.h', 255 'ForwardingHeaders/JavaScriptCore/APIShims.h', 254 256 'ForwardingHeaders/JavaScriptCore/JSBase.h', 255 257 'ForwardingHeaders/JavaScriptCore/JSContextRef.h', -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make
r78634 r80254 7 7 -mkdir 2>NUL "%ConfigurationBuildDir%\include\JavaScriptCore" 8 8 xcopy /y /d "..\..\API\APICast.h" "%ConfigurationBuildDir%\include\JavaScriptCore" 9 xcopy /y /d "..\..\API\APIShims.h" "%ConfigurationBuildDir%\include\JavaScriptCore" 9 10 xcopy /y /d "..\..\API\JavaScript.h" "%ConfigurationBuildDir%\include\JavaScriptCore" 10 11 xcopy /y /d "..\..\API\JSBase.h" "%ConfigurationBuildDir%\include\JavaScriptCore" -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r80179 r80254 226 226 86565742115BE3DA00291F40 /* CString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 86565740115BE3DA00291F40 /* CString.cpp */; }; 227 227 86565743115BE3DA00291F40 /* CString.h in Headers */ = {isa = PBXBuildFile; fileRef = 86565741115BE3DA00291F40 /* CString.h */; settings = {ATTRIBUTES = (Private, ); }; }; 228 865F408810E7D56300947361 /* APIShims.h in Headers */ = {isa = PBXBuildFile; fileRef = 865F408710E7D56300947361 /* APIShims.h */; };228 865F408810E7D56300947361 /* APIShims.h in Headers */ = {isa = PBXBuildFile; fileRef = 865F408710E7D56300947361 /* APIShims.h */; settings = {ATTRIBUTES = (Private, ); }; }; 229 229 86676D5211FED9BC004B6863 /* BumpPointerAllocator.h in Headers */ = {isa = PBXBuildFile; fileRef = 86676D4D11FED55D004B6863 /* BumpPointerAllocator.h */; settings = {ATTRIBUTES = (Private, ); }; }; 230 230 86704B4212DB8A8100A9FE7B /* YarrSyntaxChecker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 86704B4012DB8A8100A9FE7B /* YarrSyntaxChecker.cpp */; }; … … 556 556 C0A272630E50A06300E96E15 /* NotFound.h in Headers */ = {isa = PBXBuildFile; fileRef = C0A2723F0E509F1E00E96E15 /* NotFound.h */; settings = {ATTRIBUTES = (Private, ); }; }; 557 557 DD377CBC12072C18006A2517 /* Bitmap.h in Headers */ = {isa = PBXBuildFile; fileRef = DD377CBB12072C18006A2517 /* Bitmap.h */; settings = {ATTRIBUTES = (Private, ); }; }; 558 DDF7ABD411F60ED200108E36 /* GCActivityCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = DDF7ABD211F60ED200108E36 /* GCActivityCallback.h */; };558 DDF7ABD411F60ED200108E36 /* GCActivityCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = DDF7ABD211F60ED200108E36 /* GCActivityCallback.h */; settings = {ATTRIBUTES = (Private, ); }; }; 559 559 DDF7ABD511F60ED200108E36 /* GCActivityCallbackCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DDF7ABD311F60ED200108E36 /* GCActivityCallbackCF.cpp */; }; 560 560 E124A8F70E555775003091F1 /* OpaqueJSString.h in Headers */ = {isa = PBXBuildFile; fileRef = E124A8F50E555775003091F1 /* OpaqueJSString.h */; settings = {ATTRIBUTES = (Private, ); }; }; -
trunk/Source/WebCore/ChangeLog
r80252 r80254 1 2011-03-03 Timothy Hatcher <timothy@apple.com> 2 3 Use APIEntryShim instead of JSLock in SerializedScriptValue to allow it to be used 4 by contexts not created by WebCore. 5 6 https://webkit.org/b/55642 7 8 Reviewed by Oliver Hunt. 9 10 * bindings/js/SerializedScriptValue.cpp: 11 (WebCore::SerializedScriptValue::create): Use APIEntryShim instead of JSLock. 12 (WebCore::SerializedScriptValue::deserialize): Ditto. 13 1 14 2011-03-03 Alexey Proskuryakov <ap@apple.com> 2 15 -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp
r80070 r80254 40 40 #include <limits> 41 41 #include <JavaScriptCore/APICast.h> 42 #include <JavaScriptCore/APIShims.h> 42 43 #include <runtime/DateInstance.h> 43 44 #include <runtime/Error.h> 44 45 #include <runtime/ExceptionHelpers.h> 45 #include <runtime/JSLock.h>46 46 #include <runtime/PropertyNameArray.h> 47 47 #include <runtime/RegExp.h> … … 1382 1382 PassRefPtr<SerializedScriptValue> SerializedScriptValue::create(JSContextRef originContext, JSValueRef apiValue, JSValueRef* exception) 1383 1383 { 1384 JSLock lock(SilenceAssertionsOnly);1385 1384 ExecState* exec = toJS(originContext); 1385 APIEntryShim entryShim(exec); 1386 1386 JSValue value = toJS(exec, apiValue); 1387 1387 PassRefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(exec, value); … … 1408 1408 JSValueRef SerializedScriptValue::deserialize(JSContextRef destinationContext, JSValueRef* exception) 1409 1409 { 1410 JSLock lock(SilenceAssertionsOnly);1411 1410 ExecState* exec = toJS(destinationContext); 1411 APIEntryShim entryShim(exec); 1412 1412 JSValue value = deserialize(exec, exec->lexicalGlobalObject()); 1413 1413 if (exec->hadException()) {
Note: See TracChangeset
for help on using the changeset viewer.