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

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

Issue 23890030: Rollback trunk to 3.21.15. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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
208 // The VirtualMemory implementation is taken from platform-win32.cc. 214 // The VirtualMemory implementation is taken from platform-win32.cc.
209 // The mmap-based virtual memory implementation as it is used on most posix 215 // The mmap-based virtual memory implementation as it is used on most posix
210 // platforms does not work well because Cygwin does not support MAP_FIXED. 216 // platforms does not work well because Cygwin does not support MAP_FIXED.
211 // This causes VirtualMemory::Commit to not always commit the memory region 217 // This causes VirtualMemory::Commit to not always commit the memory region
212 // specified. 218 // specified.
213 219
214 static void* GetRandomAddr() { 220 static void* GetRandomAddr() {
215 Isolate* isolate = Isolate::UncheckedCurrent(); 221 Isolate* isolate = Isolate::UncheckedCurrent();
216 // Note that the current isolate isn't set up in a call path via 222 // Note that the current isolate isn't set up in a call path via
217 // CpuFeatures::Probe. We don't care about randomization in this case because 223 // CpuFeatures::Probe. We don't care about randomization in this case because
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 return VirtualFree(base, 0, MEM_RELEASE) != 0; 360 return VirtualFree(base, 0, MEM_RELEASE) != 0;
355 } 361 }
356 362
357 363
358 bool VirtualMemory::HasLazyCommits() { 364 bool VirtualMemory::HasLazyCommits() {
359 // TODO(alph): implement for the platform. 365 // TODO(alph): implement for the platform.
360 return false; 366 return false;
361 } 367 }
362 368
363 } } // namespace v8::internal 369 } } // 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