Title: [265588] branches/safari-610.1-branch/Source/_javascript_Core
- Revision
- 265588
- Author
- alanc...@apple.com
- Date
- 2020-08-12 18:46:18 -0700 (Wed, 12 Aug 2020)
Log Message
Cherry-pick r265431. rdar://problem/66943961
REGRESSION(r261159) PokerBros only shows black screen
https://bugs.webkit.org/show_bug.cgi?id=215293
<rdar://problem/66073740>
Reviewed by Keith Miller.
The PokerBros app has some logic that was broken by the change in behavior of r261159.
It caused the app do do nothing except show a black screen upon opening.
Revert to the old behavior for this app until they update to iOS14.
* runtime/JSObject.cpp:
(JSC::needsOldStringName):
(JSC::JSObject::toStringName):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-610.1-branch/Source/_javascript_Core/ChangeLog (265587 => 265588)
--- branches/safari-610.1-branch/Source/_javascript_Core/ChangeLog 2020-08-13 01:46:16 UTC (rev 265587)
+++ branches/safari-610.1-branch/Source/_javascript_Core/ChangeLog 2020-08-13 01:46:18 UTC (rev 265588)
@@ -1,5 +1,43 @@
2020-08-12 Alan Coon <alanc...@apple.com>
+ Cherry-pick r265431. rdar://problem/66943961
+
+ REGRESSION(r261159) PokerBros only shows black screen
+ https://bugs.webkit.org/show_bug.cgi?id=215293
+ <rdar://problem/66073740>
+
+ Reviewed by Keith Miller.
+
+ The PokerBros app has some logic that was broken by the change in behavior of r261159.
+ It caused the app do do nothing except show a black screen upon opening.
+ Revert to the old behavior for this app until they update to iOS14.
+
+ * runtime/JSObject.cpp:
+ (JSC::needsOldStringName):
+ (JSC::JSObject::toStringName):
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-08-10 Alex Christensen <achristen...@webkit.org>
+
+ REGRESSION(r261159) PokerBros only shows black screen
+ https://bugs.webkit.org/show_bug.cgi?id=215293
+ <rdar://problem/66073740>
+
+ Reviewed by Keith Miller.
+
+ The PokerBros app has some logic that was broken by the change in behavior of r261159.
+ It caused the app do do nothing except show a black screen upon opening.
+ Revert to the old behavior for this app until they update to iOS14.
+
+ * runtime/JSObject.cpp:
+ (JSC::needsOldStringName):
+ (JSC::JSObject::toStringName):
+
+2020-08-12 Alan Coon <alanc...@apple.com>
+
Cherry-pick r265405. rdar://problem/66943811
[JSC] Speculate children first in DFG NewArray
Modified: branches/safari-610.1-branch/Source/_javascript_Core/runtime/JSObject.cpp (265587 => 265588)
--- branches/safari-610.1-branch/Source/_javascript_Core/runtime/JSObject.cpp 2020-08-13 01:46:16 UTC (rev 265587)
+++ branches/safari-610.1-branch/Source/_javascript_Core/runtime/JSObject.cpp 2020-08-13 01:46:18 UTC (rev 265588)
@@ -44,6 +44,10 @@
#include "VMInlines.h"
#include <wtf/Assertions.h>
+#if PLATFORM(IOS)
+#include <wtf/spi/darwin/dyldSPI.h>
+#endif
+
namespace JSC {
// We keep track of the size of the last array after it was grown. We use this
@@ -509,9 +513,27 @@
return info->className;
}
+#if PLATFORM(IOS)
+inline static bool isPokerBros()
+{
+ auto bundleID = CFBundleGetIdentifier(CFBundleGetMainBundle());
+ return bundleID
+ && CFEqual(bundleID, CFSTR("com.kpgame.PokerBros"))
+ && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_14_0;
+}
+#endif
+
String JSObject::toStringName(const JSObject* object, JSGlobalObject* globalObject)
{
VM& vm = globalObject->vm();
+#if PLATFORM(IOS)
+ static bool needsOldStringName = isPokerBros();
+ if (UNLIKELY(needsOldStringName)) {
+ const ClassInfo* info = object->classInfo(vm);
+ ASSERT(info);
+ return info->className;
+ }
+#endif
auto scope = DECLARE_THROW_SCOPE(vm);
bool objectIsArray = isArray(globalObject, object);
RETURN_IF_EXCEPTION(scope, String());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes