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 |
202 | 206 |
203 // Constants used for mmap. | 207 // Constants used for mmap. |
204 static const int kMmapFd = -1; | 208 static const int kMmapFd = -1; |
205 static const int kMmapFdOffset = 0; | 209 static const int kMmapFdOffset = 0; |
206 | 210 |
207 | 211 |
208 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } | 212 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } |
209 | 213 |
210 | 214 |
211 VirtualMemory::VirtualMemory(size_t size) | 215 VirtualMemory::VirtualMemory(size_t size) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 return munmap(base, size) == 0; | 334 return munmap(base, size) == 0; |
331 } | 335 } |
332 | 336 |
333 | 337 |
334 bool VirtualMemory::HasLazyCommits() { | 338 bool VirtualMemory::HasLazyCommits() { |
335 // TODO(alph): implement for the platform. | 339 // TODO(alph): implement for the platform. |
336 return false; | 340 return false; |
337 } | 341 } |
338 | 342 |
339 } } // namespace v8::internal | 343 } } // namespace v8::internal |
OLD | NEW |