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

Side by Side Diff: src/platform.h

Issue 23655004: Replace OS::NumberOfCores() with CPU::NumberOfProcessorsOnline(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Returns an indication of whether a pointer is in a space that 266 // Returns an indication of whether a pointer is in a space that
267 // has been allocated by Allocate(). This method may conservatively 267 // has been allocated by Allocate(). This method may conservatively
268 // always return false, but giving more accurate information may 268 // always return false, but giving more accurate information may
269 // improve the robustness of the stack dump code in the presence of 269 // improve the robustness of the stack dump code in the presence of
270 // heap corruption. 270 // heap corruption.
271 static bool IsOutsideAllocatedSpace(void* pointer); 271 static bool IsOutsideAllocatedSpace(void* pointer);
272 272
273 // Sleep for a number of milliseconds. 273 // Sleep for a number of milliseconds.
274 static void Sleep(const int milliseconds); 274 static void Sleep(const int milliseconds);
275 275
276 static int NumberOfCores();
277
278 // Abort the current process. 276 // Abort the current process.
279 static void Abort(); 277 static void Abort();
280 278
281 // Debug break. 279 // Debug break.
282 static void DebugBreak(); 280 static void DebugBreak();
283 281
284 // Dump C++ current stack trace (only functional on Linux). 282 // Dump C++ current stack trace (only functional on Linux).
285 static void DumpBacktrace(); 283 static void DumpBacktrace();
286 284
287 // Walk the stack. 285 // Walk the stack.
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 static uint16_t HToN(uint16_t value); 789 static uint16_t HToN(uint16_t value);
792 static uint16_t NToH(uint16_t value); 790 static uint16_t NToH(uint16_t value);
793 static uint32_t HToN(uint32_t value); 791 static uint32_t HToN(uint32_t value);
794 static uint32_t NToH(uint32_t value); 792 static uint32_t NToH(uint32_t value);
795 }; 793 };
796 794
797 795
798 } } // namespace v8::internal 796 } } // namespace v8::internal
799 797
800 #endif // V8_PLATFORM_H_ 798 #endif // V8_PLATFORM_H_
OLDNEW
« src/cpu.cc ('K') | « src/isolate.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698