| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return NULL; | 210 return NULL; |
| 211 } | 211 } |
| 212 | 212 |
| 213 | 213 |
| 214 void OS::Free(void* buf, const size_t length) { | 214 void OS::Free(void* buf, const size_t length) { |
| 215 // TODO(1240712): potential system call return value which is ignored here. | 215 // TODO(1240712): potential system call return value which is ignored here. |
| 216 UNIMPLEMENTED(); | 216 UNIMPLEMENTED(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 | 219 |
| 220 #ifdef ENABLE_HEAP_PROTECTION | |
| 221 | |
| 222 void OS::Protect(void* address, size_t size) { | |
| 223 UNIMPLEMENTED(); | |
| 224 } | |
| 225 | |
| 226 | |
| 227 void OS::Unprotect(void* address, size_t size, bool is_executable) { | |
| 228 UNIMPLEMENTED(); | |
| 229 } | |
| 230 | |
| 231 #endif | |
| 232 | |
| 233 | |
| 234 void OS::Sleep(int milliseconds) { | 220 void OS::Sleep(int milliseconds) { |
| 235 UNIMPLEMENTED(); | 221 UNIMPLEMENTED(); |
| 236 } | 222 } |
| 237 | 223 |
| 238 | 224 |
| 239 void OS::Abort() { | 225 void OS::Abort() { |
| 240 // Minimalistic implementation for bootstrapping. | 226 // Minimalistic implementation for bootstrapping. |
| 241 abort(); | 227 abort(); |
| 242 } | 228 } |
| 243 | 229 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 private: | 416 private: |
| 431 void* data_; | 417 void* data_; |
| 432 }; | 418 }; |
| 433 | 419 |
| 434 | 420 |
| 435 Semaphore* OS::CreateSemaphore(int count) { | 421 Semaphore* OS::CreateSemaphore(int count) { |
| 436 UNIMPLEMENTED(); | 422 UNIMPLEMENTED(); |
| 437 return new NullSemaphore(count); | 423 return new NullSemaphore(count); |
| 438 } | 424 } |
| 439 | 425 |
| 440 #ifdef ENABLE_LOGGING_AND_PROFILING | |
| 441 | 426 |
| 442 class ProfileSampler::PlatformData : public Malloced { | 427 class ProfileSampler::PlatformData : public Malloced { |
| 443 public: | 428 public: |
| 444 PlatformData() { | 429 PlatformData() { |
| 445 UNIMPLEMENTED(); | 430 UNIMPLEMENTED(); |
| 446 } | 431 } |
| 447 }; | 432 }; |
| 448 | 433 |
| 449 | 434 |
| 450 ProfileSampler::ProfileSampler(int interval) { | 435 ProfileSampler::ProfileSampler(int interval) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 465 | 450 |
| 466 void ProfileSampler::Start() { | 451 void ProfileSampler::Start() { |
| 467 UNIMPLEMENTED(); | 452 UNIMPLEMENTED(); |
| 468 } | 453 } |
| 469 | 454 |
| 470 | 455 |
| 471 void ProfileSampler::Stop() { | 456 void ProfileSampler::Stop() { |
| 472 UNIMPLEMENTED(); | 457 UNIMPLEMENTED(); |
| 473 } | 458 } |
| 474 | 459 |
| 475 #endif // ENABLE_LOGGING_AND_PROFILING | |
| 476 | 460 |
| 477 } } // namespace v8::internal | 461 } } // namespace v8::internal |
| OLD | NEW |