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

Side by Side Diff: src/platform.h

Issue 23710025: thread isolate for logging calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/log.cc ('k') | src/platform-cygwin.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 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 static int SNPrintF(Vector<char> str, const char* format, ...); 256 static int SNPrintF(Vector<char> str, const char* format, ...);
257 static int VSNPrintF(Vector<char> str, 257 static int VSNPrintF(Vector<char> str,
258 const char* format, 258 const char* format,
259 va_list args); 259 va_list args);
260 260
261 static char* StrChr(char* str, int c); 261 static char* StrChr(char* str, int c);
262 static void StrNCpy(Vector<char> dest, const char* src, size_t n); 262 static void StrNCpy(Vector<char> dest, const char* src, size_t n);
263 263
264 // Support for the profiler. Can do nothing, in which case ticks 264 // Support for the profiler. Can do nothing, in which case ticks
265 // occuring in shared libraries will not be properly accounted for. 265 // occuring in shared libraries will not be properly accounted for.
266 static void LogSharedLibraryAddresses(); 266 static void LogSharedLibraryAddresses(Isolate* isolate);
267 267
268 // Support for the profiler. Notifies the external profiling 268 // Support for the profiler. Notifies the external profiling
269 // process that a code moving garbage collection starts. Can do 269 // process that a code moving garbage collection starts. Can do
270 // nothing, in which case the code objects must not move (e.g., by 270 // nothing, in which case the code objects must not move (e.g., by
271 // using --never-compact) if accurate profiling is desired. 271 // using --never-compact) if accurate profiling is desired.
272 static void SignalCodeMovingGC(); 272 static void SignalCodeMovingGC();
273 273
274 // The return value indicates the CPU features we are sure of because of the 274 // The return value indicates the CPU features we are sure of because of the
275 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 275 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2
276 // instructions. 276 // instructions.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 char name_[kMaxThreadNameLength]; 469 char name_[kMaxThreadNameLength];
470 int stack_size_; 470 int stack_size_;
471 Semaphore* start_semaphore_; 471 Semaphore* start_semaphore_;
472 472
473 DISALLOW_COPY_AND_ASSIGN(Thread); 473 DISALLOW_COPY_AND_ASSIGN(Thread);
474 }; 474 };
475 475
476 } } // namespace v8::internal 476 } } // namespace v8::internal
477 477
478 #endif // V8_PLATFORM_H_ 478 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698