Revision f230a1cf deps/v8/src/platform-solaris.cc

View differences:

deps/v8/src/platform-solaris.cc
51 51

  
52 52
#include "v8.h"
53 53

  
54
#include "platform-posix.h"
55 54
#include "platform.h"
56 55
#include "v8threads.h"
57 56
#include "vm-state-inl.h"
......
112 111
}
113 112

  
114 113

  
115
void OS::DumpBacktrace() {
116
  // Currently unsupported.
117
}
118

  
119

  
120 114
class PosixMemoryMappedFile : public OS::MemoryMappedFile {
121 115
 public:
122 116
  PosixMemoryMappedFile(FILE* file, void* memory, int size)
......
211 205
}
212 206

  
213 207

  
214
int OS::StackWalk(Vector<OS::StackFrame> frames) {
215
  ucontext_t ctx;
216
  struct StackWalker walker = { frames, 0 };
217

  
218
  if (getcontext(&ctx) < 0) return kStackWalkError;
219

  
220
  if (!walkcontext(&ctx, StackWalkCallback, &walker)) {
221
    return kStackWalkError;
222
  }
223

  
224
  return walker.index;
225
}
226

  
227

  
228 208
// Constants used for mmap.
229 209
static const int kMmapFd = -1;
230 210
static const int kMmapFdOffset = 0;

Also available in: Unified diff