diff options
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGOSREntry.h')
-rw-r--r-- | Source/JavaScriptCore/dfg/DFGOSREntry.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGOSREntry.h b/Source/JavaScriptCore/dfg/DFGOSREntry.h index edca84bff..41a933092 100644 --- a/Source/JavaScriptCore/dfg/DFGOSREntry.h +++ b/Source/JavaScriptCore/dfg/DFGOSREntry.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2013, 2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,8 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DFGOSREntry_h -#define DFGOSREntry_h +#pragma once #include "DFGAbstractValue.h" #include "Operands.h" @@ -57,8 +56,12 @@ struct OSREntryData { Operands<AbstractValue> m_expectedValues; // Use bitvectors here because they tend to only require one word. BitVector m_localsForcedDouble; - BitVector m_localsForcedMachineInt; + BitVector m_localsForcedAnyInt; Vector<OSREntryReshuffling> m_reshufflings; + BitVector m_machineStackUsed; + + void dumpInContext(PrintStream&, DumpContext*) const; + void dump(PrintStream&) const; }; inline unsigned getOSREntryDataBytecodeIndex(OSREntryData* osrEntryData) @@ -66,12 +69,11 @@ inline unsigned getOSREntryDataBytecodeIndex(OSREntryData* osrEntryData) return osrEntryData->m_bytecodeIndex; } +// Returns a pointer to a data buffer that the OSR entry thunk will recognize and +// parse. If this returns null, it means void* prepareOSREntry(ExecState*, CodeBlock*, unsigned bytecodeIndex); #else inline void* prepareOSREntry(ExecState*, CodeBlock*, unsigned) { return 0; } #endif } } // namespace JSC::DFG - -#endif // DFGOSREntry_h - |