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 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2529 | 2529 |
2530 // If we are deserializing, read the state into the now-empty heap. | 2530 // If we are deserializing, read the state into the now-empty heap. |
2531 { | 2531 { |
2532 AlwaysAllocateScope always_allocate(this); | 2532 AlwaysAllocateScope always_allocate(this); |
2533 | 2533 |
2534 if (!create_heap_objects) { | 2534 if (!create_heap_objects) { |
2535 des->Deserialize(this); | 2535 des->Deserialize(this); |
2536 } | 2536 } |
2537 load_stub_cache_->Initialize(); | 2537 load_stub_cache_->Initialize(); |
2538 store_stub_cache_->Initialize(); | 2538 store_stub_cache_->Initialize(); |
2539 if (FLAG_ignition || serializer_enabled()) { | 2539 interpreter_->Initialize(); |
2540 interpreter_->Initialize(); | |
2541 } | |
2542 | 2540 |
2543 heap_.NotifyDeserializationComplete(); | 2541 heap_.NotifyDeserializationComplete(); |
2544 } | 2542 } |
2545 | 2543 |
2546 // Finish initialization of ThreadLocal after deserialization is done. | 2544 // Finish initialization of ThreadLocal after deserialization is done. |
2547 clear_pending_exception(); | 2545 clear_pending_exception(); |
2548 clear_pending_message(); | 2546 clear_pending_message(); |
2549 clear_scheduled_exception(); | 2547 clear_scheduled_exception(); |
2550 | 2548 |
2551 // Deserializing may put strange things in the root array's copy of the | 2549 // Deserializing may put strange things in the root array's copy of the |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3465 // Then check whether this scope intercepts. | 3463 // Then check whether this scope intercepts. |
3466 if ((flag & intercept_mask_)) { | 3464 if ((flag & intercept_mask_)) { |
3467 intercepted_flags_ |= flag; | 3465 intercepted_flags_ |= flag; |
3468 return true; | 3466 return true; |
3469 } | 3467 } |
3470 return false; | 3468 return false; |
3471 } | 3469 } |
3472 | 3470 |
3473 } // namespace internal | 3471 } // namespace internal |
3474 } // namespace v8 | 3472 } // namespace v8 |
OLD | NEW |