quickjs-done-nextgen/gen
Ben Noordhuis 5b609f15af
Optimize derived class construction (#753)
We were emitting gobs of inefficient bytecode that created an arguments
array on the stack, then applied it to the parent constructor.

Add a new opcode for initializing a derived class. Speeds up construction
by 500%, although sadly that is not visible in the web-tooling-benchmark,
only in micro-benchmarks.

Fixes: https://github.com/quickjs-ng/quickjs/issues/752
2025-01-05 22:01:37 +01:00
..
function_source.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00
hello.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00
hello_module.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00
repl.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00
standalone.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00
test_fib.c Optimize derived class construction (#753) 2025-01-05 22:01:37 +01:00