Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index f717d75c192423425453b25f4da792b281e83662..5aeff4876cfc22f1d488a4f5168dbd4d49caad38 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1269,6 +1269,8 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() { |
Factory* factory = isolate()->factory(); |
HInstruction* empty_fixed_array = |
Add<HConstant>(factory->empty_fixed_array()); |
+ HInstruction* empty_constant_pool_array = |
+ Add<HConstant>(factory->empty_constant_pool_array()); |
HValue* shared_info = GetParameter(0); |
AddIncrementCounter(counters->fast_new_closure_total()); |
@@ -1302,6 +1304,9 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() { |
shared_info); |
Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), |
context()); |
+ Add<HStoreNamedField>(js_function, |
+ HObjectAccess::ForFunctionConstantPoolPointer(), |
+ empty_constant_pool_array); |
// Initialize the code pointer in the function to be the one |
// found in the shared function info object. |