Changeset 846 for trunk/src/3rdparty/webkit/JavaScriptCore/bytecompiler
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r561 r846 617 617 PassRefPtr<Label> BytecodeGenerator::emitJumpIfTrue(RegisterID* cond, Label* target) 618 618 { 619 if (m_lastOpcodeID == op_less && !target->isForward()) {619 if (m_lastOpcodeID == op_less) { 620 620 int dstIndex; 621 621 int src1Index; … … 628 628 629 629 size_t begin = instructions().size(); 630 emitOpcode( op_loop_if_less);630 emitOpcode(op_loop_if_less); 631 631 instructions().append(src1Index); 632 632 instructions().append(src2Index); … … 693 693 PassRefPtr<Label> BytecodeGenerator::emitJumpIfFalse(RegisterID* cond, Label* target) 694 694 { 695 ASSERT(target->isForward()); 696 697 if (m_lastOpcodeID == op_less) { 695 if (m_lastOpcodeID == op_less && target->isForward()) { 698 696 int dstIndex; 699 697 int src1Index; … … 712 710 return target; 713 711 } 714 } else if (m_lastOpcodeID == op_lesseq ) {712 } else if (m_lastOpcodeID == op_lesseq) { 715 713 int dstIndex; 716 714 int src1Index; … … 739 737 740 738 size_t begin = instructions().size(); 741 emitOpcode( op_jtrue);739 emitOpcode(true); 742 740 instructions().append(srcIndex); 743 741 instructions().append(target->bind(begin, instructions().size())); 744 742 return target; 745 743 } 746 } else if (m_lastOpcodeID == op_eq_null ) {744 } else if (m_lastOpcodeID == op_eq_null) { 747 745 int dstIndex; 748 746 int srcIndex; … … 759 757 return target; 760 758 } 761 } else if (m_lastOpcodeID == op_neq_null ) {759 } else if (m_lastOpcodeID == op_neq_null) { 762 760 int dstIndex; 763 761 int srcIndex; … … 777 775 778 776 size_t begin = instructions().size(); 779 emitOpcode( op_jfalse);777 emitOpcode(false); 780 778 instructions().append(cond->index()); 781 779 instructions().append(target->bind(begin, instructions().size())); … … 907 905 && m_codeBlock->isConstantRegisterIndex(src2->index()) 908 906 && m_codeBlock->constantRegister(src2->index()).jsValue().isString()) { 909 const UString& value = asString(m_codeBlock->constantRegister(src2->index()).jsValue())-> value();907 const UString& value = asString(m_codeBlock->constantRegister(src2->index()).jsValue())->alue(); 910 908 if (value == "undefined") { 911 909 rewindUnaryOp(); … … 1943 1941 ASSERT(node->isString()); 1944 1942 UString::Rep* clause = static_cast<StringNode*>(node)->value().ustring().rep(); 1945 ASSERT(clause-> size() == 1);1943 ASSERT(clause->() == 1); 1946 1944 1947 int32_t key = clause-> data()[0];1945 int32_t key = clause->()[0]; 1948 1946 ASSERT(key >= min); 1949 1947 ASSERT(key <= max); -
trunk/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r561 r846 193 193 } 194 194 195 196 197 198 199 200 201 202 203 204 205 206 207 195 208 void emitExpressionInfo(unsigned divot, unsigned startOffset, unsigned endOffset) 196 209 {
Note:
See TracChangeset
for help on using the changeset viewer.