Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: src/runtime.cc

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Clean up EnterArgumentsAdaptorFrame Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() ||

Powered by Google App Engine
This is Rietveld 408576698