Revision f230a1cf deps/v8/src/platform.h
deps/v8/src/platform.h | ||
---|---|---|
67 | 67 |
|
68 | 68 |
int strncasecmp(const char* s1, const char* s2, int n); |
69 | 69 |
|
70 |
// Visual C++ 2013 and higher implement this function. |
|
71 |
#if (_MSC_VER < 1800) |
|
70 | 72 |
inline int lrint(double flt) { |
71 | 73 |
int intgr; |
72 | 74 |
#if V8_TARGET_ARCH_IA32 |
... | ... | |
84 | 86 |
return intgr; |
85 | 87 |
} |
86 | 88 |
|
89 |
#endif // _MSC_VER < 1800 |
|
90 |
|
|
87 | 91 |
#endif // V8_CC_MSVC |
88 | 92 |
|
89 | 93 |
namespace v8 { |
... | ... | |
252 | 256 |
// Debug break. |
253 | 257 |
static void DebugBreak(); |
254 | 258 |
|
255 |
// Dump C++ current stack trace (only functional on Linux). |
|
256 |
static void DumpBacktrace(); |
|
257 |
|
|
258 | 259 |
// Walk the stack. |
259 | 260 |
static const int kStackWalkError = -1; |
260 | 261 |
static const int kStackWalkMaxNameLen = 256; |
... | ... | |
264 | 265 |
char text[kStackWalkMaxTextLen]; |
265 | 266 |
}; |
266 | 267 |
|
267 |
static int StackWalk(Vector<StackFrame> frames); |
|
268 |
|
|
269 | 268 |
class MemoryMappedFile { |
270 | 269 |
public: |
271 | 270 |
static MemoryMappedFile* open(const char* name); |
... | ... | |
303 | 302 |
// positions indicated by the members of the CpuFeature enum from globals.h |
304 | 303 |
static uint64_t CpuFeaturesImpliedByPlatform(); |
305 | 304 |
|
305 |
// The total amount of physical memory available on the current system. |
|
306 |
static uint64_t TotalPhysicalMemory(); |
|
307 |
|
|
306 | 308 |
// Maximum size of the virtual memory. 0 means there is no artificial |
307 | 309 |
// limit. |
308 | 310 |
static intptr_t MaxVirtualMemory(); |
Also available in: Unified diff