Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 983c75a587af9aea71cab2e853cbdc855d68e84b..fe71ff53d6796c6eeab380d4f44222aea8c3852d 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -144,7 +144,7 @@ bool LCodeGen::GeneratePrologue() { |
// when called as functions (without an explicit receiver |
// object). rcx is zero for method calls and non-zero for function |
// calls. |
- if (info_->is_strict_mode()) { |
+ if (info_->is_strict_mode() || info_->is_native()) { |
Label ok; |
__ testq(rcx, rcx); |
__ j(zero, &ok, Label::kNear); |