v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
platform-win32.cc File Reference
#include "win32-headers.h"
#include "v8.h"
#include "codegen.h"
#include "platform.h"
#include "vm-state-inl.h"
Include dependency graph for platform-win32.cc:

Go to the source code of this file.

Data Structures

class  Time
 
class  Win32MemoryMappedFile
 
class  Thread::PlatformData
 
class  Win32Mutex
 
class  Win32Semaphore
 
class  Win32Socket
 
class  Sampler::PlatformData
 
class  SamplerThread
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define V8_WIN32_HEADERS_FULL
 
#define UNARY_MATH_FUNCTION(name, generator)
 
#define DBGHELP_FUNCTION_LIST(V)
 
#define TLHELP32_FUNCTION_LIST(V)
 
#define DLL_FUNC_TYPE(name)   _##name##_
 
#define DLL_FUNC_VAR(name)   _##name
 
#define IN
 
#define VOID   void
 
#define DEF_DLL_FUNCTION(name)   DLL_FUNC_TYPE(name) DLL_FUNC_VAR(name) = NULL;
 
#define LOAD_DLL_FUNC(name)
 
#define LOAD_DLL_FUNC(name)
 
#define DLL_FUNC_LOADED(name)   (DLL_FUNC_VAR(name) != NULL) &&
 

Typedefs

typedef IN PSTR UserSearchPath
 
typedef IN PSTR IN BOOL fInvadeProcess
 
typedef OUT PSTR SearchPath
 
typedef OUT PSTR IN DWORD SearchPathLength
 
typedef IN HANDLE hFile
 
typedef IN HANDLE IN PSTR ImageName
 
typedef IN HANDLE IN PSTR IN PSTR ModuleName
 
typedef IN HANDLE IN PSTR IN
PSTR IN DWORD64 
BaseOfDll
 
typedef IN HANDLE IN PSTR IN
PSTR IN DWORD64 IN DWORD 
SizeOfDll
 
typedef HANDLE hProcess
 
typedef HANDLE HANDLE hThread
 
typedef HANDLE HANDLE
LPSTACKFRAME64 
StackFrame
 
typedef HANDLE HANDLE
LPSTACKFRAME64 PVOID 
ContextRecord
 
typedef HANDLE HANDLE
LPSTACKFRAME64 PVOID
PREAD_PROCESS_MEMORY_ROUTINE64 
ReadMemoryRoutine
 
typedef HANDLE HANDLE
LPSTACKFRAME64 PVOID
PREAD_PROCESS_MEMORY_ROUTINE64
PFUNCTION_TABLE_ACCESS_ROUTINE64 
FunctionTableAccessRoutine
 
typedef HANDLE HANDLE
LPSTACKFRAME64 PVOID
PREAD_PROCESS_MEMORY_ROUTINE64
PFUNCTION_TABLE_ACCESS_ROUTINE64
PGET_MODULE_BASE_ROUTINE64 
GetModuleBaseRoutine
 
typedef HANDLE HANDLE
LPSTACKFRAME64 PVOID
PREAD_PROCESS_MEMORY_ROUTINE64
PFUNCTION_TABLE_ACCESS_ROUTINE64
PGET_MODULE_BASE_ROUTINE64
PTRANSLATE_ADDRESS_ROUTINE64 
TranslateAddress
 
typedef IN DWORD64 qwAddr
 
typedef IN DWORD64 OUT PDWORD64 pdwDisplacement
 
typedef IN DWORD64 OUT
PDWORD64 OUT
PIMAGEHLP_SYMBOL64 
Symbol
 
typedef IN DWORD64 OUT PDWORD
OUT PIMAGEHLP_LINE64 
Line64
 
typedef DWORD64 AddrBase
 
typedef DWORD th32ProcessID
 
typedef LPMODULEENTRY32W lpme
 

Enumerations

enum  OutputMode { UNKNOWN, CONSOLE, ODS }
 

Functions

int random ()
 
double ceiling (double x)
 
double modulo (double x, double y)
 
