OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/snapshot/deserializer.h" | 5 #include "src/snapshot/deserializer.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 isolate_->heap()->set_allocation_sites_list( | 95 isolate_->heap()->set_allocation_sites_list( |
96 isolate_->heap()->undefined_value()); | 96 isolate_->heap()->undefined_value()); |
97 } | 97 } |
98 | 98 |
99 // Update data pointers to the external strings containing natives sources. | 99 // Update data pointers to the external strings containing natives sources. |
100 Natives::UpdateSourceCache(isolate_->heap()); | 100 Natives::UpdateSourceCache(isolate_->heap()); |
101 ExtraNatives::UpdateSourceCache(isolate_->heap()); | 101 ExtraNatives::UpdateSourceCache(isolate_->heap()); |
102 | 102 |
103 // Issue code events for newly deserialized code objects. | 103 // Issue code events for newly deserialized code objects. |
104 LOG_CODE_EVENT(isolate_, LogCodeObjects()); | 104 LOG_CODE_EVENT(isolate_, LogCodeObjects()); |
| 105 LOG_CODE_EVENT(isolate_, LogBytecodeHandlers()); |
105 LOG_CODE_EVENT(isolate_, LogCompiledFunctions()); | 106 LOG_CODE_EVENT(isolate_, LogCompiledFunctions()); |
106 } | 107 } |
107 | 108 |
108 MaybeHandle<Object> Deserializer::DeserializePartial( | 109 MaybeHandle<Object> Deserializer::DeserializePartial( |
109 Isolate* isolate, Handle<JSGlobalProxy> global_proxy) { | 110 Isolate* isolate, Handle<JSGlobalProxy> global_proxy) { |
110 Initialize(isolate); | 111 Initialize(isolate); |
111 if (!ReserveSpace()) { | 112 if (!ReserveSpace()) { |
112 V8::FatalProcessOutOfMemory("deserialize context"); | 113 V8::FatalProcessOutOfMemory("deserialize context"); |
113 return MaybeHandle<Object>(); | 114 return MaybeHandle<Object>(); |
114 } | 115 } |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 805 |
805 default: | 806 default: |
806 CHECK(false); | 807 CHECK(false); |
807 } | 808 } |
808 } | 809 } |
809 CHECK_EQ(limit, current); | 810 CHECK_EQ(limit, current); |
810 return true; | 811 return true; |
811 } | 812 } |
812 } // namespace internal | 813 } // namespace internal |
813 } // namespace v8 | 814 } // namespace v8 |
OLD | NEW |