Index: src/compiler/ppc/code-generator-ppc.cc |
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc |
index b843ad698536d045bc8ce1a0345864d78464f50d..b26205408834b08829ac5822bb86ca45abde6250 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -1221,6 +1221,8 @@ void CodeGenerator::AssemblePrologue() { |
// remaining stack slots. |
if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); |
osr_pc_offset_ = __ pc_offset(); |
+ // TODO(titzer): cannot address target function == local #-1 |
+ __ lwa(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); |
stack_slots -= frame()->GetOsrStackSlotCount(); |
} |