OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 kMmapFd, | 464 kMmapFd, |
465 kMmapFdOffset) != MAP_FAILED; | 465 kMmapFdOffset) != MAP_FAILED; |
466 } | 466 } |
467 | 467 |
468 | 468 |
469 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { | 469 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { |
470 return munmap(address, size) == 0; | 470 return munmap(address, size) == 0; |
471 } | 471 } |
472 | 472 |
473 | 473 |
| 474 bool VirtualMemory::HasLazyCommits() { |
| 475 return false; |
| 476 } |
| 477 |
| 478 |
474 class Thread::PlatformData : public Malloced { | 479 class Thread::PlatformData : public Malloced { |
475 public: | 480 public: |
476 PlatformData() : thread_(kNoThread) {} | 481 PlatformData() : thread_(kNoThread) {} |
477 pthread_t thread_; // Thread handle for pthread. | 482 pthread_t thread_; // Thread handle for pthread. |
478 }; | 483 }; |
479 | 484 |
480 | 485 |
481 Thread::Thread(const Options& options) | 486 Thread::Thread(const Options& options) |
482 : data_(new PlatformData), | 487 : data_(new PlatformData), |
483 stack_size_(options.stack_size()) { | 488 stack_size_(options.stack_size()) { |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 | 928 |
924 | 929 |
925 void Sampler::Stop() { | 930 void Sampler::Stop() { |
926 ASSERT(IsActive()); | 931 ASSERT(IsActive()); |
927 SamplerThread::RemoveActiveSampler(this); | 932 SamplerThread::RemoveActiveSampler(this); |
928 SetActive(false); | 933 SetActive(false); |
929 } | 934 } |
930 | 935 |
931 | 936 |
932 } } // namespace v8::internal | 937 } } // namespace v8::internal |
OLD | NEW |