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

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

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: . Created 3 years, 6 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_tools_api.h" 10 #include "include/dart_tools_api.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Snapshot pieces if we link in a snapshot, otherwise initialized to NULL. 50 // Snapshot pieces if we link in a snapshot, otherwise initialized to NULL.
51 #if defined(DART_NO_SNAPSHOT) 51 #if defined(DART_NO_SNAPSHOT)
52 const uint8_t* vm_snapshot_data = NULL; 52 const uint8_t* vm_snapshot_data = NULL;
53 const uint8_t* vm_snapshot_instructions = NULL; 53 const uint8_t* vm_snapshot_instructions = NULL;
54 const uint8_t* core_isolate_snapshot_data = NULL; 54 const uint8_t* core_isolate_snapshot_data = NULL;
55 const uint8_t* core_isolate_snapshot_instructions = NULL; 55 const uint8_t* core_isolate_snapshot_instructions = NULL;
56 #else 56 #else
57 const uint8_t* vm_snapshot_data = kDartVmSnapshotData; 57 const uint8_t* vm_snapshot_data = kDartVmSnapshotData;
58 const uint8_t* vm_snapshot_instructions = kDartVmSnapshotInstructions; 58 const uint8_t* vm_snapshot_instructions = kDartVmSnapshotInstructions;
59 const uint8_t* core_isolate_snapshot_data = kDartCoreIsolateSnapshotData; 59 const uint8_t* core_isolate_snapshot_data = kDartCoreIsolateSnapshotData;
60 const uint8_t* core_isolate_snapshot_instructions = kDartVmSnapshotInstructions; 60 const uint8_t* core_isolate_snapshot_instructions =
61 kDartCoreIsolateSnapshotInstructions;
61 #endif 62 #endif
62 63
63 /** 64 /**
64 * Global state used to control and store generation of application snapshots 65 * Global state used to control and store generation of application snapshots
65 * An application snapshot can be generated and run using the following 66 * An application snapshot can be generated and run using the following
66 * command 67 * command
67 * dart --snapshot-kind=app-jit --snapshot=<app_snapshot_filename> 68 * dart --snapshot-kind=app-jit --snapshot=<app_snapshot_filename>
68 * <script_uri> [<script_options>] 69 * <script_uri> [<script_options>]
69 * To Run the application snapshot generated above, use : 70 * To Run the application snapshot generated above, use :
70 * dart <app_snapshot_filename> [<script_options>] 71 * dart <app_snapshot_filename> [<script_options>]
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 Platform::Exit(Process::GlobalExitCode()); 1770 Platform::Exit(Process::GlobalExitCode());
1770 } 1771 }
1771 1772
1772 } // namespace bin 1773 } // namespace bin
1773 } // namespace dart 1774 } // namespace dart
1774 1775
1775 int main(int argc, char** argv) { 1776 int main(int argc, char** argv) {
1776 dart::bin::main(argc, argv); 1777 dart::bin::main(argc, argv);
1777 UNREACHABLE(); 1778 UNREACHABLE();
1778 } 1779 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698