Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: src/platform-linux.cc

Issue 2418001: Fix AddBlock invocations in CpuProfilesCollection. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // the kernel which implements a memory barrier. On older 170 // the kernel which implements a memory barrier. On older
171 // ARM architecture revisions (pre-v6) this may be implemented using 171 // ARM architecture revisions (pre-v6) this may be implemented using
172 // a syscall. This address is stable, and in active use (hard coded) 172 // a syscall. This address is stable, and in active use (hard coded)
173 // by at least glibc-2.7 and the Android C library. 173 // by at least glibc-2.7 and the Android C library.
174 typedef void (*LinuxKernelMemoryBarrierFunc)(void); 174 typedef void (*LinuxKernelMemoryBarrierFunc)(void);
175 LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) = 175 LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) =
176 (LinuxKernelMemoryBarrierFunc) 0xffff0fa0; 176 (LinuxKernelMemoryBarrierFunc) 0xffff0fa0;
177 #endif 177 #endif
178 178
179 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { 179 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
180 #if defined(V8_TARGET_ARCH_ARM) && defined(__arm__) // don't use on a simulator 180 #if defined(V8_TARGET_ARCH_ARM) && defined(__arm__)
181 // Only use on ARM hardware.
181 pLinuxKernelMemoryBarrier(); 182 pLinuxKernelMemoryBarrier();
182 #else 183 #else
183 __asm__ __volatile__("" : : : "memory"); 184 __asm__ __volatile__("" : : : "memory");
184 // An x86 store acts as a release barrier. 185 // An x86 store acts as a release barrier.
185 #endif 186 #endif
186 *ptr = value; 187 *ptr = value;
187 } 188 }
188 189
189 190
190 const char* OS::LocalTimezone(double time) { 191 const char* OS::LocalTimezone(double time) {
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 853
853 // This sampler is no longer the active sampler. 854 // This sampler is no longer the active sampler.
854 active_sampler_ = NULL; 855 active_sampler_ = NULL;
855 active_ = false; 856 active_ = false;
856 } 857 }
857 858
858 859
859 #endif // ENABLE_LOGGING_AND_PROFILING 860 #endif // ENABLE_LOGGING_AND_PROFILING
860 861
861 } } // namespace v8::internal 862 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698