[webkit-changes] [WebKit/WebKit] d6903a: [JSC] WebAssembly.Memory's buffer should not be gr...

Yusuke Suzuki noreply at github.com
Mon Dec 19 23:46:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d6903a56fc2ae074d2b2ec9900f83f5bbd45edfd
      https://github.com/WebKit/WebKit/commit/d6903a56fc2ae074d2b2ec9900f83f5bbd45edfd
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    A JSTests/wasm/stress/wasm-shared-memory-growable.js
    M Source/JavaScriptCore/runtime/ArrayBuffer.cpp
    M Source/JavaScriptCore/runtime/ArrayBuffer.h

  Log Message:
  -----------
  [JSC] WebAssembly.Memory's buffer should not be growable / resizable
https://bugs.webkit.org/show_bug.cgi?id=249635
rdar://103545248

Reviewed by Mark Lam.

While WebAssembly.Memory's "shared" backing-memory is actually growable,
we should say it is not growable since the integration plan is not defined yet,
and we are not having enough [AllowResizable] annotation in WebCore.

* JSTests/wasm/stress/wasm-shared-memory-growable.js: Added.
(assert.eq):
* Source/JavaScriptCore/runtime/ArrayBuffer.cpp:
(JSC::ArrayBuffer::createShared):
* Source/JavaScriptCore/runtime/ArrayBuffer.h:

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




More information about the webkit-changes mailing list