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

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

Issue 23703013: remove OS::StackWalk (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 months 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.h ('k') | src/platform-freebsd.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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 free(lib_name); 198 free(lib_name);
199 fclose(fp); 199 fclose(fp);
200 } 200 }
201 201
202 202
203 void OS::SignalCodeMovingGC() { 203 void OS::SignalCodeMovingGC() {
204 // Nothing to do on Cygwin. 204 // Nothing to do on Cygwin.
205 } 205 }
206 206
207 207
208 int OS::StackWalk(Vector<OS::StackFrame> frames) {
209 // Not supported on Cygwin.
210 return 0;
211 }
212
213
214 // The VirtualMemory implementation is taken from platform-win32.cc. 208 // The VirtualMemory implementation is taken from platform-win32.cc.
215 // The mmap-based virtual memory implementation as it is used on most posix 209 // The mmap-based virtual memory implementation as it is used on most posix
216 // platforms does not work well because Cygwin does not support MAP_FIXED. 210 // platforms does not work well because Cygwin does not support MAP_FIXED.
217 // This causes VirtualMemory::Commit to not always commit the memory region 211 // This causes VirtualMemory::Commit to not always commit the memory region
218 // specified. 212 // specified.
219 213
220 static void* GetRandomAddr() { 214 static void* GetRandomAddr() {
221 Isolate* isolate = Isolate::UncheckedCurrent(); 215 Isolate* isolate = Isolate::UncheckedCurrent();
222 // Note that the current isolate isn't set up in a call path via 216 // Note that the current isolate isn't set up in a call path via
223 // CpuFeatures::Probe. We don't care about randomization in this case because 217 // CpuFeatures::Probe. We don't care about randomization in this case because
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 return VirtualFree(base, 0, MEM_RELEASE) != 0; 354 return VirtualFree(base, 0, MEM_RELEASE) != 0;
361 } 355 }
362 356
363 357
364 bool VirtualMemory::HasLazyCommits() { 358 bool VirtualMemory::HasLazyCommits() {
365 // TODO(alph): implement for the platform. 359 // TODO(alph): implement for the platform.
366 return false; 360 return false;
367 } 361 }
368 362
369 } } // namespace v8::internal 363 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698