X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..refs/heads/master:/dfg/DFGCallArrayAllocatorSlowPathGenerator.h diff --git a/dfg/DFGCallArrayAllocatorSlowPathGenerator.h b/dfg/DFGCallArrayAllocatorSlowPathGenerator.h index 03713b6..9780e50 100644 --- a/dfg/DFGCallArrayAllocatorSlowPathGenerator.h +++ b/dfg/DFGCallArrayAllocatorSlowPathGenerator.h @@ -26,8 +26,6 @@ #ifndef DFGCallArrayAllocatorSlowPathGenerator_h #define DFGCallArrayAllocatorSlowPathGenerator_h -#include - #if ENABLE(DFG_JIT) #include "DFGCommon.h" @@ -40,7 +38,7 @@ namespace JSC { namespace DFG { class CallArrayAllocatorSlowPathGenerator : public JumpingSlowPathGenerator { public: CallArrayAllocatorSlowPathGenerator( - MacroAssembler::JumpList from, SpeculativeJIT* jit, P_DFGOperation_EStZ function, + MacroAssembler::JumpList from, SpeculativeJIT* jit, P_JITOperation_EStZ function, GPRReg resultGPR, GPRReg storageGPR, Structure* structure, size_t size) : JumpingSlowPathGenerator(from, jit) , m_function(function) @@ -54,7 +52,7 @@ public: } protected: - void generateInternal(SpeculativeJIT* jit) + virtual void generateInternal(SpeculativeJIT* jit) override { linkFrom(jit); for (unsigned i = 0; i < m_plans.size(); ++i) @@ -68,7 +66,7 @@ protected: } private: - P_DFGOperation_EStZ m_function; + P_JITOperation_EStZ m_function; GPRReg m_resultGPR; GPRReg m_storageGPR; Structure* m_structure; @@ -79,7 +77,7 @@ private: class CallArrayAllocatorWithVariableSizeSlowPathGenerator : public JumpingSlowPathGenerator { public: CallArrayAllocatorWithVariableSizeSlowPathGenerator( - MacroAssembler::JumpList from, SpeculativeJIT* jit, P_DFGOperation_EStZ function, + MacroAssembler::JumpList from, SpeculativeJIT* jit, P_JITOperation_EStZ function, GPRReg resultGPR, Structure* contiguousStructure, Structure* arrayStorageStructure, GPRReg sizeGPR) : JumpingSlowPathGenerator(from, jit) , m_function(function) @@ -92,13 +90,13 @@ public: } protected: - void generateInternal(SpeculativeJIT* jit) + virtual void generateInternal(SpeculativeJIT* jit) override { linkFrom(jit); for (unsigned i = 0; i < m_plans.size(); ++i) jit->silentSpill(m_plans[i]); GPRReg scratchGPR = AssemblyHelpers::selectScratchGPR(m_sizeGPR); - MacroAssembler::Jump bigLength = jit->m_jit.branch32(MacroAssembler::AboveOrEqual, m_sizeGPR, MacroAssembler::TrustedImm32(MIN_SPARSE_ARRAY_INDEX)); + MacroAssembler::Jump bigLength = jit->m_jit.branch32(MacroAssembler::AboveOrEqual, m_sizeGPR, MacroAssembler::TrustedImm32(MIN_ARRAY_STORAGE_CONSTRUCTION_LENGTH)); jit->m_jit.move(MacroAssembler::TrustedImmPtr(m_contiguousStructure), scratchGPR); MacroAssembler::Jump done = jit->m_jit.jump(); bigLength.link(&jit->m_jit); @@ -112,7 +110,7 @@ protected: } private: - P_DFGOperation_EStZ m_function; + P_JITOperation_EStZ m_function; GPRReg m_resultGPR; Structure* m_contiguousStructure; Structure* m_arrayStorageStructure;