Skip to content

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Sep 23, 2025

Description of Changes

This PR:

  1. Exposes V8/JS modules via the unstable feature flag on the host. To publish a JS module, --javascript --bin-path path/to/module.js needs to be used. This mechanism is provisional until we come up with something better.
  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

3? It's only available on unstable and mostly touches V8 stuff, but the PR is fairly big.

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 from 5a9b6bc to 2e1e644 Compare October 3, 2025 08:46
@Centril Centril changed the base branch from master to centril/v8-syscalls-prefix-1 October 3, 2025 08:46
auto-merge was automatically disabled October 3, 2025 08:46

Merge commits are not allowed on this repository

@Centril Centril force-pushed the centril/v8-syscalls branch 3 times, most recently from 0b7304b to 21baced Compare October 3, 2025 09:10
github-merge-queue bot pushed a commit that referenced this pull request Oct 3, 2025
# Description of Changes

Prefix of #3276 to
bisect a problem in smoketests.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

Future work.
@Centril Centril force-pushed the centril/v8-syscalls branch from 21baced to af7140a Compare October 3, 2025 09:26
@Centril Centril changed the base branch from centril/v8-syscalls-prefix-1 to master October 3, 2025 09:26
@Centril Centril force-pushed the centril/v8-syscalls branch 14 times, most recently from 592752c to ff1fe7b Compare October 3, 2025 12:20
@Centril Centril force-pushed the centril/v8-syscalls branch 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
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.

4 participants