Skip to content

Commit

Permalink
Use virtual stack for JS to JS calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Jul 1, 2023
1 parent 1356a5e commit 2f61c3f
Show file tree
Hide file tree
Showing 4 changed files with 451 additions and 7 deletions.
5 changes: 2 additions & 3 deletions boa_engine/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ impl Script {
// TODO: Here should be https://tc39.es/ecma262/#sec-globaldeclarationinstantiation

self.realm().resize_global_env();
let record = context.run();
context.vm.pop_frame();
let record = context.run2();

context.vm.stack = stack;
context.vm.active_function = active_function;
Expand All @@ -158,6 +157,6 @@ impl Script {

context.clear_kept_objects();

record.consume()
record
}
}
Loading

0 comments on commit 2f61c3f

Please sign in to comment.