OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 | 2249 |
2250 // Initialize runtime profiler before deserialization, because collections may | 2250 // Initialize runtime profiler before deserialization, because collections may |
2251 // occur, clearing/updating ICs. | 2251 // occur, clearing/updating ICs. |
2252 runtime_profiler_ = new RuntimeProfiler(this); | 2252 runtime_profiler_ = new RuntimeProfiler(this); |
2253 | 2253 |
2254 // If we are deserializing, read the state into the now-empty heap. | 2254 // If we are deserializing, read the state into the now-empty heap. |
2255 if (!create_heap_objects) { | 2255 if (!create_heap_objects) { |
2256 des->Deserialize(this); | 2256 des->Deserialize(this); |
2257 } | 2257 } |
2258 stub_cache_->Initialize(); | 2258 stub_cache_->Initialize(); |
2259 interpreter_->Initialize(); | 2259 |
| 2260 if (FLAG_ignition) { |
| 2261 interpreter_->Initialize(); |
| 2262 } |
2260 | 2263 |
2261 // Finish initialization of ThreadLocal after deserialization is done. | 2264 // Finish initialization of ThreadLocal after deserialization is done. |
2262 clear_pending_exception(); | 2265 clear_pending_exception(); |
2263 clear_pending_message(); | 2266 clear_pending_message(); |
2264 clear_scheduled_exception(); | 2267 clear_scheduled_exception(); |
2265 | 2268 |
2266 // Deserializing may put strange things in the root array's copy of the | 2269 // Deserializing may put strange things in the root array's copy of the |
2267 // stack guard. | 2270 // stack guard. |
2268 heap_.SetStackLimits(); | 2271 heap_.SetStackLimits(); |
2269 | 2272 |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2972 // Then check whether this scope intercepts. | 2975 // Then check whether this scope intercepts. |
2973 if ((flag & intercept_mask_)) { | 2976 if ((flag & intercept_mask_)) { |
2974 intercepted_flags_ |= flag; | 2977 intercepted_flags_ |= flag; |
2975 return true; | 2978 return true; |
2976 } | 2979 } |
2977 return false; | 2980 return false; |
2978 } | 2981 } |
2979 | 2982 |
2980 } // namespace internal | 2983 } // namespace internal |
2981 } // namespace v8 | 2984 } // namespace v8 |
OLD | NEW |