Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index 0bebfaa96e9ae4d87339ab7a0fb6571acf190183..21ba8831658657d4f0d10dfae3418e124069fa40 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -456,6 +456,10 @@ |
for (int i = 0; i < objects.length(); i++) { |
AddWeakObjectToCodeDependency(isolate(), objects.at(i), code); |
} |
+ if (FLAG_enable_ool_constant_pool) { |
+ code->constant_pool()->set_weak_object_state( |
+ ConstantPoolArray::WEAK_OBJECTS_IN_OPTIMIZED_CODE); |
+ } |
code->set_can_have_weak_objects(true); |
} |