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

Side by Side Diff: src/startup-data-util.cc

Issue 1667673003: [Ignition] Use separate startup data for ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move to correct condition section. Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/startup-data-util.h" 5 #include "src/startup-data-util.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
11 #include "src/base/platform/platform.h" 11 #include "src/base/platform/platform.h"
12 #include "src/flags.h"
12 #include "src/utils.h" 13 #include "src/utils.h"
13 14
14 15
15 namespace v8 { 16 namespace v8 {
16 namespace internal { 17 namespace internal {
17 18
18 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 19 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
19 20
20 namespace { 21 namespace {
21 22
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 } // namespace 102 } // namespace
102 #endif // V8_USE_EXTERNAL_STARTUP_DATA 103 #endif // V8_USE_EXTERNAL_STARTUP_DATA
103 104
104 105
105 void InitializeExternalStartupData(const char* directory_path) { 106 void InitializeExternalStartupData(const char* directory_path) {
106 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 107 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
107 char* natives; 108 char* natives;
108 char* snapshot; 109 char* snapshot;
109 LoadFromFiles(RelativePath(&natives, directory_path, "natives_blob.bin"), 110 LoadFromFiles(RelativePath(&natives, directory_path, "natives_blob.bin"),
110 RelativePath(&snapshot, directory_path, "snapshot_blob.bin")); 111 RelativePath(&snapshot, directory_path,
112 FLAG_ignition ? "snapshot_blob_ignition.bin"
113 : "snapshot_blob.bin"));
111 free(natives); 114 free(natives);
112 free(snapshot); 115 free(snapshot);
113 #endif // V8_USE_EXTERNAL_STARTUP_DATA 116 #endif // V8_USE_EXTERNAL_STARTUP_DATA
114 } 117 }
115 118
116 119
117 void InitializeExternalStartupData(const char* natives_blob, 120 void InitializeExternalStartupData(const char* natives_blob,
118 const char* snapshot_blob) { 121 const char* snapshot_blob) {
119 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 122 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
120 LoadFromFiles(natives_blob, snapshot_blob); 123 LoadFromFiles(natives_blob, snapshot_blob);
121 #endif // V8_USE_EXTERNAL_STARTUP_DATA 124 #endif // V8_USE_EXTERNAL_STARTUP_DATA
122 } 125 }
123 126
124 } // namespace internal 127 } // namespace internal
125 } // namespace v8 128 } // namespace v8
OLDNEW
« no previous file with comments | « src/base.isolate ('k') | tools/gyp/v8.gyp » ('j') | tools/gyp/v8.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698