perf: for-of 内置迭代器快路径直步,跳过 native 调用帧

This commit is contained in:
2026-09-26 19:59:23 +00:00
parent 80ce45d54c
commit bf19cf112b
8 changed files with 187 additions and 20 deletions
+2
View File
@@ -853,6 +853,8 @@ fn reset_clears_runtime_state_like_rerun() {
iterator: JsValue::undefined(),
last_result: JsValue::undefined(),
is_async: false,
fast: None,
fast_value: JsValue::undefined(),
});
vm.saved_bytecode_stack.push(Arc::from(vec![oxide_bytecode::opcode::encode(
oxide_bytecode::opcode::OpCode::HALT,