void MathSetup ()
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymInitialize))(IN HANDLE hProcess
 
typedef DWORD (__stdcall *DLL_FUNC_TYPE(SymGetOptions))(VOID)
 
typedef DWORD (__stdcall *DLL_FUNC_TYPE(SymSetOptions))(IN DWORD SymOptions)
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetSearchPath))(IN HANDLE hProcess
 
typedef DWORD64 (__stdcall *DLL_FUNC_TYPE(SymLoadModule64))(IN HANDLE hProcess
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(StackWalk64))(DWORD MachineType
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetSymFromAddr64))(IN HANDLE hProcess
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetLineFromAddr64))(IN HANDLE hProcess
 
typedef PVOID (__stdcall *DLL_FUNC_TYPE(SymFunctionTableAccess64))(HANDLE hProcess
 
typedef DWORD64 (__stdcall *DLL_FUNC_TYPE(SymGetModuleBase64))(HANDLE hProcess
 
typedef HANDLE (__stdcall *DLL_FUNC_TYPE(CreateToolhelp32Snapshot))(DWORD dwFlags
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(Module32FirstW))(HANDLE hSnapshot
 
typedef BOOL (__stdcall *DLL_FUNC_TYPE(Module32NextW))(HANDLE hSnapshot
 

Macro Definition Documentation

#define DBGHELP_FUNCTION_LIST (   V)
Value:
V(SymInitialize) \
V(SymGetOptions) \
V(SymSetOptions) \
V(SymGetSearchPath) \
V(SymLoadModule64) \
V(StackWalk64) \
V(SymGetSymFromAddr64) \
V(SymGetLineFromAddr64) \
V(SymFunctionTableAccess64) \
V(SymGetModuleBase64)

Definition at line 1053 of file platform-win32.cc.

#define DEF_DLL_FUNCTION (   name)    DLL_FUNC_TYPE(name) DLL_FUNC_VAR(name) = NULL;

Definition at line 1147 of file platform-win32.cc.

#define DLL_FUNC_LOADED (   name)    (DLL_FUNC_VAR(name) != NULL) &&
#define DLL_FUNC_TYPE (   name)    _##name##_

Definition at line 1073 of file platform-win32.cc.

#define DLL_FUNC_VAR (   name)    _##name

Definition at line 1074 of file platform-win32.cc.

#define IN

Definition at line 1081 of file platform-win32.cc.

Referenced by Token::IsCompareOp().

#define LOAD_DLL_FUNC (   name)
Value:
DLL_FUNC_VAR(name) = \
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
#define DLL_FUNC_VAR(name)
#define DLL_FUNC_TYPE(name)
#define LOAD_DLL_FUNC (   name)
Value:
DLL_FUNC_VAR(name) = \
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
#define DLL_FUNC_VAR(name)
#define DLL_FUNC_TYPE(name)
#define TLHELP32_FUNCTION_LIST (   V)
Value:
V(CreateToolhelp32Snapshot) \
V(Module32FirstW) \
V(Module32NextW)

Definition at line 1066 of file platform-win32.cc.

#define UNARY_MATH_FUNCTION (   name,
  generator 
)
Value:
static UnaryMathFunction fast_##name##_function = NULL; \
void init_fast_##name##_function() { \
fast_##name##_function = generator; \
} \
double fast_##name(double x) { \
return (*fast_##name##_function)(x); \
}
double(* UnaryMathFunction)(double x)
Definition: codegen.h:90
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if expose natives in global object expose gc extension number of stack frames to capture disable builtin natives files print a stack trace if an assertion failure occurs use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations prepare for turning on always opt minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions automatically set the debug break flag when debugger commands are in the queue always cause a debug break before aborting maximum length of function source code printed in a stack trace max size of the new max size of the old max size of executable always perform global GCs print one trace line following each garbage collection do not print trace line after scavenger collection print more details following each garbage collection print amount of external allocated memory after each time it is adjusted flush code that we expect not to use again before full gc do incremental marking steps track object counts and memory usage use caching Perform compaction on every full GC Never perform compaction on full GC testing only Compact code space on full incremental collections Default seed for initializing random generator(0, the default, means to use system random).") DEFINE_bool(use_verbose_printer

Definition at line 189 of file platform-win32.cc.

#define V8_WIN32_HEADERS_FULL

Definition at line 30 of file platform-win32.cc.

#define VOID   void

Definition at line 1084 of file platform-win32.cc.

Referenced by Token::IsUnaryOp().

Function Documentation

int random ( )

Definition at line 122 of file platform-win32.cc.

Referenced by TEST().