| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 424 } |
| 425 | 425 |
| 426 | 426 |
| 427 bool VirtualMemory::Uncommit(void* address, size_t size) { | 427 bool VirtualMemory::Uncommit(void* address, size_t size) { |
| 428 return mmap(address, size, PROT_NONE, | 428 return mmap(address, size, PROT_NONE, |
| 429 MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_FIXED, | 429 MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_FIXED, |
| 430 kMmapFd, kMmapFdOffset) != MAP_FAILED; | 430 kMmapFd, kMmapFdOffset) != MAP_FAILED; |
| 431 } | 431 } |
| 432 | 432 |
| 433 | 433 |
| 434 bool VirtualMemory::Reset(void* address, size_t size, bool is_executable) { |
| 435 return false; |
| 436 } |
| 437 |
| 438 |
| 434 class ThreadHandle::PlatformData : public Malloced { | 439 class ThreadHandle::PlatformData : public Malloced { |
| 435 public: | 440 public: |
| 436 explicit PlatformData(ThreadHandle::Kind kind) { | 441 explicit PlatformData(ThreadHandle::Kind kind) { |
| 437 Initialize(kind); | 442 Initialize(kind); |
| 438 } | 443 } |
| 439 | 444 |
| 440 void Initialize(ThreadHandle::Kind kind) { | 445 void Initialize(ThreadHandle::Kind kind) { |
| 441 switch (kind) { | 446 switch (kind) { |
| 442 case ThreadHandle::SELF: thread_ = pthread_self(); break; | 447 case ThreadHandle::SELF: thread_ = pthread_self(); break; |
| 443 case ThreadHandle::INVALID: thread_ = kNoThread; break; | 448 case ThreadHandle::INVALID: thread_ = kNoThread; break; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 | 809 |
| 805 // This sampler is no longer the active sampler. | 810 // This sampler is no longer the active sampler. |
| 806 active_sampler_ = NULL; | 811 active_sampler_ = NULL; |
| 807 active_ = false; | 812 active_ = false; |
| 808 } | 813 } |
| 809 | 814 |
| 810 | 815 |
| 811 #endif // ENABLE_LOGGING_AND_PROFILING | 816 #endif // ENABLE_LOGGING_AND_PROFILING |
| 812 | 817 |
| 813 } } // namespace v8::internal | 818 } } // namespace v8::internal |
| OLD | NEW |