Changeset 172282 in webkit for trunk/Source/JavaScriptCore/dfg
- Timestamp:
- Aug 7, 2014, 3:08:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
r172176 r172282 4722 4722 case HasIndexedProperty: { 4723 4723 SpeculateCellOperand base(this, node->child1()); 4724 Speculate Int32Operand index(this, node->child2());4724 SpeculateStrictInt32Operand index(this, node->child2()); 4725 4725 GPRResult result(this); 4726 4726 … … 4807 4807 SpeculateCellOperand base(this, baseEdge); 4808 4808 SpeculateCellOperand property(this, propertyEdge); 4809 Speculate Int32Operand index(this, indexEdge);4809 SpeculateStrictInt32Operand index(this, indexEdge); 4810 4810 SpeculateCellOperand enumerator(this, enumeratorEdge); 4811 4811 GPRResult result(this); … … 4877 4877 case GetEnumeratorPname: { 4878 4878 SpeculateCellOperand enumerator(this, node->child1()); 4879 Speculate Int32Operand index(this, node->child2());4879 SpeculateStrictInt32Operand index(this, node->child2()); 4880 4880 GPRTemporary scratch1(this); 4881 GPRTemporary scratch2(this);4882 4881 GPRResult result(this); 4883 4882 … … 4885 4884 GPRReg indexGPR = index.gpr(); 4886 4885 GPRReg scratch1GPR = scratch1.gpr(); 4887 GPRReg scratch2GPR = scratch2.gpr();4888 4886 GPRReg resultGPR = result.gpr(); 4889 4887 … … 4897 4895 4898 4896 m_jit.loadPtr(MacroAssembler::Address(enumeratorGPR, JSPropertyNameEnumerator::cachedPropertyNamesVectorOffset()), scratch1GPR); 4899 m_jit.move(indexGPR, scratch2GPR); 4900 m_jit.signExtend32ToPtr(scratch2GPR, scratch2GPR); 4901 m_jit.load64(MacroAssembler::BaseIndex(scratch1GPR, scratch2GPR, MacroAssembler::TimesEight), resultGPR); 4897 m_jit.load64(MacroAssembler::BaseIndex(scratch1GPR, indexGPR, MacroAssembler::TimesEight), resultGPR); 4902 4898 4903 4899 done.link(&m_jit);
Note:
See TracChangeset
for help on using the changeset viewer.