Changeset 46598 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
Jul 30, 2009, 1:57:44 PM (16 years ago)
Author:
[email protected]
Message:

Merged nitro-extreme branch into trunk.

Location:
trunk/JavaScriptCore/bytecode
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.cpp

    r46210 r46598  
    5858static UString valueToSourceString(ExecState* exec, JSValue val)
    5959{
     60    if (!val)
     61        return "0";
     62
    6063    if (val.isString()) {
    6164        UString result("\"");
     
    596599        case op_div: {
    597600            printBinaryOp(location, it, "div");
     601            ++it;
    598602            break;
    599603        }
     
    738742            int id0 = (++it)->u.operand;
    739743            printf("[%4d] resolve_with_base %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, m_identifiers[id0]).c_str());
    740             break;
    741         }
    742         case op_resolve_func: {
    743             int r0 = (++it)->u.operand;
    744             int r1 = (++it)->u.operand;
    745             int id0 = (++it)->u.operand;
    746             printf("[%4d] resolve_func\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, m_identifiers[id0]).c_str());
    747744            break;
    748745        }
     
    13281325    }
    13291326
     1327#if ENABLE(JIT_OPTIMIZE_CALL)
    13301328    unlinkCallers();
    13311329#endif
     1330
     1331#endif // !ENABLE(JIT)
    13321332
    13331333#if DUMP_CODE_BLOCK_STATISTICS
     
    13361336}
    13371337
    1338 #if ENABLE(JIT)
     1338#if ENABLE(JIT_OPTIMIZE_CALL)
    13391339void CodeBlock::unlinkCallers()
    13401340{
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r46247 r46598  
    235235        void refStructures(Instruction* vPC) const;
    236236        void derefStructures(Instruction* vPC) const;
    237 #if ENABLE(JIT)
     237#if ENABLE(JIT_OPTIMIZE_CALL)
    238238        void unlinkCallers();
    239239#endif
  • trunk/JavaScriptCore/bytecode/Opcode.h

    r46187 r46598  
    6868        macro(op_add, 5) \
    6969        macro(op_mul, 5) \
    70         macro(op_div, 4) \
     70        macro(op_div, 5) \
    7171        macro(op_mod, 4) \
    7272        macro(op_sub, 5) \
     
    9999        macro(op_resolve_base, 3) \
    100100        macro(op_resolve_with_base, 4) \
    101         macro(op_resolve_func, 4) \
    102101        macro(op_get_by_id, 8) \
    103102        macro(op_get_by_id_self, 8) \
Note: See TracChangeset for help on using the changeset viewer.