Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8268f5fdf8ebf9331602943fe32281afd03984ff
      
https://github.com/WebKit/WebKit/commit/8268f5fdf8ebf9331602943fe32281afd03984ff
  Author: Vassili Bykov <[email protected]>
  Date:   2025-10-02 (Thu, 02 Oct 2025)

  Changed paths:
    M Source/JavaScriptCore/interpreter/VMEntryRecord.h
    M Source/JavaScriptCore/runtime/VM.h

  Log Message:
  -----------
  Assert the assumption that two VM fields are loadable as a pair
https://bugs.webkit.org/show_bug.cgi?id=299933
rdar://161707462

Reviewed by Mark Lam and Justin Michaud.

Fields `VM::topCallFrame` and `VM::topEntryFrame` are loaded and stored as a 
pair by the
assembly code. This PR adds a static assert to verify that the fields are laid 
out
accordingly, and a comment to point out that some loads and stores of 
`VM::topEntryFrame`
are implicit in pair instructions operating on `VM::topCallFrame`. A similar 
comment is
added to `VMEntryRecord`, which already has a static assert for its pair of 
fields used
with pair instructions.

The patch does not touch executable code and is not directly testable.

Canonical link: https://commits.webkit.org/300898@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to