Files
sdk/runtime/bin/snapshot_in.cc
T
Zach Anderson c36cd6b143 Revert "Remove the now unused runtime/bin/snapshot_in.cc"
This reverts commit 5853eac5c0.

The file is still used in an internal build.

Change-Id: Idb336a8c01369d16d34d1cc8f2df4203fa1a7784
Reviewed-on: https://dart-review.googlesource.com/23880
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2017-11-27 17:57:21 +00:00

39 lines
1.1 KiB
C++

// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// clang-format off
// This file is linked into the dart executable when it has a snapshot
// linked into it.
#if defined(_WIN32)
typedef unsigned __int8 uint8_t;
#else
#include <inttypes.h>
#include <stdint.h>
#endif
#include <stddef.h>
extern "C" {
// The string on the next line will be filled in with the contents of the
// generated snapshot binary file for the vm isolate.
// This string forms the content of a vm isolate snapshot which is loaded
// into the vm isolate.
uint8_t kDartVmSnapshotData[] = {
%s
};
uint8_t kDartVmSnapshotInstructions[] = {};
// The string on the next line will be filled in with the contents of the
// generated snapshot binary file for a regular dart isolate.
// This string forms the content of a regular dart isolate snapshot which is
// loaded into an isolate when it is created.
uint8_t kDartCoreIsolateSnapshotData[] = {
%s
};
uint8_t kDartCoreIsolateSnapshotInstructions[] = {};
}