Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 26ad5b03179d06c680e71f9e16ca521c33ab7c26..79767a84b3ebc58a035b5d86d342c839334d702a 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -872,6 +872,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 |
+ __ ldr(r1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); |
stack_slots -= frame()->GetOsrStackSlotCount(); |
} |