OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 LOG(isolate SharedLibraryEvent(start_of_path, start, end)); | 192 LOG(isolate SharedLibraryEvent(start_of_path, start, end)); |
193 } | 193 } |
194 close(fd); | 194 close(fd); |
195 } | 195 } |
196 | 196 |
197 | 197 |
198 void OS::SignalCodeMovingGC() { | 198 void OS::SignalCodeMovingGC() { |
199 } | 199 } |
200 | 200 |
201 | 201 |
202 int OS::StackWalk(Vector<OS::StackFrame> frames) { | |
203 return POSIXBacktraceHelper<backtrace, backtrace_symbols>::StackWalk(frames); | |
204 } | |
205 | |
206 | 202 |
207 // Constants used for mmap. | 203 // Constants used for mmap. |
208 static const int kMmapFd = -1; | 204 static const int kMmapFd = -1; |
209 static const int kMmapFdOffset = 0; | 205 static const int kMmapFdOffset = 0; |
210 | 206 |
211 | 207 |
212 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } | 208 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } |
213 | 209 |
214 | 210 |
215 VirtualMemory::VirtualMemory(size_t size) | 211 VirtualMemory::VirtualMemory(size_t size) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 return munmap(base, size) == 0; | 330 return munmap(base, size) == 0; |
335 } | 331 } |
336 | 332 |
337 | 333 |
338 bool VirtualMemory::HasLazyCommits() { | 334 bool VirtualMemory::HasLazyCommits() { |
339 // TODO(alph): implement for the platform. | 335 // TODO(alph): implement for the platform. |
340 return false; | 336 return false; |
341 } | 337 } |
342 | 338 |
343 } } // namespace v8::internal | 339 } } // namespace v8::internal |
OLD | NEW |