Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 01f95a706496c54fda400dd3ed75c04fbaa29c05..03ca4aa4dee160f6e2a8dee999cc47c74a115c2f 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2787,6 +2787,12 @@ void LCodeGen::DoPushArgument(LPushArgument* instr) { |
} |
+void LCodeGen::DoThisFunction(LThisFunction* instr) { |
+ Register result = ToRegister(instr->result()); |
+ __ ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
+} |
+ |
+ |
void LCodeGen::DoContext(LContext* instr) { |
Register result = ToRegister(instr->result()); |
__ mov(result, cp); |