Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index 62991c9eaac39b7041569835f2d3bdbcc9d8aec4..b831fa99bb43683f2716e5e605e0af1733c8832a 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.cc |
@@ -249,6 +249,10 @@ void FullCodeGenerator::Generate() { |
Variable* this_function_var = scope()->this_function_var(); |
if (this_function_var != nullptr) { |
Comment cmnt(masm_, "[ This function"); |
+ if (!function_in_register) { |
+ __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
+ // The write barrier clobbers register again, keep is marked as such. |
+ } |
SetVar(this_function_var, a1, a2, a3); |
} |