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

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

Issue 2426383003: Fix build. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | 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 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 rodata_blob_size); 1438 rodata_blob_size);
1439 } else { 1439 } else {
1440 WriteSnapshotFile(snapshot_filename, 1440 WriteSnapshotFile(snapshot_filename,
1441 false, 1441 false,
1442 assembly_buffer, 1442 assembly_buffer,
1443 assembly_size); 1443 assembly_size);
1444 } 1444 }
1445 } 1445 }
1446 1446
1447 1447
1448 #if defined(TARGET_ARCH_X64)
1448 static void GeneratePrecompiledJITSnapshot() { 1449 static void GeneratePrecompiledJITSnapshot() {
1449 uint8_t* vm_isolate_buffer = NULL; 1450 uint8_t* vm_isolate_buffer = NULL;
1450 intptr_t vm_isolate_size = 0; 1451 intptr_t vm_isolate_size = 0;
1451 uint8_t* isolate_buffer = NULL; 1452 uint8_t* isolate_buffer = NULL;
1452 intptr_t isolate_size = 0; 1453 intptr_t isolate_size = 0;
1453 uint8_t* instructions_blob_buffer = NULL; 1454 uint8_t* instructions_blob_buffer = NULL;
1454 intptr_t instructions_blob_size = 0; 1455 intptr_t instructions_blob_size = 0;
1455 uint8_t* rodata_blob_buffer = NULL; 1456 uint8_t* rodata_blob_buffer = NULL;
1456 intptr_t rodata_blob_size = 0; 1457 intptr_t rodata_blob_size = 0;
1457 Dart_Handle result = Dart_CreateAppJITSnapshot( 1458 Dart_Handle result = Dart_CreateAppJITSnapshot(
(...skipping 11 matching lines...) Expand all
1469 WriteAppSnapshot(snapshot_filename, 1470 WriteAppSnapshot(snapshot_filename,
1470 vm_isolate_buffer, 1471 vm_isolate_buffer,
1471 vm_isolate_size, 1472 vm_isolate_size,
1472 isolate_buffer, 1473 isolate_buffer,
1473 isolate_size, 1474 isolate_size,
1474 instructions_blob_buffer, 1475 instructions_blob_buffer,
1475 instructions_blob_size, 1476 instructions_blob_size,
1476 rodata_blob_buffer, 1477 rodata_blob_buffer,
1477 rodata_blob_size); 1478 rodata_blob_size);
1478 } 1479 }
1480 #endif // defined(TARGET_ARCH_X64)
1479 1481
1480 1482
1481 static void GenerateAppSnapshot() { 1483 static void GenerateAppSnapshot() {
1482 Dart_Handle result; 1484 Dart_Handle result;
1483 #if defined(TARGET_ARCH_X64) 1485 #if defined(TARGET_ARCH_X64)
1484 result = Dart_PrecompileJIT(); 1486 result = Dart_PrecompileJIT();
1485 if (Dart_IsError(result)) { 1487 if (Dart_IsError(result)) {
1486 ErrorExit(kErrorExitCode, "%s\n", Dart_GetError(result)); 1488 ErrorExit(kErrorExitCode, "%s\n", Dart_GetError(result));
1487 } 1489 }
1488 GeneratePrecompiledJITSnapshot(); 1490 GeneratePrecompiledJITSnapshot();
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 Platform::Exit(Process::GlobalExitCode()); 1954 Platform::Exit(Process::GlobalExitCode());
1953 } 1955 }
1954 1956
1955 } // namespace bin 1957 } // namespace bin
1956 } // namespace dart 1958 } // namespace dart
1957 1959
1958 int main(int argc, char** argv) { 1960 int main(int argc, char** argv) {
1959 dart::bin::main(argc, argv); 1961 dart::bin::main(argc, argv);
1960 UNREACHABLE(); 1962 UNREACHABLE();
1961 } 1963 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698