OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible | 5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible |
6 // parts, the implementation is in platform-posix.cc. | 6 // parts, the implementation is in platform-posix.cc. |
7 | 7 |
8 #ifdef __sparc | 8 #ifdef __sparc |
9 # error "V8 does not support the SPARC CPU architecture." | 9 # error "V8 does not support the SPARC CPU architecture." |
10 #endif | 10 #endif |
11 | 11 |
12 #include <sys/stack.h> // for stack alignment | 12 #include <dlfcn.h> // dladdr |
13 #include <unistd.h> // getpagesize(), usleep() | 13 #include <errno.h> |
14 #include <sys/mman.h> // mmap() | 14 #include <ieeefp.h> // finite() |
15 #include <ucontext.h> // walkstack(), getcontext() | |
16 #include <dlfcn.h> // dladdr | |
17 #include <pthread.h> | 15 #include <pthread.h> |
18 #include <semaphore.h> | 16 #include <semaphore.h> |
| 17 #include <signal.h> // sigemptyset(), etc |
| 18 #include <sys/mman.h> // mmap() |
| 19 #include <sys/regset.h> |
| 20 #include <sys/stack.h> // for stack alignment |
| 21 #include <sys/time.h> // gettimeofday(), timeradd() |
19 #include <time.h> | 22 #include <time.h> |
20 #include <sys/time.h> // gettimeofday(), timeradd() | 23 #include <ucontext.h> // walkstack(), getcontext() |
21 #include <errno.h> | 24 #include <unistd.h> // getpagesize(), usleep() |
22 #include <ieeefp.h> // finite() | |
23 #include <signal.h> // sigemptyset(), etc | |
24 #include <sys/regset.h> | |
25 | 25 |
26 | 26 |
27 #undef MAP_TYPE | 27 #undef MAP_TYPE |
28 | 28 |
29 #include "src/v8.h" | 29 #include "src/v8.h" |
30 | 30 |
31 #include "src/platform.h" | 31 #include "src/platform.h" |
32 | 32 |
33 | 33 |
34 // It seems there is a bug in some Solaris distributions (experienced in | 34 // It seems there is a bug in some Solaris distributions (experienced in |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 return munmap(base, size) == 0; | 308 return munmap(base, size) == 0; |
309 } | 309 } |
310 | 310 |
311 | 311 |
312 bool VirtualMemory::HasLazyCommits() { | 312 bool VirtualMemory::HasLazyCommits() { |
313 // TODO(alph): implement for the platform. | 313 // TODO(alph): implement for the platform. |
314 return false; | 314 return false; |
315 } | 315 } |
316 | 316 |
317 } } // namespace v8::internal | 317 } } // namespace v8::internal |
OLD | NEW |