v8  3.25.30(node0.11.13)
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 "isolate-inl.h"
#include "platform.h"
#include "simulator.h"
#include "vm-state-inl.h"
Include dependency graph for platform-win32.cc:

Go to the source code of this file.

Data Structures

class  TimezoneCache
 
class  Win32Time
 
class  Win32MemoryMappedFile
 
class  Thread::PlatformData
 

Namespaces

 v8
 
 v8::internal
 

Macros

#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

double modulo (double x, double y)
 
void lazily_initialize_fast_exp ()
 
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 1027 of file platform-win32.cc.

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

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

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

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

#define DLL_FUNC_VAR (   name)    _##name

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

#define IN
#define LOAD_DLL_FUNC (   name)
Value:
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
#define DLL_FUNC_VAR(name)
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization 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 VFP3 instructions if available enable use of NEON instructions if 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 d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long expose natives in global object expose freeBuffer extension expose gc extension under the specified name expose externalize string extension number of stack frames to capture disable builtin natives files print name of functions for which code is generated use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations always try to OSR functions trace optimize function deoptimization minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions trace debugging JSON request response trace out of bounds accesses to external arrays trace_js_array_abuse automatically set the debug break flag when debugger commands are in the queue abort by crashing 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 statistics of the maximum memory committed for the heap in name
#define DLL_FUNC_TYPE(name)
#define LOAD_DLL_FUNC (   name)
Value:
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
#define DLL_FUNC_VAR(name)
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization 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 VFP3 instructions if available enable use of NEON instructions if 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 d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long expose natives in global object expose freeBuffer extension expose gc extension under the specified name expose externalize string extension number of stack frames to capture disable builtin natives files print name of functions for which code is generated use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations always try to OSR functions trace optimize function deoptimization minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions trace debugging JSON request response trace out of bounds accesses to external arrays trace_js_array_abuse automatically set the debug break flag when debugger commands are in the queue abort by crashing 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 statistics of the maximum memory committed for the heap in name
#define DLL_FUNC_TYPE(name)
#define TLHELP32_FUNCTION_LIST (   V)
Value:
V(CreateToolhelp32Snapshot) \
V(Module32FirstW) \
V(Module32NextW)

Definition at line 1040 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); \
}
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
double(* UnaryMathFunction)(double x)
Definition: codegen.h:119
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization 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 VFP3 instructions if available enable use of NEON instructions if 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 d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long expose natives in global object expose freeBuffer extension expose gc extension under the specified name expose externalize string extension number of stack frames to capture disable builtin natives files print name of functions for which code is generated use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations always try to OSR functions trace optimize function deoptimization minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions trace debugging JSON request response trace out of bounds accesses to external arrays trace_js_array_abuse automatically set the debug break flag when debugger commands are in the queue abort by crashing 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 statistics of the maximum memory committed for the heap in name

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

#define VOID   void

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

Referenced by Token::IsUnaryOp().