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

Side by Side Diff: runtime/bin/snapshot.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_H_
6 #define RUNTIME_BIN_SNAPSHOT_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 };
zra 2017/02/09 16:15:38 DISALLOW_ALLOCATION() DISALLOW_IMPLICIT_CONSTRUCTO
rmacnak 2017/02/10 02:11:56 Done.
26
27 } // namespace bin
28 } // namespace dart
29
30 #endif // RUNTIME_BIN_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698