Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index 42fc58ec384b3f41671fcc2010f7ea73025d1d5e..ff08d08c06c78c6e5af39f531643394ac811344e 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -362,7 +362,7 @@ void JSInliner::TryInlineJSCall(Node* call_node) { |
CHECK(Compiler::ParseAndAnalyze(&info)); |
CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
- if (info.scope()->arguments() != NULL && info.strict_mode() != STRICT) { |
+ if (info.scope()->arguments() != NULL && is_sloppy(info.language_mode())) { |
// For now do not inline functions that use their arguments array. |
SmartArrayPointer<char> name = function->shared()->DebugName()->ToCString(); |
if (FLAG_trace_turbo_inlining) { |