Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 628799f

Browse files
Give the jsc shell the JIT entitlement
https://bugs.webkit.org/show_bug.cgi?id=188324 <rdar://problem/42885806> Reviewed by Dan Bernstein. This should help us in ensuring the system jsc is able to JIT. * Configurations/JSC.xcconfig: * JavaScriptCore.xcodeproj/project.pbxproj: * allow-jit-macOS.entitlements: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@234576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 51ecb2f commit 628799f

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

Source/JavaScriptCore/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2018-08-03 Saam Barati <[email protected]>
2+
3+
Give the `jsc` shell the JIT entitlement
4+
https://bugs.webkit.org/show_bug.cgi?id=188324
5+
<rdar://problem/42885806>
6+
7+
Reviewed by Dan Bernstein.
8+
9+
This should help us in ensuring the system jsc is able to JIT.
10+
11+
* Configurations/JSC.xcconfig:
12+
* JavaScriptCore.xcodeproj/project.pbxproj:
13+
* allow-jit-macOS.entitlements: Added.
14+
115
2018-08-03 Alex Christensen <[email protected]>
216

317
Fix spelling of "overridden"

Source/JavaScriptCore/Configurations/JSC.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ WK_RELOCATABLE_FRAMEWORKS_LDFLAGS_YES = -Wl,-dyld_env,DYLD_FRAMEWORK_PATH=@execu
3232

3333
PRODUCT_NAME = jsc;
3434
CODE_SIGN_ENTITLEMENTS[sdk=iphone*] = entitlements.plist;
35+
CODE_SIGN_ENTITLEMENTS[sdk=macosx*] = allow-jit-macOS.entitlements;
3536
OTHER_CODE_SIGN_FLAGS[sdk=iphone*] = -i com.apple.jsc;
3637

3738
// Explicitly add the PrivateHeaders directory to the search path so that generated header files can be found in production builds.

Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,6 +3701,8 @@
37013701
79CFC6EF1C33B10000C768EA /* LLIntPCRanges.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LLIntPCRanges.h; path = llint/LLIntPCRanges.h; sourceTree = "<group>"; };
37023702
79D5CD581C1106A900CECA07 /* SamplingProfiler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SamplingProfiler.cpp; sourceTree = "<group>"; };
37033703
79D5CD591C1106A900CECA07 /* SamplingProfiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SamplingProfiler.h; sourceTree = "<group>"; };
3704+
79D7B0E121152FD200FE7C64 /* entitlements.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = entitlements.plist; sourceTree = "<group>"; };
3705+
79D7B0E221152FD300FE7C64 /* allow-jit-macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "allow-jit-macOS.entitlements"; sourceTree = "<group>"; };
37043706
79DAE2791E03C82200B526AA /* WasmExceptionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WasmExceptionType.h; sourceTree = "<group>"; };
37053707
79DFCBDA1D88C59600527D03 /* HasOwnPropertyCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HasOwnPropertyCache.h; sourceTree = "<group>"; };
37063708
79EE0BFD1B4AFB85000385C9 /* VariableEnvironment.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VariableEnvironment.cpp; sourceTree = "<group>"; };
@@ -4941,6 +4943,8 @@
49414943
F5C290E60284F98E018635CA /* JavaScriptCorePrefix.h */,
49424944
45E12D8806A49B0F00E9DF84 /* jsc.cpp */,
49434945
A7C225CC139981F100FF1662 /* KeywordLookupGenerator.py */,
4946+
79D7B0E221152FD300FE7C64 /* allow-jit-macOS.entitlements */,
4947+
79D7B0E121152FD200FE7C64 /* entitlements.plist */,
49444948
1432EBD70A34CAD400717B9F /* API */,
49454949
9688CB120ED12B4E001D649F /* assembler */,
49464950
0FEC84B21BDACD5E0080FF74 /* b3 */,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)