Commit 2284deeb authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Interpreter] Move interpreter initialization until after snapshot deserialization.

The interpreter needs to be initialized after the snapshot has been deserialized.

BUG=v8:4280
LOG=N

Review URL: https://codereview.chromium.org/1290883004

Cr-Commit-Position: refs/heads/master@{#30190}
parent d281688a
...@@ -2159,10 +2159,6 @@ bool Isolate::Init(Deserializer* des) { ...@@ -2159,10 +2159,6 @@ bool Isolate::Init(Deserializer* des) {
bootstrapper_->Initialize(create_heap_objects); bootstrapper_->Initialize(create_heap_objects);
builtins_.SetUp(this, create_heap_objects); builtins_.SetUp(this, create_heap_objects);
if (FLAG_ignition) {
interpreter_->Initialize();
}
if (FLAG_log_internal_timer_events) { if (FLAG_log_internal_timer_events) {
set_event_logger(Logger::DefaultEventLoggerSentinel); set_event_logger(Logger::DefaultEventLoggerSentinel);
} }
...@@ -2189,6 +2185,10 @@ bool Isolate::Init(Deserializer* des) { ...@@ -2189,6 +2185,10 @@ bool Isolate::Init(Deserializer* des) {
} }
stub_cache_->Initialize(); stub_cache_->Initialize();
if (FLAG_ignition) {
interpreter_->Initialize();
}
// Finish initialization of ThreadLocal after deserialization is done. // Finish initialization of ThreadLocal after deserialization is done.
clear_pending_exception(); clear_pending_exception();
clear_pending_message(); clear_pending_message();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment