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

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

Issue 1992703005: Add test harness option for app snapshots with unoptimized code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 "Generating app JIT snapshots as assembly unimplemented\n"); 1225 "Generating app JIT snapshots as assembly unimplemented\n");
1226 } 1226 }
1227 uint8_t* vm_isolate_buffer = NULL; 1227 uint8_t* vm_isolate_buffer = NULL;
1228 intptr_t vm_isolate_size = 0; 1228 intptr_t vm_isolate_size = 0;
1229 uint8_t* isolate_buffer = NULL; 1229 uint8_t* isolate_buffer = NULL;
1230 intptr_t isolate_size = 0; 1230 intptr_t isolate_size = 0;
1231 uint8_t* instructions_blob_buffer = NULL; 1231 uint8_t* instructions_blob_buffer = NULL;
1232 intptr_t instructions_blob_size = 0; 1232 intptr_t instructions_blob_size = 0;
1233 uint8_t* rodata_blob_buffer = NULL; 1233 uint8_t* rodata_blob_buffer = NULL;
1234 intptr_t rodata_blob_size = 0; 1234 intptr_t rodata_blob_size = 0;
1235 Dart_Handle result = Dart_CreatePrecompiledJITSnapshotBlob( 1235 Dart_Handle result = Dart_CreateAppJITSnapshot(
1236 &vm_isolate_buffer, 1236 &vm_isolate_buffer,
1237 &vm_isolate_size, 1237 &vm_isolate_size,
1238 &isolate_buffer, 1238 &isolate_buffer,
1239 &isolate_size, 1239 &isolate_size,
1240 &instructions_blob_buffer, 1240 &instructions_blob_buffer,
1241 &instructions_blob_size, 1241 &instructions_blob_size,
1242 &rodata_blob_buffer, 1242 &rodata_blob_buffer,
1243 &rodata_blob_size); 1243 &rodata_blob_size);
1244 if (Dart_IsError(result)) { 1244 if (Dart_IsError(result)) {
1245 ErrorExit(kErrorExitCode, "%s\n", Dart_GetError(result)); 1245 ErrorExit(kErrorExitCode, "%s\n", Dart_GetError(result));
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 Platform::Exit(Process::GlobalExitCode()); 1731 Platform::Exit(Process::GlobalExitCode());
1732 } 1732 }
1733 1733
1734 } // namespace bin 1734 } // namespace bin
1735 } // namespace dart 1735 } // namespace dart
1736 1736
1737 int main(int argc, char** argv) { 1737 int main(int argc, char** argv) {
1738 dart::bin::main(argc, argv); 1738 dart::bin::main(argc, argv);
1739 UNREACHABLE(); 1739 UNREACHABLE();
1740 } 1740 }
OLDNEW
« no previous file with comments | « pkg/pkg.status ('k') | runtime/include/dart_api.h » ('j') | tests/co19/co19-runtime.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698