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

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

Issue 7324051: Remove heap protection support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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-cygwin.cc ('k') | src/platform-linux.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 175
176 void OS::Free(void* buf, const size_t length) { 176 void OS::Free(void* buf, const size_t length) {
177 // TODO(1240712): munmap has a return value which is ignored here. 177 // TODO(1240712): munmap has a return value which is ignored here.
178 int result = munmap(buf, length); 178 int result = munmap(buf, length);
179 USE(result); 179 USE(result);
180 ASSERT(result == 0); 180 ASSERT(result == 0);
181 } 181 }
182 182
183 183
184 #ifdef ENABLE_HEAP_PROTECTION
185
186 void OS::Protect(void* address, size_t size) {
187 UNIMPLEMENTED();
188 }
189
190
191 void OS::Unprotect(void* address, size_t size, bool is_executable) {
192 UNIMPLEMENTED();
193 }
194
195 #endif
196
197
198 void OS::Sleep(int milliseconds) { 184 void OS::Sleep(int milliseconds) {
199 unsigned int ms = static_cast<unsigned int>(milliseconds); 185 unsigned int ms = static_cast<unsigned int>(milliseconds);
200 usleep(1000 * ms); 186 usleep(1000 * ms);
201 } 187 }
202 188
203 189
204 void OS::Abort() { 190 void OS::Abort() {
205 // Redirect to std abort to signal abnormal program termination. 191 // Redirect to std abort to signal abnormal program termination.
206 abort(); 192 abort();
207 } 193 }
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 799
814 void Sampler::Stop() { 800 void Sampler::Stop() {
815 ASSERT(IsActive()); 801 ASSERT(IsActive());
816 SignalSender::RemoveActiveSampler(this); 802 SignalSender::RemoveActiveSampler(this);
817 SetActive(false); 803 SetActive(false);
818 } 804 }
819 805
820 #endif // ENABLE_LOGGING_AND_PROFILING 806 #endif // ENABLE_LOGGING_AND_PROFILING
821 807
822 } } // namespace v8::internal 808 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-cygwin.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698