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