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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 #endif | 238 #endif |
239 if (code_ptr == NULL) continue; | 239 if (code_ptr == NULL) continue; |
240 const uintptr_t slide = _dyld_get_image_vmaddr_slide(i); | 240 const uintptr_t slide = _dyld_get_image_vmaddr_slide(i); |
241 const uintptr_t start = reinterpret_cast<uintptr_t>(code_ptr) + slide; | 241 const uintptr_t start = reinterpret_cast<uintptr_t>(code_ptr) + slide; |
242 LOG(SharedLibraryEvent(_dyld_get_image_name(i), start, start + size)); | 242 LOG(SharedLibraryEvent(_dyld_get_image_name(i), start, start + size)); |
243 } | 243 } |
244 #endif // ENABLE_LOGGING_AND_PROFILING | 244 #endif // ENABLE_LOGGING_AND_PROFILING |
245 } | 245 } |
246 | 246 |
247 | 247 |
| 248 void OS::SignalCodeMovingGC() { |
| 249 } |
| 250 |
| 251 |
248 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 252 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
249 // MacOSX requires all these to install so we can assume they are present. | 253 // MacOSX requires all these to install so we can assume they are present. |
250 // These constants are defined by the CPUid instructions. | 254 // These constants are defined by the CPUid instructions. |
251 const uint64_t one = 1; | 255 const uint64_t one = 1; |
252 return (one << SSE2) | (one << CMOV) | (one << RDTSC) | (one << CPUID); | 256 return (one << SSE2) | (one << CMOV) | (one << RDTSC) | (one << CPUID); |
253 } | 257 } |
254 | 258 |
255 | 259 |
256 int OS::ActivationFrameAlignment() { | 260 int OS::ActivationFrameAlignment() { |
257 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI | 261 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | 660 |
657 // Deallocate Mach port for thread. | 661 // Deallocate Mach port for thread. |
658 if (IsProfiling()) { | 662 if (IsProfiling()) { |
659 mach_port_deallocate(data_->task_self_, data_->profiled_thread_); | 663 mach_port_deallocate(data_->task_self_, data_->profiled_thread_); |
660 } | 664 } |
661 } | 665 } |
662 | 666 |
663 #endif // ENABLE_LOGGING_AND_PROFILING | 667 #endif // ENABLE_LOGGING_AND_PROFILING |
664 | 668 |
665 } } // namespace v8::internal | 669 } } // namespace v8::internal |
OLD | NEW |