Commit 20b871e
[wasm] Implement more simple ops in Wasm-in-JS body inlining
* Implemented missing simple constants and operations in
WasmInJsInliningInterface: `I64Const`, `RefNull`, `RefFunc`, and
`RefAsNonNull`.
* Fixed the signature of `WasmRefFunc` in `assembler.h` to take
`V<WasmTrustedInstanceData>`.
* Added tests for `i64Const`, `refNull`, and `refAsNonNull` to
`wasm-in-js-inlining-turboshaft.js`.
* Added a test for `RefFunc` by exposing it via an exported global.
Bug: 353475584
Change-Id: Ie63cb8328b596f29107bf872e48dd2122d1cad07
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7796002
Reviewed-by: Matthias Liedtke <mliedtke@chromium.org>
Commit-Queue: Daniel Lehmann <dlehmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#106860}1 parent 855e1a2 commit 20b871e
3 files changed
Lines changed: 55 additions & 6 deletions
File tree
- src/compiler/turboshaft
- test/filecheck
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5299 | 5299 | | |
5300 | 5300 | | |
5301 | 5301 | | |
5302 | | - | |
| 5302 | + | |
| 5303 | + | |
5303 | 5304 | | |
5304 | 5305 | | |
5305 | 5306 | | |
| |||
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
| |||
636 | 640 | | |
637 | 641 | | |
638 | 642 | | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
644 | 655 | | |
645 | 656 | | |
646 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
79 | 90 | | |
80 | 91 | | |
81 | 92 | | |
| |||
441 | 452 | | |
442 | 453 | | |
443 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
444 | 481 | | |
445 | 482 | | |
446 | 483 | | |
| |||
0 commit comments