Skip to content

Conversation

@Centril
Copy link
Contributor

@Centril Centril commented Sep 23, 2025

Description of Changes

Update:

This PR did all of the below but was split. Now it just does:

  1. Exposes V8/JS modules via the unstable feature flag on the host. To publish a JS module, --js-path path/to/module.js

This PR:

  1. Exposes V8/JS modules via the unstable feature flag on the host. To publish a JS module, --js-path path/to/module.js needs to be used.
  2. Bumps V8 to 140.2.
  3. Shares more logic with WASM and makes some minor refactorings to energy/budget logic.
  4. Moves logic from WasmInstanceEnv to InstanceEnv and friends.
  5. Makes JS modules actually work in terms of create_instance, make_actor,
  6. Fleshes out call_reducer with timeouts and long-running logs added as well.
  7. Adds all the syscalls with associated documentation as well.

API and ABI breaking changes

None

Expected complexity level and risk

2? It's only available on unstable and mostly touches V8 stuff.

Testing

Follow up PRs will add unit tests for parts.
We'll also need to add integration tests for whole modules.

@Centril Centril changed the title V8: Add syscalls, TODO V8: Enable as unstable, add syscalls, TODO Sep 23, 2025
@Centril Centril changed the title V8: Enable as unstable, add syscalls, TODO V8: Enable as unstable, add syscalls, flesh out call_reducer, etc. Sep 23, 2025
@bfops
Copy link
Collaborator

bfops commented Sep 23, 2025

Is this meant to be reviewed or just here for a demo?

@Centril
Copy link
Contributor Author

Centril commented Sep 23, 2025

Is this meant to be reviewed or just here for a demo?

It's meant to be reviewed.

@Centril Centril force-pushed the centril/v8-syscalls branch from 5e12f1a to e5f893d Compare September 24, 2025 10:21
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2025
# Description of Changes

Implements `Serialize` and `Deserialize` for tuples.
Extracted from #3276.

# API and ABI breaking changes

None

# Expected complexity level and risk

2

# Testing

A test `roundtrip_tuples_in_different_data_formats` is added.
@Centril Centril force-pushed the centril/v8-syscalls branch 2 times, most recently from 0454ff8 to cfc090d Compare September 26, 2025 13:06
@bfops bfops added the release-any To be landed in any release window label Sep 29, 2025
@Centril Centril requested a review from coolreader18 October 1, 2025 09:02
@Centril Centril force-pushed the centril/v8-syscalls branch from cfc090d to e3b6a7b Compare October 1, 2025 09:07
Copy link
Collaborator

@coolreader18 coolreader18 left a comment

Choose a reason for hiding this comment

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

LGTM!

@coolreader18 coolreader18 mentioned this pull request Oct 1, 2025
2 tasks
@Centril Centril force-pushed the centril/v8-syscalls branch from 8d9364c to 15c0871 Compare October 2, 2025 15:57
Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

My code-owned files LGTM

@bfops bfops added release-1.6 and removed release-any To be landed in any release window labels Oct 2, 2025
@Centril Centril enabled auto-merge October 2, 2025 17:33
@Centril Centril force-pushed the centril/v8-syscalls branch 2 times, most recently from 49251c9 to 5a9b6bc Compare October 3, 2025 07:33
github-merge-queue bot pushed a commit that referenced this pull request Oct 3, 2025
# Description of Changes

Extracted from #3276.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

Future work.
@Centril Centril force-pushed the centril/v8-syscalls branch 15 times, most recently from ff1fe7b to a9e52b4 Compare October 3, 2025 12:46
@Centril Centril changed the base branch from master to centril/v8-syscalls-prefix-2 October 3, 2025 12:55
@Centril Centril changed the base branch from centril/v8-syscalls-prefix-2 to centril/v8-sysclls-prefix-4 October 3, 2025 13:09
@Centril Centril force-pushed the centril/v8-sysclls-prefix-4 branch from e4e65b3 to 9665f16 Compare October 6, 2025 11:57
Base automatically changed from centril/v8-sysclls-prefix-4 to master October 6, 2025 12:59
cli/publish: expose --js-path to publish js module
@Centril Centril force-pushed the centril/v8-syscalls branch from a9e52b4 to 5bd2dfc Compare October 6, 2025 17:24
@Centril Centril enabled auto-merge October 6, 2025 17:25
@Centril Centril added this pull request to the merge queue Oct 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 6, 2025
@Centril Centril added this pull request to the merge queue Oct 6, 2025
Merged via the queue into master with commit abc3a1c Oct 6, 2025
25 of 26 checks passed
@Centril Centril deleted the centril/v8-syscalls branch October 6, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants