IR interpreter: Keep blocks' profile stats when the block table grows

JitBlock's move constructor didn't copy profileStats_, so every time the
vector of blocks reallocated, all execution counts and times went back to
zero, and --jit-profile under the IR interpreter only counted what ran since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-11-10 20:49:09 +01:00
1 parent 81e1593eb4
commit f3eb70aac4
1 file changed
+1
+1
View File
@@ -49,6 +49,7 @@ public:
origSize_ = b.origSize_;
origFirstOpcode_ = b.origFirstOpcode_;
numIRInstructions_ = b.numIRInstructions_;
profileStats_ = b.profileStats_;
b.entry_ = 0;
}