Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0730a11
feat(gc): integrate oscars GC backend into boa_engine
shruti2522 Aug 15, 2026
c80ff49
Migrate to mark_sweep_branded and GcContext abstraction
shruti2522 Aug 15, 2026
bd7e085
Thread MutationContext through core engine and ByteCompiler
shruti2522 Aug 16, 2026
282344b
Thread MutationContext through buitlin standard library objects
shruti2522 Aug 17, 2026
f2ddfe2
Thread MutationContext through core engine and ByteCompiler
shruti2522 Aug 16, 2026
26b7bae
Integrate mark sweep backend and eliminate global GC state
shruti2522 Aug 17, 2026
7a65ccb
Merge branch 'feat/msb-phase3-builtins' into feat/msb-phase4
shruti2522 Aug 18, 2026
516419e
Fix test262 test suite failures for oscars integration
shruti2522 Aug 18, 2026
bc7d8fe
Implement exact rooting via HandleScope
shruti2522 Aug 20, 2026
0efd528
Enable oscars_backend in boa_wasm
shruti2522 Aug 20, 2026
389ac73
fix heap UAF in ListFormat
shruti2522 Aug 23, 2026
0cc9155
fix anchor crash
shruti2522 Aug 23, 2026
3f68447
fix constructor crash
shruti2522 Aug 23, 2026
478ebe6
fix: UAF in Collator::resolved_options and format_to_parts loop
shruti2522 Aug 23, 2026
18f007f
fix: UAF in Intl resolved_options methods across multiple builtins
shruti2522 Aug 23, 2026
fa96371
fix: UAF in PluralRules and Segmenter methods
shruti2522 Aug 23, 2026
b5d4a84
fix: type error in SegmentIterator::next
shruti2522 Aug 23, 2026
5a50231
fix: UAF in RegExpStringIterator and ArrayIterator + serial CI
shruti2522 Aug 23, 2026
38e9a5d
fix: UAF in Generator, StringIterator, SetIterator, MapIterator
shruti2522 Aug 23, 2026
843e41f
fix: UAF in ForInIterator::next and AsyncGeneratorYield opcode
shruti2522 Aug 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- releases/**
- dev/oscars-gc

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches:
- main
- releases/**
- dev/oscars-gc
push:
branches:
- main
- releases/**
- dev/oscars-gc
merge_group:
types: [checks_requested]
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test262.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- releases/**
- dev/oscars-gc

permissions:
contents: read
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
run: |
cd boa
mkdir -p ../results/test262
cargo run --release --bin boa_tester -- run -v -o ../results/test262
cargo run --release --bin boa_tester -- run -v --disable-parallelism -o ../results/test262
cd ..
- name: Compare results
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches:
- main
- releases/**
- dev/oscars-gc
push:
branches:
- main
- releases/**
- dev/oscars-gc
merge_group:
types: [checks_requested]

Expand Down
11 changes: 9 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ num-integer = "0.1.46"
ryu-js = "1.0.2"
tap = "1.0.1"
thiserror = { version = "2.0.18", default-features = false }
typeid = "1.0.3"
dashmap = "6.2.1"
num_enum = "0.7.6"
itertools = { version = "0.15.0", default-features = false }
Expand Down Expand Up @@ -267,3 +268,6 @@ complexity = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }

[patch."https://github.com/boa-dev/boa.git"]
boa_string = { path = "core/string" }

104 changes: 64 additions & 40 deletions cli/src/debug/limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,48 +64,72 @@ fn set_backtrace(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsResu
}

pub(super) fn create_object(context: &mut Context) -> JsObject {
let get_loop =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(get_loop))
.name(js_string!("get loop"))
.length(0)
.build();
let set_loop =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(set_loop))
.name(js_string!("set loop"))
.length(1)
.build();
let get_loop = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_loop),
)
.name(js_string!("get loop"))
.length(0)
.build();
let set_loop = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_loop),
)
.name(js_string!("set loop"))
.length(1)
.build();

let get_stack =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(get_stack))
.name(js_string!("get stack"))
.length(0)
.build();
let set_stack =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(set_stack))
.name(js_string!("set stack"))
.length(1)
.build();
let get_stack = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_stack),
)
.name(js_string!("get stack"))
.length(0)
.build();
let set_stack = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_stack),
)
.name(js_string!("set stack"))
.length(1)
.build();

let get_recursion =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(get_recursion))
.name(js_string!("get recursion"))
.length(0)
.build();
let set_recursion =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(set_recursion))
.name(js_string!("set recursion"))
.length(1)
.build();
let get_backtrace =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(get_backtrace))
.name(js_string!("get backtrace"))
.length(0)
.build();
let set_backtrace =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(set_backtrace))
.name(js_string!("set backtrace"))
.length(1)
.build();
let get_recursion = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_recursion),
)
.name(js_string!("get recursion"))
.length(0)
.build();
let set_recursion = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_recursion),
)
.name(js_string!("set recursion"))
.length(1)
.build();
let get_backtrace = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_backtrace),
)
.name(js_string!("get backtrace"))
.length(0)
.build();
let set_backtrace = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_backtrace),
)
.name(js_string!("set backtrace"))
.length(1)
.build();

ObjectInitializer::new(context)
.accessor(
Expand Down
28 changes: 18 additions & 10 deletions cli/src/debug/optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,37 @@ fn set_statistics(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsRes
pub(super) fn create_object(context: &mut Context) -> JsObject {
let get_constant_folding = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_constant_folding),
)
.name("get constantFolding")
.length(0)
.build();
let set_constant_folding = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_constant_folding),
)
.name("set constantFolding")
.length(1)
.build();

let get_statistics =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(get_statistics))
.name("get statistics")
.length(0)
.build();
let set_statistics =
FunctionObjectBuilder::new(context.realm(), NativeFunction::from_fn_ptr(set_statistics))
.name("set statistics")
.length(1)
.build();
let get_statistics = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(get_statistics),
)
.name("get statistics")
.length(0)
.build();
let set_statistics = FunctionObjectBuilder::new(
context.realm(),
context.gc_collector(),
NativeFunction::from_fn_ptr(set_statistics),
)
.name("set statistics")
.length(1)
.build();
ObjectInitializer::new(context)
.accessor(
js_string!("constantFolding"),
Expand Down
3 changes: 2 additions & 1 deletion core/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository.workspace = true
rust-version.workspace = true

[features]
default = ["float16", "xsum", "temporal"]
default = ["float16", "xsum", "temporal", "oscars_backend"]

embedded_lz4 = ["boa_macros/embedded_lz4", "lz4_flex"]

Expand All @@ -26,6 +26,7 @@ embedded_lz4 = ["boa_macros/embedded_lz4", "lz4_flex"]
jsvalue-enum = []
deser = ["boa_interner/serde", "boa_ast/serde"]
either = ["dep:either", "boa_gc/either"]
oscars_backend = ["boa_gc/oscars_backend", "boa_string/oscars_backend"]

# Enables the `Intl` builtin object and bundles a default ICU4X data provider.
# Prefer this over `intl` if you just want to enable `Intl` without dealing with the
Expand Down
8 changes: 6 additions & 2 deletions core/engine/benches/full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

fn create_realm(c: &mut Criterion) {
c.bench_function("Create Realm", move |b| {
let root_shape = RootShape::default();
b.iter(|| Realm::create(&DefaultHooks, &root_shape));
let root_shape = RootShape::new(&unsafe { boa_gc::MutationContext::global() });
b.iter(|| {
Realm::create(&DefaultHooks, &root_shape, &unsafe {
boa_gc::MutationContext::global()
})
});
});
}

Expand Down
Loading
Loading