Permalink
Browse files

Use correct base offsets in side traces.

  • Loading branch information...
1 parent 631cb41 commit c66242fa99b3d6609952bf7a80fbd710a77222ff @nominolo committed Sep 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 vm/jit.cc
View
@@ -121,7 +121,9 @@ void Jit::replaySnapshot(Fragment *parent, SnapNo snapno, Word *base)
bloomset(seen, ref);
if (irref_islit(ref)) {
- uint64_t k = parent->literalValue(ref, base);
+ // Offsets from the base pointer are relative to the parent
+ // fragment's entry base.
+ uint64_t k = parent->literalValue(ref, base - relbase);
if (ins->opcode() == IR::kKBASEO) {
tref = buf_.baseLiteral((Word *)k);
} else {

0 comments on commit c66242f

Please sign in to comment.