Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 7dc96f201970eec90466b79f20fa2823271fe737..a47d97cec05882e107f132380fe6c064ce932242 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2990,6 +2990,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
// Make sure we get a fresh copy of the literal vector to avoid cross |
// context contamination. |
Handle<Context> context(source->context()); |
+ Handle<ConstantPoolArray> constant_pool(source->constant_pool()); |
int number_of_literals = source->NumberOfLiterals(); |
Handle<FixedArray> literals = |
isolate->factory()->NewFixedArray(number_of_literals, TENURED); |
@@ -2998,6 +2999,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
context->native_context()); |
} |
target->set_context(*context); |
+ target->set_constant_pool(*constant_pool); |
target->set_literals(*literals); |
if (isolate->logger()->is_logging_code_events() || |