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

Side by Side Diff: src/platform-openbsd.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-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 2006-2011 the V8 project authors. All rights reserved. 1 // Copyright 2006-2011 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 173
174 void OS::Free(void* buf, const size_t length) { 174 void OS::Free(void* buf, const size_t length) {
175 // TODO(1240712): munmap has a return value which is ignored here. 175 // TODO(1240712): munmap has a return value which is ignored here.
176 int result = munmap(buf, length); 176 int result = munmap(buf, length);
177 USE(result); 177 USE(result);
178 ASSERT(result == 0); 178 ASSERT(result == 0);
179 } 179 }
180 180
181 181
182 #ifdef ENABLE_HEAP_PROTECTION
183
184 void OS::Protect(void* address, size_t size) {
185 UNIMPLEMENTED();
186 }
187
188
189 void OS::Unprotect(void* address, size_t size, bool is_executable) {
190 UNIMPLEMENTED();
191 }
192
193 #endif
194
195
196 void OS::Sleep(int milliseconds) { 182 void OS::Sleep(int milliseconds) {
197 unsigned int ms = static_cast<unsigned int>(milliseconds); 183 unsigned int ms = static_cast<unsigned int>(milliseconds);
198 usleep(1000 * ms); 184 usleep(1000 * ms);
199 } 185 }
200 186
201 187
202 void OS::Abort() { 188 void OS::Abort() {
203 // Redirect to std abort to signal abnormal program termination. 189 // Redirect to std abort to signal abnormal program termination.
204 abort(); 190 abort();
205 } 191 }
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 800
815 void Sampler::Stop() { 801 void Sampler::Stop() {
816 ASSERT(IsActive()); 802 ASSERT(IsActive());
817 SignalSender::RemoveActiveSampler(this); 803 SignalSender::RemoveActiveSampler(this);
818 SetActive(false); 804 SetActive(false);
819 } 805 }
820 806
821 #endif // ENABLE_LOGGING_AND_PROFILING 807 #endif // ENABLE_LOGGING_AND_PROFILING
822 808
823 } } // namespace v8::internal 809 } } // 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