Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (292368 => 292369)
--- trunk/Source/_javascript_Core/ChangeLog 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/ChangeLog 2022-04-05 03:32:00 UTC (rev 292369)
@@ -1,3 +1,21 @@
+2022-04-04 Saam Barati <[email protected]>
+
+ Turn off LLInt ICs in captive portal mode
+ https://bugs.webkit.org/show_bug.cgi?id=238778
+ <rdar://84830873>
+
+ Reviewed by Yusuke Suzuki.
+
+ * bytecode/CallLinkInfo.cpp:
+ (JSC::BaselineCallLinkInfo::initialize):
+ * bytecode/Repatch.cpp:
+ (JSC::unlinkCall):
+ * llint/LLIntCommon.h:
+ * llint/LLIntSlowPaths.cpp:
+ (JSC::LLInt::LLINT_SLOW_PATH_DECL):
+ (JSC::LLInt::performLLIntGetByID):
+ * runtime/OptionsList.h:
+
2022-04-04 Geoffrey Garen <[email protected]>
Only check isPagedOut() under memory pressure
Modified: trunk/Source/_javascript_Core/bytecode/CallLinkInfo.cpp (292368 => 292369)
--- trunk/Source/_javascript_Core/bytecode/CallLinkInfo.cpp 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/bytecode/CallLinkInfo.cpp 2022-04-05 03:32:00 UTC (rev 292369)
@@ -324,7 +324,10 @@
m_frameShuffleData = makeUnique<CallFrameShuffleData>(*frameShuffleData);
}
#endif
- setSlowPathCallDestination(vm.getCTILinkCall().code());
+ if (LIKELY(Options::useLLIntICs()))
+ setSlowPathCallDestination(vm.getCTILinkCall().code());
+ else
+ setSlowPathCallDestination(vm.getCTIVirtualCall(callMode()).retagged<JSEntryPtrTag>().code());
// If JIT is disabled, we should not support dynamically generated call IC.
if (!Options::useJIT())
disallowStubs();
Modified: trunk/Source/_javascript_Core/bytecode/Repatch.cpp (292368 => 292369)
--- trunk/Source/_javascript_Core/bytecode/Repatch.cpp 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/bytecode/Repatch.cpp 2022-04-05 03:32:00 UTC (rev 292369)
@@ -163,7 +163,10 @@
{
dataLogLnIf(Options::dumpDisassembly(), "Unlinking CallLinkInfo: ", RawPointer(&callLinkInfo));
- revertCall(vm, callLinkInfo, vm.getCTILinkCall().retagged<JITStubRoutinePtrTag>());
+ if (UNLIKELY(!Options::useLLIntICs() && callLinkInfo.type() == CallLinkInfo::Type::Baseline))
+ revertCall(vm, callLinkInfo, vm.getCTIVirtualCall(callLinkInfo.callMode()));
+ else
+ revertCall(vm, callLinkInfo, vm.getCTILinkCall().retagged<JITStubRoutinePtrTag>());
}
MacroAssemblerCodePtr<JSEntryPtrTag> jsToWasmICCodePtr(VM& vm, CodeSpecializationKind kind, JSObject* callee)
Modified: trunk/Source/_javascript_Core/llint/LLIntCommon.h (292368 => 292369)
--- trunk/Source/_javascript_Core/llint/LLIntCommon.h 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/llint/LLIntCommon.h 2022-04-05 03:32:00 UTC (rev 292369)
@@ -38,6 +38,3 @@
#else
#define LLINT_ALWAYS_ALLOCATE_SLOW 0
#endif
-
-// Disable inline caching of get_by_id and put_by_id.
-#define LLINT_ALWAYS_ACCESS_SLOW 0
Modified: trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp (292368 => 292369)
--- trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp 2022-04-05 03:32:00 UTC (rev 292369)
@@ -647,7 +647,7 @@
baseValue.getPropertySlot(globalObject, ident, slot);
JSValue result = slot.getPureResult();
- if (!LLINT_ALWAYS_ACCESS_SLOW && slot.isCacheable() && !slot.isUnset()) {
+ if (Options::useLLIntICs() && slot.isCacheable() && !slot.isUnset()) {
ASSERT(!slot.isTaintedByOpaqueObject());
ASSERT(baseValue.isCell());
@@ -699,7 +699,7 @@
JSValue result = found ? slot.getValue(globalObject, ident) : jsUndefined();
LLINT_CHECK_EXCEPTION();
- if (!LLINT_ALWAYS_ACCESS_SLOW && slot.isCacheable() && !slot.isUnset()) {
+ if (Options::useLLIntICs() && slot.isCacheable() && !slot.isUnset()) {
auto& metadata = bytecode.metadata(codeBlock);
{
StructureID oldStructureID = metadata.m_structureID;
@@ -814,7 +814,7 @@
JSValue result = baseValue.get(globalObject, ident, slot);
RETURN_IF_EXCEPTION(throwScope, { });
- if (!LLINT_ALWAYS_ACCESS_SLOW
+ if (Options::useLLIntICs()
&& baseValue.isCell()
&& slot.isCacheable()
&& !slot.isUnset()) {
@@ -865,7 +865,7 @@
if (!(--metadata.hitCountForLLIntCaching))
setupGetByIdPrototypeCache(globalObject, vm, codeBlock, pc, metadata, baseCell, slot, ident);
}
- } else if (!LLINT_ALWAYS_ACCESS_SLOW && isJSArray(baseValue) && ident == vm.propertyNames->length) {
+ } else if (Options::useLLIntICs() && isJSArray(baseValue) && ident == vm.propertyNames->length) {
{
ConcurrentJSLocker locker(codeBlock->m_lock);
metadata.setArrayLengthMode();
@@ -962,7 +962,7 @@
baseValue.putInline(globalObject, ident, getOperand(callFrame, bytecode.m_value), slot);
LLINT_CHECK_EXCEPTION();
- if (!LLINT_ALWAYS_ACCESS_SLOW
+ if (Options::useLLIntICs()
&& baseValue.isCell()
&& slot.isCacheablePut()
&& oldStructure->propertyAccessesAreCacheable()) {
@@ -1153,7 +1153,7 @@
baseObject->getPrivateField(globalObject, property, slot);
LLINT_CHECK_EXCEPTION();
- if (!LLINT_ALWAYS_ACCESS_SLOW && baseValue.isCell() && slot.isCacheable() && !slot.isUnset()) {
+ if (Options::useLLIntICs() && baseValue.isCell() && slot.isCacheable() && !slot.isUnset()) {
auto& metadata = bytecode.metadata(codeBlock);
{
StructureID oldStructureID = metadata.m_structureID;
@@ -1283,7 +1283,7 @@
}
LLINT_CHECK_EXCEPTION();
- if (!LLINT_ALWAYS_ACCESS_SLOW
+ if (Options::useLLIntICs()
&& baseValue.isCell()
&& slot.isCacheablePut()
&& subscript.isCell()
@@ -1372,7 +1372,7 @@
baseObject->setPrivateBrand(globalObject, brand);
LLINT_CHECK_EXCEPTION();
- if (!LLINT_ALWAYS_ACCESS_SLOW && !oldStructure->isDictionary()) {
+ if (Options::useLLIntICs() && !oldStructure->isDictionary()) {
GCSafeConcurrentJSLocker locker(codeBlock->m_lock, vm);
Structure* newStructure = baseObject->structure(vm);
@@ -1415,7 +1415,7 @@
// Since a brand can't ever be removed from an object, it's safe to
// rely on StructureID even if it's an uncacheable dictionary.
Structure* structure = baseObject->structure(vm);
- if (!LLINT_ALWAYS_ACCESS_SLOW) {
+ if (Options::useLLIntICs()) {
GCSafeConcurrentJSLocker locker(codeBlock->m_lock, vm);
metadata.m_structureID = structure->id();
Modified: trunk/Source/_javascript_Core/runtime/OptionsList.h (292368 => 292369)
--- trunk/Source/_javascript_Core/runtime/OptionsList.h 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/_javascript_Core/runtime/OptionsList.h 2022-04-05 03:32:00 UTC (rev 292369)
@@ -532,6 +532,7 @@
v(Bool, verboseExecutablePoolAllocation, false, Normal, nullptr) \
v(Bool, useDataICInOptimizingJIT, false, Normal, nullptr) \
v(Bool, useDataICSharing, false, Normal, nullptr) \
+ v(Bool, useLLIntICs, true, Normal, "Use property and call ICs in LLInt code.") \
v(Bool, useBaselineJITCodeSharing, is64Bit(), Normal, nullptr) \
\
/* Feature Flags */\
Modified: trunk/Source/WebKit/ChangeLog (292368 => 292369)
--- trunk/Source/WebKit/ChangeLog 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/WebKit/ChangeLog 2022-04-05 03:32:00 UTC (rev 292369)
@@ -1,3 +1,14 @@
+2022-04-04 Saam Barati <[email protected]>
+
+ Turn off LLInt ICs in captive portal mode
+ https://bugs.webkit.org/show_bug.cgi?id=238778
+ <rdar://84830873>
+
+ Reviewed by Yusuke Suzuki.
+
+ * Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h:
+ (WebKit::XPCServiceInitializer):
+
2022-04-04 Adrian Perez de Castro <[email protected]>
[WPE][GTK] Fix code examples in reference documentation
Modified: trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h (292368 => 292369)
--- trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h 2022-04-05 03:32:00 UTC (rev 292369)
@@ -97,6 +97,7 @@
JSC::Options::AllowUnfinalizedAccessScope scope;
JSC::Options::useGenerationalGC() = false;
JSC::Options::useConcurrentGC() = false;
+ JSC::Options::useLLIntICs() = false;
}
if (xpc_dictionary_get_bool(initializerMessage, "disable-jit"))
JSC::ExecutableAllocator::setJITEnabled(false);
Modified: trunk/Tools/ChangeLog (292368 => 292369)
--- trunk/Tools/ChangeLog 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Tools/ChangeLog 2022-04-05 03:32:00 UTC (rev 292369)
@@ -1,3 +1,13 @@
+2022-04-04 Saam Barati <[email protected]>
+
+ Turn off LLInt ICs in captive portal mode
+ https://bugs.webkit.org/show_bug.cgi?id=238778
+ <rdar://84830873>
+
+ Reviewed by Yusuke Suzuki.
+
+ * Scripts/run-jsc-stress-tests:
+
2022-04-04 Simon Fraser <[email protected]>
Fix the TestWebKitAPI build with an iOS 15.4 internal SDK
Modified: trunk/Tools/Scripts/run-jsc-stress-tests (292368 => 292369)
--- trunk/Tools/Scripts/run-jsc-stress-tests 2022-04-05 03:29:17 UTC (rev 292368)
+++ trunk/Tools/Scripts/run-jsc-stress-tests 2022-04-05 03:32:00 UTC (rev 292369)
@@ -1318,6 +1318,7 @@
"--validateGraphAtEachPhase=true",
"--useSourceProviderCache=false",
"--useRandomizingExecutableIslandAllocation=true",
+ "--useLLIntICs=false",
] +
NO_CJIT_OPTIONS
],