Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: src/platform-openbsd.cc

Issue 11577019: V8_Fatal now prints C++ stack trace in debug mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform-nullos.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Redirect to std abort to signal abnormal program termination. 208 // Redirect to std abort to signal abnormal program termination.
209 abort(); 209 abort();
210 } 210 }
211 211
212 212
213 void OS::DebugBreak() { 213 void OS::DebugBreak() {
214 asm("int $3"); 214 asm("int $3");
215 } 215 }
216 216
217 217
218 void OS::DumpBacktrace() {
219 // Currently unsupported.
220 }
221
222
218 class PosixMemoryMappedFile : public OS::MemoryMappedFile { 223 class PosixMemoryMappedFile : public OS::MemoryMappedFile {
219 public: 224 public:
220 PosixMemoryMappedFile(FILE* file, void* memory, int size) 225 PosixMemoryMappedFile(FILE* file, void* memory, int size)
221 : file_(file), memory_(memory), size_(size) { } 226 : file_(file), memory_(memory), size_(size) { }
222 virtual ~PosixMemoryMappedFile(); 227 virtual ~PosixMemoryMappedFile();
223 virtual void* memory() { return memory_; } 228 virtual void* memory() { return memory_; }
224 virtual int size() { return size_; } 229 virtual int size() { return size_; }
225 private: 230 private:
226 FILE* file_; 231 FILE* file_;
227 void* memory_; 232 void* memory_;
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 944
940 945
941 void Sampler::Stop() { 946 void Sampler::Stop() {
942 ASSERT(IsActive()); 947 ASSERT(IsActive());
943 SignalSender::RemoveActiveSampler(this); 948 SignalSender::RemoveActiveSampler(this);
944 SetActive(false); 949 SetActive(false);
945 } 950 }
946 951
947 952
948 } } // namespace v8::internal 953 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-nullos.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698