[webkit-changes] [WebKit/WebKit] 2a042f: [JSC] JSCell::toX should use jsDynamicCast/jsSecur...

Keith Miller noreply at github.com
Mon Mar 11 19:19:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2a042fede0e705bae4b8ce039b18442696ebb5ce
      https://github.com/WebKit/WebKit/commit/2a042fede0e705bae4b8ce039b18442696ebb5ce
  Author: Keith Miller <keith_miller at apple.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSCell.cpp

  Log Message:
  -----------
  [JSC] JSCell::toX should use jsDynamicCast/jsSecureCast
https://bugs.webkit.org/show_bug.cgi?id=270797
rdar://124119022

Reviewed by Mark Lam.

General code quality improvement. We also might as well add a release assert
that the final case is correct as it doesn't seem to be a perf regression.

* Source/JavaScriptCore/runtime/JSCell.cpp:
(JSC::JSCell::toPrimitive const):
(JSC::JSCell::toNumber const):
(JSC::JSCell::toObjectSlow const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list