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

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

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: gn 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Snapshot pieces if we link in a snapshot, otherwise initialized to NULL. 49 // Snapshot pieces if we link in a snapshot, otherwise initialized to NULL.
50 #if defined(DART_NO_SNAPSHOT) 50 #if defined(DART_NO_SNAPSHOT)
51 const uint8_t* vm_snapshot_data = NULL; 51 const uint8_t* vm_snapshot_data = NULL;
52 const uint8_t* vm_snapshot_instructions = NULL; 52 const uint8_t* vm_snapshot_instructions = NULL;
53 const uint8_t* core_isolate_snapshot_data = NULL; 53 const uint8_t* core_isolate_snapshot_data = NULL;
54 const uint8_t* core_isolate_snapshot_instructions = NULL; 54 const uint8_t* core_isolate_snapshot_instructions = NULL;
55 #else 55 #else
56 const uint8_t* vm_snapshot_data = kDartVmSnapshotData; 56 const uint8_t* vm_snapshot_data = kDartVmSnapshotData;
57 const uint8_t* vm_snapshot_instructions = kDartVmSnapshotInstructions; 57 const uint8_t* vm_snapshot_instructions = kDartVmSnapshotInstructions;
58 const uint8_t* core_isolate_snapshot_data = kDartCoreIsolateSnapshotData; 58 const uint8_t* core_isolate_snapshot_data = kDartCoreIsolateSnapshotData;
59 const uint8_t* core_isolate_snapshot_instructions = kDartVmSnapshotInstructions; 59 const uint8_t* core_isolate_snapshot_instructions =
60 kDartCoreIsolateSnapshotInstructions;
60 #endif 61 #endif
61 62
62 /** 63 /**
63 * Global state used to control and store generation of application snapshots 64 * Global state used to control and store generation of application snapshots
64 * An application snapshot can be generated and run using the following 65 * An application snapshot can be generated and run using the following
65 * command 66 * command
66 * dart --snapshot-kind=app-jit --snapshot=<app_snapshot_filename> 67 * dart --snapshot-kind=app-jit --snapshot=<app_snapshot_filename>
67 * <script_uri> [<script_options>] 68 * <script_uri> [<script_options>]
68 * To Run the application snapshot generated above, use : 69 * To Run the application snapshot generated above, use :
69 * dart <app_snapshot_filename> [<script_options>] 70 * dart <app_snapshot_filename> [<script_options>]
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 Platform::Exit(Process::GlobalExitCode()); 1773 Platform::Exit(Process::GlobalExitCode());
1773 } 1774 }
1774 1775
1775 } // namespace bin 1776 } // namespace bin
1776 } // namespace dart 1777 } // namespace dart
1777 1778
1778 int main(int argc, char** argv) { 1779 int main(int argc, char** argv) {
1779 dart::bin::main(argc, argv); 1780 dart::bin::main(argc, argv);
1780 UNREACHABLE(); 1781 UNREACHABLE();
1781 } 1782 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698