Title: [253136] trunk/Source/_javascript_Core
- Revision
- 253136
- Author
- [email protected]
- Date
- 2019-12-04 17:37:01 -0800 (Wed, 04 Dec 2019)
Log Message
Fix a broken assertion in GetByStatus::computeForStubInfoWithoutExitSiteFeedback().
https://bugs.webkit.org/show_bug.cgi?id=204866
Reviewed by Saam Barati.
The assertion wrong assumes that access.offset() cannot be invalid unless the
access.type() is a Miss. However, if the AccessCase is a Custom value or accessor,
the offset is always invalid. This patch fixes this assertion.
* bytecode/AccessCase.h:
(JSC::AccessCase::isCustom const):
* bytecode/GetByStatus.cpp:
(JSC::GetByStatus::computeForStubInfoWithoutExitSiteFeedback):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (253135 => 253136)
--- trunk/Source/_javascript_Core/ChangeLog 2019-12-05 01:24:22 UTC (rev 253135)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-12-05 01:37:01 UTC (rev 253136)
@@ -1,3 +1,19 @@
+2019-12-04 Mark Lam <[email protected]>
+
+ Fix a broken assertion in GetByStatus::computeForStubInfoWithoutExitSiteFeedback().
+ https://bugs.webkit.org/show_bug.cgi?id=204866
+
+ Reviewed by Saam Barati.
+
+ The assertion wrong assumes that access.offset() cannot be invalid unless the
+ access.type() is a Miss. However, if the AccessCase is a Custom value or accessor,
+ the offset is always invalid. This patch fixes this assertion.
+
+ * bytecode/AccessCase.h:
+ (JSC::AccessCase::isCustom const):
+ * bytecode/GetByStatus.cpp:
+ (JSC::GetByStatus::computeForStubInfoWithoutExitSiteFeedback):
+
2019-12-04 Yusuke Suzuki <[email protected]>
Unreviewed, rolling out r252416, vimeo does not work
Modified: trunk/Source/_javascript_Core/bytecode/AccessCase.h (253135 => 253136)
--- trunk/Source/_javascript_Core/bytecode/AccessCase.h 2019-12-05 01:24:22 UTC (rev 253135)
+++ trunk/Source/_javascript_Core/bytecode/AccessCase.h 2019-12-05 01:37:01 UTC (rev 253136)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2019 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -179,6 +179,19 @@
// past the call.
bool doesCalls(Vector<JSCell*>* cellsToMark = nullptr) const;
+ bool isCustom() const
+ {
+ switch (type()) {
+ case CustomValueGetter:
+ case CustomAccessorGetter:
+ case CustomValueSetter:
+ case CustomAccessorSetter:
+ return true;
+ default:
+ return false;
+ }
+ }
+
bool isGetter() const
{
switch (type()) {
Modified: trunk/Source/_javascript_Core/bytecode/GetByStatus.cpp (253135 => 253136)
--- trunk/Source/_javascript_Core/bytecode/GetByStatus.cpp 2019-12-05 01:24:22 UTC (rev 253135)
+++ trunk/Source/_javascript_Core/bytecode/GetByStatus.cpp 2019-12-05 01:37:01 UTC (rev 253136)
@@ -292,7 +292,7 @@
return GetByStatus(JSC::slowVersion(summary), *stubInfo);
} }
- ASSERT((AccessCase::Miss == access.type()) == (access.offset() == invalidOffset));
+ ASSERT((AccessCase::Miss == access.type() || access.isCustom()) == (access.offset() == invalidOffset));
GetByIdVariant variant(
trackIdentifiers == TrackIdentifiers::Yes ? access.identifier() : Box<Identifier>(nullptr), StructureSet(structure), complexGetStatus.offset(),
complexGetStatus.conditionSet(), WTFMove(callLinkStatus),
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes