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

Side by Side Diff: runtime/bin/snapshot_empty.cc

Issue 2901163002: Use assembly instead of C array literals to link the core snapshot into the VM. (Closed)
Patch Set: windows Created 3 years, 7 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
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/bin/snapshot_in.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This file is linked into the dart executable when it does not have a 5 // This file is linked into the dart executable when it does not have a
6 // snapshot linked into it. 6 // snapshot linked into it.
7 7
8 #if defined(_WIN32) 8 #if defined(_WIN32)
9 typedef unsigned __int8 uint8_t; 9 typedef unsigned __int8 uint8_t;
10 #else 10 #else
11 #include <inttypes.h> 11 #include <inttypes.h>
12 #include <stdint.h> 12 #include <stdint.h>
13 #endif 13 #endif
14 #include <stddef.h> 14 #include <stddef.h>
15 15
16 namespace dart { 16 extern "C" {
17 namespace bin { 17 const uint8_t* kDartVmSnapshotData = NULL;
18 18 const uint8_t* kDartVmSnapshotInstructions = NULL;
19 const uint8_t* vm_snapshot_data = NULL; 19 const uint8_t* kDartCoreIsolateSnapshotData = NULL;
20 const uint8_t* vm_snapshot_instructions = NULL; 20 const uint8_t* kDartCoreIsolateSnapshotInstructions = NULL;
21 const uint8_t* core_isolate_snapshot_data = NULL; 21 }
22 const uint8_t* core_isolate_snapshot_instructions = NULL;
23
24 } // namespace bin
25 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/bin/snapshot_in.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698