Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 67e5e9e3dfaf84a7d2c2c57ab51c41cc7a408105..04174b60caf06129c4337343c695178af87a652e 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2982,6 +2982,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); |
@@ -2990,6 +2991,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() || |