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

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

Issue 1537063002: Initialize standalone embedder's copy of the monotonic clock on Windows. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | runtime/bin/utils.h » ('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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 Platform::Exit(kErrorExitCode); 1456 Platform::Exit(kErrorExitCode);
1457 } 1457 }
1458 1458
1459 if (generate_script_snapshot) { 1459 if (generate_script_snapshot) {
1460 vm_options.AddArgument("--load_deferred_eagerly"); 1460 vm_options.AddArgument("--load_deferred_eagerly");
1461 } 1461 }
1462 1462
1463 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); 1463 Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
1464 1464
1465 // Start event handler. 1465 // Start event handler.
1466 TimerUtils::InitOnce();
1466 EventHandler::Start(); 1467 EventHandler::Start();
1467 1468
1468 const uint8_t* instructions_snapshot = NULL; 1469 const uint8_t* instructions_snapshot = NULL;
1469 if (has_run_precompiled_snapshot) { 1470 if (has_run_precompiled_snapshot) {
1470 instructions_snapshot = reinterpret_cast<const uint8_t*>( 1471 instructions_snapshot = reinterpret_cast<const uint8_t*>(
1471 LoadLibrarySymbol(kPrecompiledLibraryName, kPrecompiledSymbolName)); 1472 LoadLibrarySymbol(kPrecompiledLibraryName, kPrecompiledSymbolName));
1472 ReadPrecompiledSnapshotFile(kPrecompiledVmIsolateName, 1473 ReadPrecompiledSnapshotFile(kPrecompiledVmIsolateName,
1473 &vm_isolate_snapshot_buffer); 1474 &vm_isolate_snapshot_buffer);
1474 ReadPrecompiledSnapshotFile(kPrecompiledIsolateName, 1475 ReadPrecompiledSnapshotFile(kPrecompiledIsolateName,
1475 &isolate_snapshot_buffer); 1476 &isolate_snapshot_buffer);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 Platform::Exit(Process::GlobalExitCode()); 1537 Platform::Exit(Process::GlobalExitCode());
1537 } 1538 }
1538 1539
1539 } // namespace bin 1540 } // namespace bin
1540 } // namespace dart 1541 } // namespace dart
1541 1542
1542 int main(int argc, char** argv) { 1543 int main(int argc, char** argv) {
1543 dart::bin::main(argc, argv); 1544 dart::bin::main(argc, argv);
1544 UNREACHABLE(); 1545 UNREACHABLE();
1545 } 1546 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698