Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 555bde6d77827e30e2baa48026aaecc872cc4642..01f55bce809939c591bf219b6906ca354ee23a3c 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -613,8 +613,13 @@ struct TypedLoweringPhase { |
data->common()); |
LoadElimination load_elimination(&graph_reducer); |
JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); |
+ MaybeHandle<LiteralsArray> literals_array = |
+ data->info()->is_native_context_specializing() |
+ ? handle(data->info()->closure()->literals(), data->isolate()) |
+ : MaybeHandle<LiteralsArray>(); |
JSCreateLowering create_lowering( |
- &graph_reducer, data->info()->dependencies(), data->jsgraph()); |
+ &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
+ literals_array, temp_zone); |
JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
if (data->info()->is_deoptimization_enabled()) { |
typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |