| OLD | NEW |
| (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_ |
| OLD | NEW |