Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 799e388d2eb5ad657027a45b14091070d06925e8
https://github.com/WebKit/WebKit/commit/799e388d2eb5ad657027a45b14091070d06925e8
Author: Yijia Huang <[email protected]>
Date: 2026-05-27 (Wed, 27 May 2026)
Changed paths:
A JSTests/stress/generator-expression-info-multiwide-remap.js
M Source/JavaScriptCore/bytecode/ExpressionInfo.cpp
M Source/JavaScriptCore/bytecode/ExpressionInfo.h
M Source/JavaScriptCore/bytecode/ExpressionInfoInlines.h
Log Message:
-----------
[JSC] ExpressionInfo::Encoder::adjustInstPC should take an index instead of a
pointer
https://bugs.webkit.org/show_bug.cgi?id=309843
rdar://172411808
Reviewed by Mark Lam.
adjustInstPC() previously took a raw EncodedInfo* pointer that aliased
m_expressionInfoEncodedInfo's backing buffer. This is fragile since the
pointer can become invalid if the vector is resized.
Change adjustInstPC() to take an unsigned index instead. An integer
index remains valid across reallocations since vector element access
always recomputes the address from the current base pointer.
Test: JSTests/stress/generator-expression-info-multiwide-remap.js
Originally-landed-as: 305413.466@rapid/safari-7624.2.5.110-branch
(31c074842fc5). rdar://176062572
Canonical link: https://commits.webkit.org/313990@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications