OLD | NEW |
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 "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_OS_LINUX) | 6 #if defined(TARGET_OS_LINUX) |
7 | 7 |
8 #include "vm/os.h" | 8 #include "vm/os.h" |
9 | 9 |
10 #include <errno.h> // NOLINT | 10 #include <errno.h> // NOLINT |
11 #include <limits.h> // NOLINT | 11 #include <limits.h> // NOLINT |
12 #include <malloc.h> // NOLINT | 12 #include <malloc.h> // NOLINT |
13 #include <time.h> // NOLINT | 13 #include <time.h> // NOLINT |
14 #include <sys/resource.h> // NOLINT | 14 #include <sys/resource.h> // NOLINT |
15 #include <sys/time.h> // NOLINT | 15 #include <sys/time.h> // NOLINT |
16 #include <sys/types.h> // NOLINT | 16 #include <sys/types.h> // NOLINT |
17 #include <sys/syscall.h> // NOLINT | 17 #include <sys/syscall.h> // NOLINT |
18 #include <sys/stat.h> // NOLINT | 18 #include <sys/stat.h> // NOLINT |
19 #include <fcntl.h> // NOLINT | 19 #include <fcntl.h> // NOLINT |
20 #include <unistd.h> // NOLINT | 20 #include <unistd.h> // NOLINT |
21 | 21 |
22 #include "platform/utils.h" | 22 #include "platform/utils.h" |
23 #include "vm/code_observers.h" | 23 #include "vm/code_observers.h" |
24 #include "vm/dart.h" | 24 #include "vm/dart.h" |
25 #include "vm/debuginfo.h" | 25 #include "vm/debuginfo.h" |
26 #include "vm/isolate.h" | 26 #include "vm/isolate.h" |
27 #include "vm/lockers.h" | 27 #include "vm/lockers.h" |
28 #include "vm/thread.h" | 28 #include "vm/os_thread.h" |
29 #include "vm/vtune.h" | 29 #include "vm/vtune.h" |
30 #include "vm/zone.h" | 30 #include "vm/zone.h" |
31 | 31 |
32 | 32 |
33 namespace dart { | 33 namespace dart { |
34 | 34 |
35 // Linux CodeObservers. | 35 // Linux CodeObservers. |
36 | 36 |
37 DEFINE_FLAG(bool, generate_gdb_symbols, false, | 37 DEFINE_FLAG(bool, generate_gdb_symbols, false, |
38 "Generate symbols of generated dart functions for debugging with GDB"); | 38 "Generate symbols of generated dart functions for debugging with GDB"); |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 } | 616 } |
617 | 617 |
618 | 618 |
619 void OS::Exit(int code) { | 619 void OS::Exit(int code) { |
620 exit(code); | 620 exit(code); |
621 } | 621 } |
622 | 622 |
623 } // namespace dart | 623 } // namespace dart |
624 | 624 |
625 #endif // defined(TARGET_OS_LINUX) | 625 #endif // defined(TARGET_OS_LINUX) |
OLD | NEW |