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

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

Issue 2786483002: AOT compiler changes for dart_content_handler: (Closed)
Patch Set: . Created 3 years, 8 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/BUILD.gn ('k') | runtime/vm/BUILD.gn » ('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) 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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 // Shutdown the isolate. 1315 // Shutdown the isolate.
1316 Dart_ShutdownIsolate(); 1316 Dart_ShutdownIsolate();
1317 return false; 1317 return false;
1318 } 1318 }
1319 1319
1320 if (gen_snapshot_kind == kAppAOT) { 1320 if (gen_snapshot_kind == kAppAOT) {
1321 Dart_QualifiedFunctionName standalone_entry_points[] = { 1321 Dart_QualifiedFunctionName standalone_entry_points[] = {
1322 {"dart:_builtin", "::", "_getMainClosure"}, 1322 {"dart:_builtin", "::", "_getMainClosure"},
1323 {"dart:_builtin", "::", "_getPrintClosure"}, 1323 {"dart:_builtin", "::", "_getPrintClosure"},
1324 {"dart:_builtin", "::", "_getUriBaseClosure"}, 1324 {"dart:_builtin", "::", "_getUriBaseClosure"},
1325 {"dart:_builtin", "::", "_libraryFilePath"},
1325 {"dart:_builtin", "::", "_resolveInWorkingDirectory"}, 1326 {"dart:_builtin", "::", "_resolveInWorkingDirectory"},
1326 {"dart:_builtin", "::", "_setWorkingDirectory"},
1327 {"dart:_builtin", "::", "_setPackageRoot"}, 1327 {"dart:_builtin", "::", "_setPackageRoot"},
1328 {"dart:_builtin", "::", "_setPackagesMap"}, 1328 {"dart:_builtin", "::", "_setPackagesMap"},
1329 {"dart:_builtin", "::", "_libraryFilePath"}, 1329 {"dart:_builtin", "::", "_setWorkingDirectory"},
1330 {"dart:async", "::", "_setScheduleImmediateClosure"},
1331 {"dart:io", "::", "_getWatchSignalInternal"},
1332 {"dart:io", "::", "_makeDatagram"},
1330 {"dart:io", "::", "_makeUint8ListView"}, 1333 {"dart:io", "::", "_makeUint8ListView"},
1331 {"dart:io", "::", "_makeDatagram"},
1332 {"dart:io", "::", "_setupHooks"}, 1334 {"dart:io", "::", "_setupHooks"},
1333 {"dart:io", "::", "_getWatchSignalInternal"},
1334 {"dart:io", "CertificateException", "CertificateException."}, 1335 {"dart:io", "CertificateException", "CertificateException."},
1335 {"dart:io", "Directory", "Directory."}, 1336 {"dart:io", "Directory", "Directory."},
1336 {"dart:io", "File", "File."}, 1337 {"dart:io", "File", "File."},
1337 {"dart:io", "FileSystemException", "FileSystemException."}, 1338 {"dart:io", "FileSystemException", "FileSystemException."},
1338 {"dart:io", "HandshakeException", "HandshakeException."}, 1339 {"dart:io", "HandshakeException", "HandshakeException."},
1339 {"dart:io", "Link", "Link."}, 1340 {"dart:io", "Link", "Link."},
1340 {"dart:io", "OSError", "OSError."}, 1341 {"dart:io", "OSError", "OSError."},
1341 {"dart:io", "TlsException", "TlsException."}, 1342 {"dart:io", "TlsException", "TlsException."},
1342 {"dart:io", "X509Certificate", "X509Certificate._"}, 1343 {"dart:io", "X509Certificate", "X509Certificate._"},
1344 {"dart:io", "_ExternalBuffer", "get:end"},
1345 {"dart:io", "_ExternalBuffer", "get:start"},
1343 {"dart:io", "_ExternalBuffer", "set:data"}, 1346 {"dart:io", "_ExternalBuffer", "set:data"},
1344 {"dart:io", "_ExternalBuffer", "get:start"}, 1347 {"dart:io", "_ExternalBuffer", "set:end"},
1345 {"dart:io", "_ExternalBuffer", "set:start"}, 1348 {"dart:io", "_ExternalBuffer", "set:start"},
1346 {"dart:io", "_ExternalBuffer", "get:end"},
1347 {"dart:io", "_ExternalBuffer", "set:end"},
1348 {"dart:io", "_Platform", "set:_nativeScript"}, 1349 {"dart:io", "_Platform", "set:_nativeScript"},
1349 {"dart:io", "_ProcessStartStatus", "set:_errorCode"}, 1350 {"dart:io", "_ProcessStartStatus", "set:_errorCode"},
1350 {"dart:io", "_ProcessStartStatus", "set:_errorMessage"}, 1351 {"dart:io", "_ProcessStartStatus", "set:_errorMessage"},
1351 {"dart:io", "_SecureFilterImpl", "get:buffers"},
1352 {"dart:io", "_SecureFilterImpl", "get:ENCRYPTED_SIZE"}, 1352 {"dart:io", "_SecureFilterImpl", "get:ENCRYPTED_SIZE"},
1353 {"dart:io", "_SecureFilterImpl", "get:SIZE"}, 1353 {"dart:io", "_SecureFilterImpl", "get:SIZE"},
1354 {"dart:io", "_SecureFilterImpl", "get:buffers"},
1355 {"dart:isolate", "::", "_getIsolateScheduleImmediateClosure"},
1356 {"dart:isolate", "::", "_setupHooks"},
1357 {"dart:isolate", "::", "_startMainIsolate"},
1354 {"dart:vmservice_io", "::", "main"}, 1358 {"dart:vmservice_io", "::", "main"},
1355 {NULL, NULL, NULL} // Must be terminated with NULL entries. 1359 {NULL, NULL, NULL} // Must be terminated with NULL entries.
1356 }; 1360 };
1357 1361
1358 uint8_t* feedback_buffer = NULL; 1362 uint8_t* feedback_buffer = NULL;
1359 intptr_t feedback_length = 0; 1363 intptr_t feedback_length = 0;
1360 if (load_feedback_filename != NULL) { 1364 if (load_feedback_filename != NULL) {
1361 File* file = File::Open(load_feedback_filename, File::kRead); 1365 File* file = File::Open(load_feedback_filename, File::kRead);
1362 if (file == NULL) { 1366 if (file == NULL) {
1363 ErrorExit(kErrorExitCode, "Failed to read JIT feedback.\n"); 1367 ErrorExit(kErrorExitCode, "Failed to read JIT feedback.\n");
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 Platform::Exit(Process::GlobalExitCode()); 1716 Platform::Exit(Process::GlobalExitCode());
1713 } 1717 }
1714 1718
1715 } // namespace bin 1719 } // namespace bin
1716 } // namespace dart 1720 } // namespace dart
1717 1721
1718 int main(int argc, char** argv) { 1722 int main(int argc, char** argv) {
1719 dart::bin::main(argc, argv); 1723 dart::bin::main(argc, argv);
1720 UNREACHABLE(); 1724 UNREACHABLE();
1721 } 1725 }
OLDNEW
« no previous file with comments | « runtime/BUILD.gn ('k') | runtime/vm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698