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

Side by Side Diff: src/isolate.cc

Issue 1805903002: [serializer] Add API to warm up startup snapshot with an additional script. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix comment 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/isolate.h ('k') | src/snapshot/deserializer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2221 2221
2222 deoptimizer_data_ = new DeoptimizerData(memory_allocator_); 2222 deoptimizer_data_ = new DeoptimizerData(memory_allocator_);
2223 2223
2224 const bool create_heap_objects = (des == NULL); 2224 const bool create_heap_objects = (des == NULL);
2225 if (create_heap_objects && !heap_.CreateHeapObjects()) { 2225 if (create_heap_objects && !heap_.CreateHeapObjects()) {
2226 V8::FatalProcessOutOfMemory("heap object creation"); 2226 V8::FatalProcessOutOfMemory("heap object creation");
2227 return false; 2227 return false;
2228 } 2228 }
2229 2229
2230 if (create_heap_objects) { 2230 if (create_heap_objects) {
2231 // Terminate the cache array with the sentinel so we can iterate. 2231 // Terminate the partial snapshot cache so we can iterate.
2232 partial_snapshot_cache_.Add(heap_.undefined_value()); 2232 partial_snapshot_cache_.Add(heap_.undefined_value());
2233 } 2233 }
2234 2234
2235 InitializeThreadLocal(); 2235 InitializeThreadLocal();
2236 2236
2237 bootstrapper_->Initialize(create_heap_objects); 2237 bootstrapper_->Initialize(create_heap_objects);
2238 builtins_.SetUp(this, create_heap_objects); 2238 builtins_.SetUp(this, create_heap_objects);
2239 2239
2240 if (FLAG_log_internal_timer_events) { 2240 if (FLAG_log_internal_timer_events) {
2241 set_event_logger(Logger::DefaultEventLoggerSentinel); 2241 set_event_logger(Logger::DefaultEventLoggerSentinel);
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 // Then check whether this scope intercepts. 2975 // Then check whether this scope intercepts.
2976 if ((flag & intercept_mask_)) { 2976 if ((flag & intercept_mask_)) {
2977 intercepted_flags_ |= flag; 2977 intercepted_flags_ |= flag;
2978 return true; 2978 return true;
2979 } 2979 }
2980 return false; 2980 return false;
2981 } 2981 }
2982 2982
2983 } // namespace internal 2983 } // namespace internal
2984 } // namespace v8 2984 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/snapshot/deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698