| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 249   // Support for the profiler.  Can do nothing, in which case ticks | 249   // Support for the profiler.  Can do nothing, in which case ticks | 
| 250   // occuring in shared libraries will not be properly accounted for. | 250   // occuring in shared libraries will not be properly accounted for. | 
| 251   static void LogSharedLibraryAddresses(); | 251   static void LogSharedLibraryAddresses(); | 
| 252 | 252 | 
| 253   // Support for the profiler.  Notifies the external profiling | 253   // Support for the profiler.  Notifies the external profiling | 
| 254   // process that a code moving garbage collection starts.  Can do | 254   // process that a code moving garbage collection starts.  Can do | 
| 255   // nothing, in which case the code objects must not move (e.g., by | 255   // nothing, in which case the code objects must not move (e.g., by | 
| 256   // using --never-compact) if accurate profiling is desired. | 256   // using --never-compact) if accurate profiling is desired. | 
| 257   static void SignalCodeMovingGC(); | 257   static void SignalCodeMovingGC(); | 
| 258 | 258 | 
|  | 259   // Support for profilers that change the return address for functions under | 
|  | 260   // profiling. The input is a pointer to a return address on the stack, and the | 
|  | 261   // return value is either that same pointer, or a pointer to the location | 
|  | 262   // where the profiler has stashed the actual return address. | 
|  | 263   // This is implemented only for the Syzygy instrumenting performance profiler | 
|  | 264   // on Win32 at present. | 
|  | 265 #ifdef _WIN32 | 
|  | 266   static Address* ResolveReturnAddressLocation(Address* pc_address); | 
|  | 267 #else | 
|  | 268   static Address* ResolveReturnAddressLocation(Address* pc_address) { | 
|  | 269     return pc_address; | 
|  | 270   } | 
|  | 271 #endif | 
|  | 272 | 
| 259   // The return value indicates the CPU features we are sure of because of the | 273   // The return value indicates the CPU features we are sure of because of the | 
| 260   // OS.  For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 | 274   // OS.  For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 | 
| 261   // instructions. | 275   // instructions. | 
| 262   // This is a little messy because the interpretation is subject to the cross | 276   // This is a little messy because the interpretation is subject to the cross | 
| 263   // of the CPU and the OS.  The bits in the answer correspond to the bit | 277   // of the CPU and the OS.  The bits in the answer correspond to the bit | 
| 264   // positions indicated by the members of the CpuFeature enum from globals.h | 278   // positions indicated by the members of the CpuFeature enum from globals.h | 
| 265   static uint64_t CpuFeaturesImpliedByPlatform(); | 279   static uint64_t CpuFeaturesImpliedByPlatform(); | 
| 266 | 280 | 
| 267   // Maximum size of the virtual memory.  0 means there is no artificial | 281   // Maximum size of the virtual memory.  0 means there is no artificial | 
| 268   // limit. | 282   // limit. | 
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 694   Atomic32 active_; | 708   Atomic32 active_; | 
| 695   PlatformData* data_;  // Platform specific data. | 709   PlatformData* data_;  // Platform specific data. | 
| 696   int samples_taken_;  // Counts stack samples taken. | 710   int samples_taken_;  // Counts stack samples taken. | 
| 697   DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 711   DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 
| 698 }; | 712 }; | 
| 699 | 713 | 
| 700 | 714 | 
| 701 } }  // namespace v8::internal | 715 } }  // namespace v8::internal | 
| 702 | 716 | 
| 703 #endif  // V8_PLATFORM_H_ | 717 #endif  // V8_PLATFORM_H_ | 
| OLD | NEW | 
|---|