Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r561 r846  
    617617PassRefPtr<Label> BytecodeGenerator::emitJumpIfTrue(RegisterID* cond, Label* target)
    618618{
    619     if (m_lastOpcodeID == op_less && !target->isForward()) {
     619    if (m_lastOpcodeID == op_less) {
    620620        int dstIndex;
    621621        int src1Index;
     
    628628
    629629            size_t begin = instructions().size();
    630             emitOpcode(op_loop_if_less);
     630            emitOpcode(op_loop_if_less);
    631631            instructions().append(src1Index);
    632632            instructions().append(src2Index);
     
    693693PassRefPtr<Label> BytecodeGenerator::emitJumpIfFalse(RegisterID* cond, Label* target)
    694694{
    695     ASSERT(target->isForward());
    696 
    697     if (m_lastOpcodeID == op_less) {
     695    if (m_lastOpcodeID == op_less && target->isForward()) {
    698696        int dstIndex;
    699697        int src1Index;
     
    712710            return target;
    713711        }
    714     } else if (m_lastOpcodeID == op_lesseq) {
     712    } else if (m_lastOpcodeID == op_lesseq) {
    715713        int dstIndex;
    716714        int src1Index;
     
    739737
    740738            size_t begin = instructions().size();
    741             emitOpcode(op_jtrue);
     739            emitOpcode(true);
    742740            instructions().append(srcIndex);
    743741            instructions().append(target->bind(begin, instructions().size()));
    744742            return target;
    745743        }
    746     } else if (m_lastOpcodeID == op_eq_null) {
     744    } else if (m_lastOpcodeID == op_eq_null) {
    747745        int dstIndex;
    748746        int srcIndex;
     
    759757            return target;
    760758        }
    761     } else if (m_lastOpcodeID == op_neq_null) {
     759    } else if (m_lastOpcodeID == op_neq_null) {
    762760        int dstIndex;
    763761        int srcIndex;
     
    777775
    778776    size_t begin = instructions().size();
    779     emitOpcode(op_jfalse);
     777    emitOpcode(false);
    780778    instructions().append(cond->index());
    781779    instructions().append(target->bind(begin, instructions().size()));
     
    907905            && m_codeBlock->isConstantRegisterIndex(src2->index())
    908906            && 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();
    910908            if (value == "undefined") {
    911909                rewindUnaryOp();
     
    19431941    ASSERT(node->isString());
    19441942    UString::Rep* clause = static_cast<StringNode*>(node)->value().ustring().rep();
    1945     ASSERT(clause->size() == 1);
     1943    ASSERT(clause->() == 1);
    19461944   
    1947     int32_t key = clause->data()[0];
     1945    int32_t key = clause->()[0];
    19481946    ASSERT(key >= min);
    19491947    ASSERT(key <= max);
  • trunk/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.h

    r561 r846  
    193193        }
    194194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
    195208        void emitExpressionInfo(unsigned divot, unsigned startOffset, unsigned endOffset)
    196209        {
Note: See TracChangeset for help on using the changeset viewer.