Index: src/compiler/js-inlining.cc |
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc |
index 982d7a6e51f7d12570eb1f09517bb049b9e1b29c..85e0099ffc7a949a33ea21f32800d1bfb1919a91 100644 |
--- a/src/compiler/js-inlining.cc |
+++ b/src/compiler/js-inlining.cc |
@@ -377,6 +377,7 @@ Reduction JSInliner::ReduceJSCall(Node* node, Handle<JSFunction> function) { |
info_->shared_info()->DebugName()->ToCString().get()); |
return NoChange(); |
} |
+ |
// Remember that we inlined this function. This needs to be called right |
// after we ensure deoptimization support so that the code flusher |
// does not remove the code with the deoptimization support. |
@@ -390,6 +391,9 @@ Reduction JSInliner::ReduceJSCall(Node* node, Handle<JSFunction> function) { |
shared_info->DebugName()->ToCString().get(), |
info_->shared_info()->DebugName()->ToCString().get()); |
+ // If function was lazily compiled, it's literals array may not yet be set up. |
+ JSFunction::EnsureLiterals(function); |
+ |
// Create the subgraph for the inlinee. |
Node* start; |
Node* end; |