Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/snapshot/deserializer.cc

Issue 1772403002: [Interpreter] Log code-creation events for bytecode handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing before committing. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/code-serializer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/snapshot/code-serializer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698