OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include <errno.h> | 49 #include <errno.h> |
50 #include <stdarg.h> | 50 #include <stdarg.h> |
51 #include <sys/procfs.h> | 51 #include <sys/procfs.h> |
52 | 52 |
53 #undef MAP_TYPE | 53 #undef MAP_TYPE |
54 | 54 |
55 #include "v8.h" | 55 #include "v8.h" |
56 | 56 |
57 #include "platform.h" | 57 #include "platform.h" |
58 #include "v8threads.h" | 58 #include "v8threads.h" |
59 #include "vm-state-inl.h" | |
60 | 59 |
61 | 60 |
62 namespace v8 { | 61 namespace v8 { |
63 namespace internal { | 62 namespace internal { |
64 | 63 |
65 // 0 is never a valid thread id on Qnx since tids and pids share a | 64 // 0 is never a valid thread id on Qnx since tids and pids share a |
66 // name space and pid 0 is reserved (see man 2 kill). | 65 // name space and pid 0 is reserved (see man 2 kill). |
67 static const pthread_t kNoThread = (pthread_t) 0; | 66 static const pthread_t kNoThread = (pthread_t) 0; |
68 | 67 |
69 | 68 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { | 391 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { |
393 return munmap(base, size) == 0; | 392 return munmap(base, size) == 0; |
394 } | 393 } |
395 | 394 |
396 | 395 |
397 bool VirtualMemory::HasLazyCommits() { | 396 bool VirtualMemory::HasLazyCommits() { |
398 return false; | 397 return false; |
399 } | 398 } |
400 | 399 |
401 } } // namespace v8::internal | 400 } } // namespace v8::internal |
OLD | NEW |