OLD | NEW |
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 return NULL; | 166 return NULL; |
167 } | 167 } |
168 | 168 |
169 | 169 |
170 void OS::Free(void* buf, const size_t length) { | 170 void OS::Free(void* buf, const size_t length) { |
171 // TODO(1240712): potential system call return value which is ignored here. | 171 // TODO(1240712): potential system call return value which is ignored here. |
172 UNIMPLEMENTED(); | 172 UNIMPLEMENTED(); |
173 } | 173 } |
174 | 174 |
175 | 175 |
| 176 #ifdef ENABLE_HEAP_PROTECTION |
| 177 |
| 178 void OS::Protect(void* address, size_t size) { |
| 179 UNIMPLEMENTED(); |
| 180 } |
| 181 |
| 182 |
| 183 void OS::Unprotect(void* address, size_t size, bool is_executable) { |
| 184 UNIMPLEMENTED(); |
| 185 } |
| 186 |
| 187 #endif |
| 188 |
| 189 |
176 void OS::Sleep(int milliseconds) { | 190 void OS::Sleep(int milliseconds) { |
177 UNIMPLEMENTED(); | 191 UNIMPLEMENTED(); |
178 } | 192 } |
179 | 193 |
180 | 194 |
181 void OS::Abort() { | 195 void OS::Abort() { |
182 // Minimalistic implementation for bootstrapping. | 196 // Minimalistic implementation for bootstrapping. |
183 abort(); | 197 abort(); |
184 } | 198 } |
185 | 199 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 } | 426 } |
413 | 427 |
414 | 428 |
415 void ProfileSampler::Stop() { | 429 void ProfileSampler::Stop() { |
416 UNIMPLEMENTED(); | 430 UNIMPLEMENTED(); |
417 } | 431 } |
418 | 432 |
419 #endif // ENABLE_LOGGING_AND_PROFILING | 433 #endif // ENABLE_LOGGING_AND_PROFILING |
420 | 434 |
421 } } // namespace v8::internal | 435 } } // namespace v8::internal |
OLD | NEW |