Title: [241883] branches/safari-607-branch
- Revision
- 241883
- Author
- [email protected]
- Date
- 2019-02-21 13:26:58 -0800 (Thu, 21 Feb 2019)
Log Message
Cherry-pick r241613. rdar://problem/48243234
[JSC] CodeBlock::jettison should clear related watchpoints
https://bugs.webkit.org/show_bug.cgi?id=194544
Reviewed by Mark Lam.
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::jettison):
* dfg/DFGCommonData.h:
(JSC::DFG::CommonData::clearWatchpoints): Added.
* dfg/CommonData.cpp:
(JSC::DFG::CommonData::clearWatchpoints): Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Added Paths
Diff
Modified: branches/safari-607-branch/JSTests/ChangeLog (241882 => 241883)
--- branches/safari-607-branch/JSTests/ChangeLog 2019-02-21 21:26:54 UTC (rev 241882)
+++ branches/safari-607-branch/JSTests/ChangeLog 2019-02-21 21:26:58 UTC (rev 241883)
@@ -1,3 +1,32 @@
+2019-02-20 Alan Coon <[email protected]>
+
+ Cherry-pick r241613. rdar://problem/48243234
+
+ [JSC] CodeBlock::jettison should clear related watchpoints
+ https://bugs.webkit.org/show_bug.cgi?id=194544
+
+ Reviewed by Mark Lam.
+
+ * bytecode/CodeBlock.cpp:
+ (JSC::CodeBlock::jettison):
+ * dfg/DFGCommonData.h:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+ * dfg/CommonData.cpp:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-02-15 Robin Morisset <[email protected]>
+ CodeBlock::jettison should clear related watchpoints
+ https://bugs.webkit.org/show_bug.cgi?id=194544
+
+ Reviewed by Mark Lam.
+
+ * stress/regexp-replace-double-watchpoint.js: Added.
+ (foo):
+
2019-02-13 Alan Coon <[email protected]>
Cherry-pick r241228. rdar://problem/47971567
Added: branches/safari-607-branch/JSTests/stress/regexp-replace-double-watchpoint.js (0 => 241883)
--- branches/safari-607-branch/JSTests/stress/regexp-replace-double-watchpoint.js (rev 0)
+++ branches/safari-607-branch/JSTests/stress/regexp-replace-double-watchpoint.js 2019-02-21 21:26:58 UTC (rev 241883)
@@ -0,0 +1,19 @@
+function foo() {
+ for (const x in []) {
+ new Float64Array(65493);
+ }
+
+ const nullRegexp = RegExp();
+
+ for (let i = 0; i < 10000; i++) {
+ function bar() {
+ nullRegexp.test("asdf");
+ }
+ bar();
+ }
+
+ for (let j = 13.37; j < 10000; j++) {
+ [].__proto__[j] = 0;
+ }
+}
+"ii".replace(/i/g, foo);
Modified: branches/safari-607-branch/Source/_javascript_Core/ChangeLog (241882 => 241883)
--- branches/safari-607-branch/Source/_javascript_Core/ChangeLog 2019-02-21 21:26:54 UTC (rev 241882)
+++ branches/safari-607-branch/Source/_javascript_Core/ChangeLog 2019-02-21 21:26:58 UTC (rev 241883)
@@ -1,5 +1,39 @@
2019-02-20 Alan Coon <[email protected]>
+ Cherry-pick r241613. rdar://problem/48243234
+
+ [JSC] CodeBlock::jettison should clear related watchpoints
+ https://bugs.webkit.org/show_bug.cgi?id=194544
+
+ Reviewed by Mark Lam.
+
+ * bytecode/CodeBlock.cpp:
+ (JSC::CodeBlock::jettison):
+ * dfg/DFGCommonData.h:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+ * dfg/CommonData.cpp:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-02-15 Robin Morisset <[email protected]>
+
+ CodeBlock::jettison should clear related watchpoints
+ https://bugs.webkit.org/show_bug.cgi?id=194544
+
+ Reviewed by Mark Lam.
+
+ * bytecode/CodeBlock.cpp:
+ (JSC::CodeBlock::jettison):
+ * dfg/DFGCommonData.h:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+ * dfg/CommonData.cpp:
+ (JSC::DFG::CommonData::clearWatchpoints): Added.
+
+2019-02-20 Alan Coon <[email protected]>
+
Cherry-pick r241547. rdar://problem/48220627
Web Inspector: don't include accessibility role in DOM.Node object payloads
Modified: branches/safari-607-branch/Source/_javascript_Core/bytecode/CodeBlock.cpp (241882 => 241883)
--- branches/safari-607-branch/Source/_javascript_Core/bytecode/CodeBlock.cpp 2019-02-21 21:26:54 UTC (rev 241882)
+++ branches/safari-607-branch/Source/_javascript_Core/bytecode/CodeBlock.cpp 2019-02-21 21:26:58 UTC (rev 241883)
@@ -1930,6 +1930,9 @@
// 2) Make sure that if we call the owner executable, then we shouldn't call this CodeBlock.
#if ENABLE(DFG_JIT)
+ if (JITCode::isOptimizingJIT(jitType()))
+ jitCode()->dfgCommon()->clearWatchpoints();
+
if (reason != Profiler::JettisonDueToOldAge) {
Profiler::Compilation* compilation = jitCode()->dfgCommon()->compilation.get();
if (UNLIKELY(compilation))
Modified: branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.cpp (241882 => 241883)
--- branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.cpp 2019-02-21 21:26:54 UTC (rev 241882)
+++ branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.cpp 2019-02-21 21:26:58 UTC (rev 241883)
@@ -205,6 +205,13 @@
#endif
}
+void CommonData::clearWatchpoints()
+{
+ watchpoints.clear();
+ adaptiveStructureWatchpoints.clear();
+ adaptiveInferredPropertyValueWatchpoints.clear();
+}
+
} } // namespace JSC::DFG
#endif // ENABLE(DFG_JIT)
Modified: branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.h (241882 => 241883)
--- branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.h 2019-02-21 21:26:54 UTC (rev 241882)
+++ branches/safari-607-branch/Source/_javascript_Core/dfg/DFGCommonData.h 2019-02-21 21:26:58 UTC (rev 241883)
@@ -114,6 +114,8 @@
void validateReferences(const TrackedReferences&);
static ptrdiff_t frameRegisterCountOffset() { return OBJECT_OFFSETOF(CommonData, frameRegisterCount); }
+
+ void clearWatchpoints();
RefPtr<InlineCallFrameSet> inlineCallFrames;
Vector<CodeOrigin, 0, UnsafeVectorOverflow> codeOrigins;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes