Changeset 156120 in webkit for trunk/Source/JavaScriptCore/ftl/FTLCArgumentGetter.h
- Timestamp:
- Sep 19, 2013, 3:10:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLCArgumentGetter.h
r156047 r156120 31 31 #if ENABLE(FTL_JIT) 32 32 33 #include " DFGAssemblyHelpers.h"33 #include "AssemblyHelpers.h" 34 34 #include "FTLValueFormat.h" 35 35 … … 54 54 // It will be 1 if you haven't pushed or popped after the call; i.e. the only 55 55 // thing is the return address. 56 CArgumentGetter( DFG::AssemblyHelpers& jit, int peekOffset = 1)56 CArgumentGetter(AssemblyHelpers& jit, int peekOffset = 1) 57 57 : m_jit(jit) 58 58 , m_peekOffset(peekOffset) … … 63 63 } 64 64 65 void loadNext8( DFG::GPRReg destination)65 void loadNext8(GPRReg destination) 66 66 { 67 ASSERT(!isArgumentRegister< DFG::GPRInfo>(destination));68 if (m_gprArgumentIndex < DFG::GPRInfo::numberOfArgumentRegisters) {69 m_jit.move( DFG::GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination);67 ASSERT(!isArgumentRegister<GPRInfo>(destination)); 68 if (m_gprArgumentIndex < GPRInfo::numberOfArgumentRegisters) { 69 m_jit.move(GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination); 70 70 return; 71 71 } … … 74 74 } 75 75 76 void loadNext32( DFG::GPRReg destination)76 void loadNext32(GPRReg destination) 77 77 { 78 ASSERT(!isArgumentRegister< DFG::GPRInfo>(destination));79 if (m_gprArgumentIndex < DFG::GPRInfo::numberOfArgumentRegisters) {80 m_jit.move( DFG::GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination);78 ASSERT(!isArgumentRegister<GPRInfo>(destination)); 79 if (m_gprArgumentIndex < GPRInfo::numberOfArgumentRegisters) { 80 m_jit.move(GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination); 81 81 return; 82 82 } … … 85 85 } 86 86 87 void loadNext64( DFG::GPRReg destination)87 void loadNext64(GPRReg destination) 88 88 { 89 ASSERT(!isArgumentRegister< DFG::GPRInfo>(destination));90 if (m_gprArgumentIndex < DFG::GPRInfo::numberOfArgumentRegisters) {91 m_jit.move( DFG::GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination);89 ASSERT(!isArgumentRegister<GPRInfo>(destination)); 90 if (m_gprArgumentIndex < GPRInfo::numberOfArgumentRegisters) { 91 m_jit.move(GPRInfo::toArgumentRegister(m_gprArgumentIndex++), destination); 92 92 return; 93 93 } … … 96 96 } 97 97 98 void loadNextPtr( DFG::GPRReg destination)98 void loadNextPtr(GPRReg destination) 99 99 { 100 100 loadNext64(destination); 101 101 } 102 102 103 void loadNextDouble( DFG::FPRReg destination)103 void loadNextDouble(FPRReg destination) 104 104 { 105 105 ASSERT( 106 !isArgumentRegister< DFG::FPRInfo>(destination)107 || destination == DFG::FPRInfo::argumentFPR0);106 !isArgumentRegister<FPRInfo>(destination) 107 || destination == FPRInfo::argumentFPR0); 108 108 109 if (m_fprArgumentIndex < DFG::FPRInfo::numberOfArgumentRegisters) {110 m_jit.moveDouble( DFG::FPRInfo::toArgumentRegister(m_fprArgumentIndex++), destination);109 if (m_fprArgumentIndex < FPRInfo::numberOfArgumentRegisters) { 110 m_jit.moveDouble(FPRInfo::toArgumentRegister(m_fprArgumentIndex++), destination); 111 111 return; 112 112 } … … 116 116 117 117 void loadNextAndBox( 118 ValueFormat, DFG::GPRReg destination,119 DFG::GPRReg scratch1 = InvalidGPRReg, DFG::GPRReg scratch2 = InvalidGPRReg);118 ValueFormat, GPRReg destination, 119 GPRReg scratch1 = InvalidGPRReg, GPRReg scratch2 = InvalidGPRReg); 120 120 121 121 private: … … 127 127 } 128 128 129 DFG::AssemblyHelpers& m_jit;129 AssemblyHelpers& m_jit; 130 130 unsigned m_peekOffset; 131 131 unsigned m_gprArgumentIndex;
Note:
See TracChangeset
for help on using the changeset viewer.