Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert JavaScriptCore to Modern Objective-C
https://bugs.webkit.org/show_bug.cgi?id=251797 Reviewed by NOBODY (OOPS!). JavaScriptCore was run through the Xcode's Modern Objective-C converter. However, the results were not buildable alone, so some additional changes were made to get the JavaScriptCore framework to build again. As this is an API change, this warrants modernization as: 1. This code has roots going back years, which makes sense as Safari has been around for 2 decades. Modernizing the code helps as it lays the groundwork for future patches to follow modern Objective-C coding conventions as well as being consistent with newer code written. 2. These modernizations make the code more safe while improving performance in some places. 3. If we ever need to write Swift code calling this library directly, it will be much easier to get Swift to work with this framework. * Source/JavaScriptCore/API/APICallbackFunction.h: * Source/JavaScriptCore/API/JSAPIGlobalObject.mm: * Source/JavaScriptCore/API/JSContext.mm: * Source/JavaScriptCore/API/JSContextInternal.h: * Source/JavaScriptCore/API/JSManagedValue.h: * Source/JavaScriptCore/API/JSManagedValue.mm: * Source/JavaScriptCore/API/JSScript.h: * Source/JavaScriptCore/API/JSScript.mm: * Source/JavaScriptCore/API/JSScriptInternal.h: * Source/JavaScriptCore/API/JSScriptSourceProvider.mm: * Source/JavaScriptCore/API/JSValue.mm: * Source/JavaScriptCore/API/JSVirtualMachine.mm: * Source/JavaScriptCore/API/JSWrapperMap.mm: * Source/JavaScriptCore/API/ObjCCallbackFunction.mm: * Source/JavaScriptCore/API/tests/CurrentThisInsideBlockGetterTest.mm: * Source/JavaScriptCore/API/tests/DateTests.mm: * Source/JavaScriptCore/API/tests/Regress141275.mm: * Source/JavaScriptCore/API/tests/Regress141809.mm: * Source/JavaScriptCore/API/tests/testapi.mm: * Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp: * Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm: * Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorXPCConnection.mm: * Source/JavaScriptCore/testmem/testmem.mm: * Source/WTF/wtf/cocoa/FileSystemCocoa.mm: * Source/WTF/wtf/cocoa/LanguageCocoa.mm: * Source/WTF/wtf/cocoa/NSURLExtras.mm: * Source/WebCore/bridge/objc/objc_utility.mm: * Source/WebCore/platform/mac/PluginBlocklist.mm: * Source/WebGPU/WebGPU/Adapter.mm: * Source/WebGPU/WebGPU/Device.mm: * Source/WebGPU/WebGPU/HardwareCapabilities.mm: * Source/WebKit/UIProcess/API/Cocoa/APIContentRuleListStoreCocoa.mm: * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionControllerConfiguration.mm: * Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * Source/bmalloc/bmalloc/ProcessCheck.mm:
- Loading branch information
1 parent
47cdb9c
commit 7f1fd02
Showing
36 changed files
with
387 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.