| 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 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2246 | 2246 |
| 2247 // Initialize runtime profiler before deserialization, because collections may | 2247 // Initialize runtime profiler before deserialization, because collections may |
| 2248 // occur, clearing/updating ICs. | 2248 // occur, clearing/updating ICs. |
| 2249 runtime_profiler_ = new RuntimeProfiler(this); | 2249 runtime_profiler_ = new RuntimeProfiler(this); |
| 2250 | 2250 |
| 2251 // If we are deserializing, read the state into the now-empty heap. | 2251 // If we are deserializing, read the state into the now-empty heap. |
| 2252 if (!create_heap_objects) { | 2252 if (!create_heap_objects) { |
| 2253 des->Deserialize(this); | 2253 des->Deserialize(this); |
| 2254 } | 2254 } |
| 2255 stub_cache_->Initialize(); | 2255 stub_cache_->Initialize(); |
| 2256 | 2256 if (FLAG_ignition || serializer_enabled()) { |
| 2257 if (FLAG_ignition) { | |
| 2258 interpreter_->Initialize(); | 2257 interpreter_->Initialize(); |
| 2259 } | 2258 } |
| 2260 | 2259 |
| 2261 // Finish initialization of ThreadLocal after deserialization is done. | 2260 // Finish initialization of ThreadLocal after deserialization is done. |
| 2262 clear_pending_exception(); | 2261 clear_pending_exception(); |
| 2263 clear_pending_message(); | 2262 clear_pending_message(); |
| 2264 clear_scheduled_exception(); | 2263 clear_scheduled_exception(); |
| 2265 | 2264 |
| 2266 // Deserializing may put strange things in the root array's copy of the | 2265 // Deserializing may put strange things in the root array's copy of the |
| 2267 // stack guard. | 2266 // stack guard. |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 // Then check whether this scope intercepts. | 2979 // Then check whether this scope intercepts. |
| 2981 if ((flag & intercept_mask_)) { | 2980 if ((flag & intercept_mask_)) { |
| 2982 intercepted_flags_ |= flag; | 2981 intercepted_flags_ |= flag; |
| 2983 return true; | 2982 return true; |
| 2984 } | 2983 } |
| 2985 return false; | 2984 return false; |
| 2986 } | 2985 } |
| 2987 | 2986 |
| 2988 } // namespace internal | 2987 } // namespace internal |
| 2989 } // namespace v8 | 2988 } // namespace v8 |
| OLD | NEW |