Skip to content

Commit 8995b35

Browse files
author
Guy Bedford
authored
deps: latest StarlingMonkey, toolchain (#149)
1 parent c05c09b commit 8995b35

39 files changed

Lines changed: 334 additions & 315 deletions

Cargo.lock

Lines changed: 74 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ edition = "2021"
88
version = "0.1.0"
99

1010
[workspace.dependencies]
11-
anyhow = "1.0.86"
11+
anyhow = "1.0.91"
1212
heck = "0.5"
13-
js-component-bindgen = "1.6.0"
13+
js-component-bindgen = "1.7.1"
1414
rand = "0.8"
15-
wasm-encoder = "0.217.0"
15+
wasm-encoder = "0.218.0"
1616
wasmparser = "0.217.0"
17-
wit-bindgen = "0.32.0"
18-
wit-bindgen-core = "0.32.0"
19-
wit-component = { version = "0.217.0", features = ["dummy-module"] }
20-
wit-parser = "0.217.0"
17+
wit-bindgen = "0.33.0"
18+
wit-bindgen-core = "0.33.0"
19+
wit-component = { version = "0.218.0", features = ["dummy-module"] }
20+
wit-parser = "0.218.0"
2121
orca-wasm = "0.1.4"

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ target/wasm32-wasi/release/spidermonkey_embedding_splicer.wasm: Cargo.toml crate
2424
lib/starlingmonkey_embedding.wasm: StarlingMonkey/cmake/* embedding/* StarlingMonkey/runtime/* StarlingMonkey/builtins/* StarlingMonkey/builtins/*/* StarlingMonkey/builtins/*/*/* StarlingMonkey/include/* | lib
2525
cmake -B build-release -DCMAKE_BUILD_TYPE=Release
2626
make -j16 -C build-release
27-
@cp build-release/starling.wasm/starling.wasm $@
27+
@cp build-release/starling-raw.wasm/starling-raw.wasm $@
2828

2929
lib/starlingmonkey_embedding_weval.wasm: StarlingMonkey/cmake/* embedding/* StarlingMonkey/runtime/* StarlingMonkey/builtins/* StarlingMonkey/builtins/*/* StarlingMonkey/builtins/*/*/* StarlingMonkey/include/* | lib
3030
cmake -B build-release-weval -DCMAKE_BUILD_TYPE=Release -DWEVAL=ON
3131
make -j16 -C build-release-weval
32-
@cp build-release-weval/starling.wasm/starling.wasm $@
32+
@cp build-release-weval/starling-raw.wasm/starling-raw.wasm $@
3333

3434
lib/starlingmonkey_ics.wevalcache: lib/starlingmonkey_embedding_weval.wasm
35-
@cp build-release-weval/starling.wasm/starling-ics.wevalcache $@
35+
@cp build-release-weval/starling-raw.wasm/starling-ics.wevalcache $@
3636

3737
lib/starlingmonkey_embedding.debug.wasm: StarlingMonkey/cmake/* embedding/* StarlingMonkey/runtime/* StarlingMonkey/builtins/* StarlingMonkey/builtins/*/* StarlingMonkey/builtins/*/*/* StarlingMonkey/include/* | lib
3838
cmake -B build-debug -DCMAKE_BUILD_TYPE=RelWithDebInfo
3939
make -j16 -C build-debug
40-
@cp build-debug/starling.wasm/starling.wasm $@
40+
@cp build-debug/starling-raw.wasm/starling-raw.wasm $@
4141

4242
obj:
4343
mkdir -p obj

package-lock.json

Lines changed: 40 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"mocha": "^10.2.0"
1111
},
1212
"dependencies": {
13-
"@bytecodealliance/jco": "^1.5.0",
13+
"@bytecodealliance/jco": "^1.7.0",
1414
"@bytecodealliance/weval": "^0.3.2",
1515
"@bytecodealliance/wizer": "^7.0.5",
1616
"es-module-lexer": "^1.5.4"

test/cases/floats/world.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package local:floats;
22

33
interface floats {
4-
float32-param: func(x: float32);
5-
float64-param: func(x: float64);
6-
float32-result: func() -> float32;
7-
float64-result: func() -> float64;
8-
float64-result2: func() -> float64;
9-
float32-result2: func() -> float32;
4+
float32-param: func(x: f32);
5+
float64-param: func(x: f64);
6+
float32-result: func() -> f32;
7+
float64-result: func() -> f64;
8+
float64-result2: func() -> f64;
9+
float32-result2: func() -> f32;
1010
}
1111

1212
world the-world {

test/cases/http-request/source.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { handle } from 'wasi:http/outgoing-handler@0.2.1';
2-
import { Fields, OutgoingRequest } from 'wasi:http/types@0.2.1';
1+
import { handle } from 'wasi:http/outgoing-handler@0.2.2';
2+
import { Fields, OutgoingRequest } from 'wasi:http/types@0.2.2';
33

44
const encoder = new TextEncoder();
55
const decoder = new TextDecoder();

test/cases/lists/world.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ interface lists {
99
list-s16-param: func(x: list<s16>);
1010
list-s32-param: func(x: list<s32>);
1111
list-s64-param: func(x: list<s64>);
12-
list-float32-param: func(x: list<float32>);
13-
list-float64-param: func(x: list<float64>);
12+
list-float32-param: func(x: list<f32>);
13+
list-float64-param: func(x: list<f64>);
1414

1515
list-u8-ret: func() -> list<u8>;
1616
list-u16-ret: func() -> list<u16>;
@@ -20,8 +20,8 @@ interface lists {
2020
list-s16-ret: func() -> list<s16>;
2121
list-s32-ret: func() -> list<s32>;
2222
list-s64-ret: func() -> list<s64>;
23-
list-float32-ret: func() -> list<float32>;
24-
list-float64-ret: func() -> list<float64>;
23+
list-float32-ret: func() -> list<f32>;
24+
list-float64-ret: func() -> list<f64>;
2525

2626
tuple-list: func(x: list<tuple<u8, s8>>) -> list<tuple<s64, u32>>;
2727
string-list-arg: func(a: list<string>);
@@ -72,8 +72,8 @@ interface lists {
7272
s32,
7373
u64,
7474
s64,
75-
float32,
76-
float64,
75+
f32,
76+
f64,
7777
char,
7878
>>;
7979
load-store-everything: func(a: load-store-all-sizes) -> load-store-all-sizes;

test/cases/resource-floats/world.wit

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package test:test;
22

33
interface resource-floats {
44
resource float {
5-
constructor(v: float64);
6-
get: func() -> float64;
5+
constructor(v: f64);
6+
get: func() -> f64;
77
}
88
}
99

@@ -12,17 +12,17 @@ world test {
1212

1313
export resource-floats-exports: interface {
1414
resource float {
15-
constructor(v: float64);
16-
get: func() -> float64;
17-
add: static func(a: float, b: float64) -> float;
15+
constructor(v: f64);
16+
get: func() -> f64;
17+
add: static func(a: float, b: f64) -> float;
1818
}
1919
}
2020

2121
import resource-floats-imports: interface {
2222
resource float {
23-
constructor(v: float64);
24-
get: func() -> float64;
25-
add: static func(a: float, b: float64) -> float;
23+
constructor(v: f64);
24+
get: func() -> f64;
25+
add: static func(a: float, b: f64) -> float;
2626
}
2727
}
2828

0 commit comments

Comments
 (0)