Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wasm-GC] Fix null checks for struct operations #9091

Conversation

takikawa
Copy link
Contributor

@takikawa takikawa commented Jan 25, 2023

a5a8768

[Wasm-GC] Fix null checks for struct operations
https://bugs.webkit.org/show_bug.cgi?id=251133

Reviewed by Justin Michaud.

Adds in missing null checks for struct instructions.

* JSTests/wasm/gc/structs.js:
* Source/JavaScriptCore/wasm/WasmAirIRGeneratorBase.h:
(JSC::Wasm::ExpressionType>::addStructGet):
(JSC::Wasm::ExpressionType>::addStructSet):
* Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp:
(JSC::Wasm::B3IRGenerator::addStructGet):
(JSC::Wasm::B3IRGenerator::addStructSet):
* Source/JavaScriptCore/wasm/WasmExceptionType.h:
(JSC::Wasm::isTypeErrorExceptionType):
* Source/JavaScriptCore/wasm/WasmSlowPaths.cpp:
(JSC::LLInt::WASM_SLOW_PATH_DECL):

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

21ed12c

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac ❌ πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  πŸ§ͺ jsc βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  jsc-armv7
βœ… πŸ›  πŸ§ͺ jsc-arm64 βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ§ͺ jsc-armv7-tests
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress βœ… πŸ›  jsc-mips
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch-sim βœ… πŸ§ͺ jsc-mips-tests

@takikawa takikawa self-assigned this Jan 25, 2023
@takikawa takikawa added the WebAssembly For bugs in JavaScript WebAssembly label Jan 25, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 25, 2023
@takikawa takikawa removed the merging-blocked Applied to prevent a change from being merged label Jan 25, 2023
@takikawa takikawa force-pushed the eng/Wasm-GC-Fix-null-checks-for-struct-operations branch from 143ade5 to 2f998a6 Compare January 25, 2023 06:17
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 25, 2023
@takikawa takikawa marked this pull request as ready for review January 25, 2023 18:48
@takikawa takikawa requested a review from a team as a code owner January 25, 2023 18:48
Copy link
Contributor

@justinmichaud justinmichaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@takikawa takikawa removed the merging-blocked Applied to prevent a change from being merged label Jan 25, 2023
@takikawa takikawa force-pushed the eng/Wasm-GC-Fix-null-checks-for-struct-operations branch from 2f998a6 to ca97dce Compare January 25, 2023 20:15
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 26, 2023
@takikawa takikawa removed the merging-blocked Applied to prevent a change from being merged label Jan 26, 2023
@takikawa takikawa force-pushed the eng/Wasm-GC-Fix-null-checks-for-struct-operations branch from ca97dce to 21ed12c Compare January 26, 2023 15:01
@takikawa takikawa added the merge-queue Applied to send a pull request to merge-queue label Jan 26, 2023
@webkit-ews-buildbot webkit-ews-buildbot added merging-blocked Applied to prevent a change from being merged and removed merge-queue Applied to send a pull request to merge-queue labels Jan 26, 2023
@takikawa takikawa added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Jan 26, 2023
https://bugs.webkit.org/show_bug.cgi?id=251133

Reviewed by Justin Michaud.

Adds in missing null checks for struct instructions.

* JSTests/wasm/gc/structs.js:
* Source/JavaScriptCore/wasm/WasmAirIRGeneratorBase.h:
(JSC::Wasm::ExpressionType>::addStructGet):
(JSC::Wasm::ExpressionType>::addStructSet):
* Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp:
(JSC::Wasm::B3IRGenerator::addStructGet):
(JSC::Wasm::B3IRGenerator::addStructSet):
* Source/JavaScriptCore/wasm/WasmExceptionType.h:
(JSC::Wasm::isTypeErrorExceptionType):
* Source/JavaScriptCore/wasm/WasmSlowPaths.cpp:
(JSC::LLInt::WASM_SLOW_PATH_DECL):

Canonical link: https://commits.webkit.org/259449@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Wasm-GC-Fix-null-checks-for-struct-operations branch from 21ed12c to a5a8768 Compare January 26, 2023 20:11
@webkit-commit-queue
Copy link
Collaborator

Committed 259449@main (a5a8768): https://commits.webkit.org/259449@main

Reviewed commits have been landed. Closing PR #9091 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit a5a8768 into WebKit:main Jan 26, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebAssembly For bugs in JavaScript WebAssembly
Projects
None yet
6 participants