| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible | 5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible |
| 6 // parts, the implementation is in platform-posix.cc. | 6 // parts, the implementation is in platform-posix.cc. |
| 7 | 7 |
| 8 #ifdef __sparc | 8 #ifdef __sparc |
| 9 # error "V8 does not support the SPARC CPU architecture." | 9 # error "V8 does not support the SPARC CPU architecture." |
| 10 #endif | 10 #endif |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 return new PosixMemoryMappedFile(file, memory, size); | 124 return new PosixMemoryMappedFile(file, memory, size); |
| 125 } | 125 } |
| 126 | 126 |
| 127 | 127 |
| 128 PosixMemoryMappedFile::~PosixMemoryMappedFile() { | 128 PosixMemoryMappedFile::~PosixMemoryMappedFile() { |
| 129 if (memory_) munmap(memory_, size_); | 129 if (memory_) munmap(memory_, size_); |
| 130 fclose(file_); | 130 fclose(file_); |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 void OS::LogSharedLibraryAddresses(Isolate* isolate) { | 134 std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { |
| 135 return std::vector<SharedLibraryAddress>(); |
| 135 } | 136 } |
| 136 | 137 |
| 137 | 138 |
| 138 void OS::SignalCodeMovingGC() { | 139 void OS::SignalCodeMovingGC() { |
| 139 } | 140 } |
| 140 | 141 |
| 141 | 142 |
| 142 struct StackWalker { | 143 struct StackWalker { |
| 143 Vector<OS::StackFrame>& frames; | 144 Vector<OS::StackFrame>& frames; |
| 144 int index; | 145 int index; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 return munmap(base, size) == 0; | 308 return munmap(base, size) == 0; |
| 308 } | 309 } |
| 309 | 310 |
| 310 | 311 |
| 311 bool VirtualMemory::HasLazyCommits() { | 312 bool VirtualMemory::HasLazyCommits() { |
| 312 // TODO(alph): implement for the platform. | 313 // TODO(alph): implement for the platform. |
| 313 return false; | 314 return false; |
| 314 } | 315 } |
| 315 | 316 |
| 316 } } // namespace v8::internal | 317 } } // namespace v8::internal |
| OLD | NEW |