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

Side by Side Diff: runtime/bin/snapshot_utils.h

Issue 2681193002: Factor out snapshot helpers from main.cc. (Closed)
Patch Set: . Created 3 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
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef RUNTIME_BIN_SNAPSHOT_UTILS_H_
6 #define RUNTIME_BIN_SNAPSHOT_UTILS_H_
7
8 #include "platform/globals.h"
9
10 namespace dart {
11 namespace bin {
12
13 class Snapshot {
14 public:
15 static void GenerateScript(const char* snapshot_filename);
16 static void GenerateAppJIT(const char* snapshot_filename);
17 static void GenerateAppAOTAsBlobs(const char* snapshot_filename);
18 static void GenerateAppAOTAsAssembly(const char* snapshot_filename);
19
20 static bool ReadAppSnapshot(const char* script_name,
21 const uint8_t** vm_data_buffer,
22 const uint8_t** vm_instructions_buffer,
23 const uint8_t** isolate_data_buffer,
24 const uint8_t** isolate_instructions_buffer);
25
26 private:
27 DISALLOW_ALLOCATION();
28 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot);
29 };
30
31 } // namespace bin
32 } // namespace dart
33
34 #endif // RUNTIME_BIN_SNAPSHOT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698