Changeset 33335

Show
Ignore:
Timestamp:
05/12/08 23:03:52 (6 months ago)
Author:
mrowe@apple.com
Message:

2008-05-04 Maciej Stachowiak <mjs@apple.com>

Rubber stamped by Oliver.

  • renamed a few opcodes and fixed assembly formatting to accomodate the longest opcode

equal --> eq
nequal --> neq
resolve_base_and_property --> resolve_with_base
resolve_base_and_func --> resolve_func
get_prop_id --> get_by_id
put_prop_id --> put_by_id
delete_prop_id --> del_by_id
get_prop_val --> get_by_val
put_prop_val --> put_by_val
delete_prop_val --> del_by_val
put_prop_index --> put_by_index

  • VM/CodeBlock.cpp: (KJS::printUnaryOp): (KJS::printBinaryOp): (KJS::printConditionalJump): (KJS::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (KJS::CodeGenerator::emitEqual): (KJS::CodeGenerator::emitNotEqual): (KJS::CodeGenerator::emitResolveWithBase): (KJS::CodeGenerator::emitResolveFunction): (KJS::CodeGenerator::emitGetById): (KJS::CodeGenerator::emitPutById): (KJS::CodeGenerator::emitDeleteById): (KJS::CodeGenerator::emitGetByVal): (KJS::CodeGenerator::emitPutByVal): (KJS::CodeGenerator::emitDeleteByVal): (KJS::CodeGenerator::emitPutByIndex):
  • VM/CodeGenerator.h:
  • VM/Machine.cpp: (KJS::Machine::privateExecute):
  • VM/Opcode.h:
  • kjs/nodes.cpp: (KJS::ArrayNode::emitCode): (KJS::PropertyListNode::emitCode): (KJS::BracketAccessorNode::emitCode): (KJS::DotAccessorNode::emitCode): (KJS::EvalFunctionCallNode::emitCode): (KJS::FunctionCallResolveNode::emitCode): (KJS::FunctionCallBracketNode::emitCode): (KJS::FunctionCallDotNode::emitCode): (KJS::PostIncResolveNode::emitCode): (KJS::PostDecResolveNode::emitCode): (KJS::PostIncBracketNode::emitCode): (KJS::PostDecBracketNode::emitCode): (KJS::PostIncDotNode::emitCode): (KJS::PostDecDotNode::emitCode): (KJS::DeleteResolveNode::emitCode): (KJS::DeleteBracketNode::emitCode): (KJS::DeleteDotNode::emitCode): (KJS::TypeOfResolveNode::emitCode): (KJS::PreIncResolveNode::emitCode): (KJS::PreDecResolveNode::emitCode): (KJS::PreIncBracketNode::emitCode): (KJS::PreDecBracketNode::emitCode): (KJS::PreIncDotNode::emitCode): (KJS::PreDecDotNode::emitCode): (KJS::ReadModifyResolveNode::emitCode): (KJS::AssignResolveNode::emitCode): (KJS::AssignDotNode::emitCode): (KJS::ReadModifyDotNode::emitCode): (KJS::AssignBracketNode::emitCode): (KJS::ReadModifyBracketNode::emitCode): (KJS::ConstDeclNode::emitCodeSingle): (KJS::ForInNode::emitCode): (KJS::TryNode::emitCode):
Location:
branches/squirrelfish/JavaScriptCore
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • branches/squirrelfish/JavaScriptCore/ChangeLog

    r33334 r33335  
     12008-05-04  Maciej Stachowiak  <mjs@apple.com> 
     2 
     3        Rubber stamped by Oliver. 
     4         
     5        - renamed a few opcodes and fixed assembly formatting to accomodate the longest opcode 
     6         
     7        equal --> eq 
     8        nequal --> neq 
     9        resolve_base_and_property --> resolve_with_base 
     10        resolve_base_and_func --> resolve_func 
     11        get_prop_id --> get_by_id 
     12        put_prop_id --> put_by_id 
     13        delete_prop_id --> del_by_id 
     14        get_prop_val --> get_by_val 
     15        put_prop_val --> put_by_val 
     16        delete_prop_val --> del_by_val 
     17        put_prop_index --> put_by_index 
     18         
     19        * VM/CodeBlock.cpp: 
     20        (KJS::printUnaryOp): 
     21        (KJS::printBinaryOp): 
     22        (KJS::printConditionalJump): 
     23        (KJS::CodeBlock::dump): 
     24        * VM/CodeGenerator.cpp: 
     25        (KJS::CodeGenerator::emitEqual): 
     26        (KJS::CodeGenerator::emitNotEqual): 
     27        (KJS::CodeGenerator::emitResolveWithBase): 
     28        (KJS::CodeGenerator::emitResolveFunction): 
     29        (KJS::CodeGenerator::emitGetById): 
     30        (KJS::CodeGenerator::emitPutById): 
     31        (KJS::CodeGenerator::emitDeleteById): 
     32        (KJS::CodeGenerator::emitGetByVal): 
     33        (KJS::CodeGenerator::emitPutByVal): 
     34        (KJS::CodeGenerator::emitDeleteByVal): 
     35        (KJS::CodeGenerator::emitPutByIndex): 
     36        * VM/CodeGenerator.h: 
     37        * VM/Machine.cpp: 
     38        (KJS::Machine::privateExecute): 
     39        * VM/Opcode.h: 
     40        * kjs/nodes.cpp: 
     41        (KJS::ArrayNode::emitCode): 
     42        (KJS::PropertyListNode::emitCode): 
     43        (KJS::BracketAccessorNode::emitCode): 
     44        (KJS::DotAccessorNode::emitCode): 
     45        (KJS::EvalFunctionCallNode::emitCode): 
     46        (KJS::FunctionCallResolveNode::emitCode): 
     47        (KJS::FunctionCallBracketNode::emitCode): 
     48        (KJS::FunctionCallDotNode::emitCode): 
     49        (KJS::PostIncResolveNode::emitCode): 
     50        (KJS::PostDecResolveNode::emitCode): 
     51        (KJS::PostIncBracketNode::emitCode): 
     52        (KJS::PostDecBracketNode::emitCode): 
     53        (KJS::PostIncDotNode::emitCode): 
     54        (KJS::PostDecDotNode::emitCode): 
     55        (KJS::DeleteResolveNode::emitCode): 
     56        (KJS::DeleteBracketNode::emitCode): 
     57        (KJS::DeleteDotNode::emitCode): 
     58        (KJS::TypeOfResolveNode::emitCode): 
     59        (KJS::PreIncResolveNode::emitCode): 
     60        (KJS::PreDecResolveNode::emitCode): 
     61        (KJS::PreIncBracketNode::emitCode): 
     62        (KJS::PreDecBracketNode::emitCode): 
     63        (KJS::PreIncDotNode::emitCode): 
     64        (KJS::PreDecDotNode::emitCode): 
     65        (KJS::ReadModifyResolveNode::emitCode): 
     66        (KJS::AssignResolveNode::emitCode): 
     67        (KJS::AssignDotNode::emitCode): 
     68        (KJS::ReadModifyDotNode::emitCode): 
     69        (KJS::AssignBracketNode::emitCode): 
     70        (KJS::ReadModifyBracketNode::emitCode): 
     71        (KJS::ConstDeclNode::emitCodeSingle): 
     72        (KJS::ForInNode::emitCode): 
     73        (KJS::TryNode::emitCode): 
     74 
    1752008-05-04  Oliver Hunt  <oliver@apple.com> 
    276 
  • branches/squirrelfish/JavaScriptCore/VM/CodeBlock.cpp

    r33331 r33335  
    104104    int r1 = (++it)->u.operand; 
    105105 
    106     printf("[%4d] %s\t\t%s, %s\n", location, op, registerName(r0).c_str(), registerName(r1).c_str()); 
     106    printf("[%4d] %s\t\t %s, %s\n", location, op, registerName(r0).c_str(), registerName(r1).c_str()); 
    107107} 
    108108 
     
    112112    int r1 = (++it)->u.operand; 
    113113    int r2 = (++it)->u.operand; 
    114     printf("[%4d] %s\t\t%s, %s, %s\n", location, op, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
     114    printf("[%4d] %s\t\t %s, %s, %s\n", location, op, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
    115115} 
    116116 
     
    119119    int r0 = (++it)->u.operand; 
    120120    int offset = (++it)->u.operand; 
    121     printf("[%4d] %s\t\t%s, %d(->%d)\n", location, op, registerName(r0).c_str(), offset, jumpTarget(begin, it, offset)); 
     121    printf("[%4d] %s\t\t %s, %d(->%d)\n", location, op, registerName(r0).c_str(), offset, jumpTarget(begin, it, offset)); 
    122122} 
    123123 
     
    168168        unsigned i = 0; 
    169169        do { 
    170             printf("\t%d: { start: [%4d] end: [%4d] target: [%4d] }\n", i+1, exceptionHandlers[i].start, exceptionHandlers[i].end, exceptionHandlers[i].target); 
     170            printf("\t %d: { start: [%4d] end: [%4d] target: [%4d] }\n", i+1, exceptionHandlers[i].start, exceptionHandlers[i].end, exceptionHandlers[i].target); 
    171171            ++i; 
    172172        } while (i < exceptionHandlers.size()); 
     
    183183            int r0 = (++it)->u.operand; 
    184184            int k0 = (++it)->u.operand; 
    185             printf("[%4d] load\t\t%s, %s\t\t\n", location, registerName(r0).c_str(), constantName(exec, k0, jsValues[k0]).c_str()); 
     185            printf("[%4d] load\t\t %s, %s\t\t\n", location, registerName(r0).c_str(), constantName(exec, k0, jsValues[k0]).c_str()); 
    186186            break; 
    187187        } 
    188188        case op_new_object: { 
    189189            int r0 = (++it)->u.operand; 
    190             printf("[%4d] new_object\t%s\n", location, registerName(r0).c_str()); 
     190            printf("[%4d] new_object\t %s\n", location, registerName(r0).c_str()); 
    191191            break; 
    192192        } 
    193193        case op_new_array: { 
    194194            int r0 = (++it)->u.operand; 
    195             printf("[%4d] new_array\t%s\n", location, registerName(r0).c_str()); 
     195            printf("[%4d] new_array\t %s\n", location, registerName(r0).c_str()); 
    196196            break; 
    197197        } 
     
    199199            int r0 = (++it)->u.operand; 
    200200            int re0 = (++it)->u.operand; 
    201             printf("[%4d] new_regexp\t%s, %s\n", location, registerName(r0).c_str(), regexpName(re0, regexps[re0].get()).c_str()); 
     201            printf("[%4d] new_regexp\t %s, %s\n", location, registerName(r0).c_str(), regexpName(re0, regexps[re0].get()).c_str()); 
    202202            break; 
    203203        } 
     
    205205            int r0 = (++it)->u.operand; 
    206206            int r1 = (++it)->u.operand; 
    207             printf("[%4d] mov\t\t%s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str()); 
     207            printf("[%4d] mov\t\t %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str()); 
    208208            break; 
    209209        } 
     
    212212            break; 
    213213        } 
    214         case op_equal: { 
    215             printBinaryOp(location, it, "equal"); 
    216             break; 
    217         } 
    218         case op_nequal: { 
    219             printBinaryOp(location, it, "nequal"); 
     214        case op_eq: { 
     215            printBinaryOp(location, it, "eq"); 
     216            break; 
     217        } 
     218        case op_neq: { 
     219            printBinaryOp(location, it, "neq"); 
    220220            break; 
    221221        } 
     
    238238        case op_pre_inc: { 
    239239            int r0 = (++it)->u.operand; 
    240             printf("[%4d] pre_inc\t\t%s\n", location, registerName(r0).c_str()); 
     240            printf("[%4d] pre_inc\t\t %s\n", location, registerName(r0).c_str()); 
    241241            break; 
    242242        } 
    243243        case op_pre_dec: { 
    244244            int r0 = (++it)->u.operand; 
    245             printf("[%4d] pre_dec\t\t%s\n", location, registerName(r0).c_str()); 
     245            printf("[%4d] pre_dec\t\t %s\n", location, registerName(r0).c_str()); 
    246246            break; 
    247247        } 
     
    325325            int r0 = (++it)->u.operand; 
    326326            int id0 = (++it)->u.operand; 
    327             printf("[%4d] resolve\t\t%s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str()); 
     327            printf("[%4d] resolve\t\t %s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str()); 
    328328            break; 
    329329        } 
     
    331331            int r0 = (++it)->u.operand; 
    332332            int id0 = (++it)->u.operand; 
    333             printf("[%4d] resolve_base\t%s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str()); 
    334             break; 
    335         } 
    336         case op_resolve_base_and_property: { 
    337             int r0 = (++it)->u.operand; 
    338             int r1 = (++it)->u.operand; 
    339             int id0 = (++it)->u.operand; 
    340             printf("[%4d] resolve_base_and_property\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
    341             break; 
    342         } 
    343         case op_resolve_base_and_func: { 
    344             int r0 = (++it)->u.operand; 
    345             int r1 = (++it)->u.operand; 
    346             int id0 = (++it)->u.operand; 
    347             printf("[%4d] resolve_base_and_func\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
    348             break; 
    349         } 
    350         case op_get_prop_id: { 
    351             int r0 = (++it)->u.operand; 
    352             int r1 = (++it)->u.operand; 
    353             int id0 = (++it)->u.operand; 
    354             printf("[%4d] get_prop_id\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
    355             break; 
    356         } 
    357         case op_put_prop_id: { 
    358             int r0 = (++it)->u.operand; 
    359             int id0 = (++it)->u.operand; 
    360             int r1 = (++it)->u.operand; 
    361             printf("[%4d] put_prop_id\t%s, %s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str(), registerName(r1).c_str()); 
    362             break; 
    363         } 
    364         case op_delete_prop_id: { 
    365             int r0 = (++it)->u.operand; 
    366             int r1 = (++it)->u.operand; 
    367             int id0 = (++it)->u.operand; 
    368             printf("[%4d] delete_prop_id\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
    369             break; 
    370         } 
    371         case op_get_prop_val: { 
     333            printf("[%4d] resolve_base\t %s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str()); 
     334            break; 
     335        } 
     336        case op_resolve_with_base: { 
     337            int r0 = (++it)->u.operand; 
     338            int r1 = (++it)->u.operand; 
     339            int id0 = (++it)->u.operand; 
     340            printf("[%4d] resolve_with_base %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
     341            break; 
     342        } 
     343        case op_resolve_func: { 
     344            int r0 = (++it)->u.operand; 
     345            int r1 = (++it)->u.operand; 
     346            int id0 = (++it)->u.operand; 
     347            printf("[%4d] resolve_func\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
     348            break; 
     349        } 
     350        case op_get_by_id: { 
     351            int r0 = (++it)->u.operand; 
     352            int r1 = (++it)->u.operand; 
     353            int id0 = (++it)->u.operand; 
     354            printf("[%4d] get_by_id\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
     355            break; 
     356        } 
     357        case op_put_by_id: { 
     358            int r0 = (++it)->u.operand; 
     359            int id0 = (++it)->u.operand; 
     360            int r1 = (++it)->u.operand; 
     361            printf("[%4d] put_by_id\t %s, %s, %s\n", location, registerName(r0).c_str(), idName(id0, identifiers[id0]).c_str(), registerName(r1).c_str()); 
     362            break; 
     363        } 
     364        case op_del_by_id: { 
     365            int r0 = (++it)->u.operand; 
     366            int r1 = (++it)->u.operand; 
     367            int id0 = (++it)->u.operand; 
     368            printf("[%4d] del_by_id\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), idName(id0, identifiers[id0]).c_str()); 
     369            break; 
     370        } 
     371        case op_get_by_val: { 
    372372            int r0 = (++it)->u.operand; 
    373373            int r1 = (++it)->u.operand; 
    374374            int r2 = (++it)->u.operand; 
    375             printf("[%4d] get_prop_val\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
    376             break; 
    377         } 
    378         case op_put_prop_val: { 
     375            printf("[%4d] get_by_val\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
     376            break; 
     377        } 
     378        case op_put_by_val: { 
    379379            int r0 = (++it)->u.operand; 
    380380            int r1 = (++it)->u.operand; 
    381381            int r2 = (++it)->u.operand; 
    382             printf("[%4d] put_prop_val\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
    383             break; 
    384         } 
    385         case op_delete_prop_val: { 
     382            printf("[%4d] put_by_val\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
     383            break; 
     384        } 
     385        case op_del_by_val: { 
    386386            int r0 = (++it)->u.operand; 
    387387            int r1 = (++it)->u.operand; 
    388388            int r2 = (++it)->u.operand; 
    389             printf("[%4d] delete_prop_val\t%s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
    390             break; 
    391         } 
    392         case op_put_prop_index: { 
     389            printf("[%4d] del_by_val\t %s, %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str()); 
     390            break; 
     391        } 
     392        case op_put_by_index: { 
    393393            int r0 = (++it)->u.operand; 
    394394            unsigned n0 = (++it)->u.operand; 
    395395            int r1 = (++it)->u.operand; 
    396             printf("[%4d] put_prop_index\t%s, %u, %s\n", location, registerName(r0).c_str(), n0, registerName(r1).c_str()); 
     396            printf("[%4d] put_by_index\t %s, %u, %s\n", location, registerName(r0).c_str(), n0, registerName(r1).c_str()); 
    397397            break; 
    398398        } 
    399399        case op_jmp: { 
    400400            int offset = (++it)->u.operand; 
    401             printf("[%4d] jmp\t\t%d(->%d)\n", location, offset, jumpTarget(begin, it, offset)); 
     401            printf("[%4d] jmp\t\t %d(->%d)\n", location, offset, jumpTarget(begin, it, offset)); 
    402402            break; 
    403403        } 
     
    413413            int r0 = (++it)->u.operand; 
    414414            int f0 = (++it)->u.operand; 
    415             printf("[%4d] new_func\t\t%s, f%d\n", location, registerName(r0).c_str(), f0); 
     415            printf("[%4d] new_func\t\t %s, f%d\n", location, registerName(r0).c_str(), f0); 
    416416            break; 
    417417        } 
     
    419419            int r0 = (++it)->u.operand; 
    420420            int f0 = (++it)->u.operand; 
    421             printf("[%4d] new_func_exp\t%s, f%d\n", location, registerName(r0).c_str(), f0); 
     421            printf("[%4d] new_func_exp\t %s, f%d\n", location, registerName(r0).c_str(), f0); 
    422422            break; 
    423423        } 
     
    428428            int tempCount = (++it)->u.operand; 
    429429            int argCount = (++it)->u.operand; 
    430             printf("[%4d] call\t\t%s, %s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str(), tempCount, argCount); 
     430            printf("[%4d] call\t\t %s, %s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str(), tempCount, argCount); 
    431431            break; 
    432432        } 
     
    437437            int tempCount = (++it)->u.operand; 
    438438            int argCount = (++it)->u.operand; 
    439             printf("[%4d] eval\t\t%s, %s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str(), tempCount, argCount); 
     439            printf("[%4d] eval\t\t %s, %s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), registerName(r2).c_str(), tempCount, argCount); 
    440440            break; 
    441441        } 
    442442        case op_ret: { 
    443443            int r0 = (++it)->u.operand; 
    444             printf("[%4d] ret\t\t%s\n", location, registerName(r0).c_str()); 
     444            printf("[%4d] ret\t\t %s\n", location, registerName(r0).c_str()); 
    445445            break; 
    446446        } 
     
    450450            int tempCount = (++it)->u.operand; 
    451451            int argCount = (++it)->u.operand; 
    452             printf("[%4d] construct\t%s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), tempCount, argCount); 
     452            printf("[%4d] construct\t %s, %s, %d, %d\n", location, registerName(r0).c_str(), registerName(r1).c_str(), tempCount, argCount); 
    453453            break; 
    454454        } 
     
    456456            int r0 = (++it)->u.operand; 
    457457            int r1 = (++it)->u.operand; 
    458             printf("[%4d] get_pnames\t%s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str()); 
     458            printf("[%4d] get_pnames\t %s, %s\n", location, registerName(r0).c_str(), registerName(r1).c_str()); 
    459459            break; 
    460460        } 
     
    463463            int iter = (++it)->u.operand; 
    464464            int offset = (++it)->u.operand; 
    465             printf("[%4d] next_pname\t%s, %s, %d(->%d)\n", location, registerName(dest).c_str(), registerName(iter).c_str(), offset, jumpTarget(begin, it, offset)); 
     465            printf("[%4d] next_pname\t %s, %s, %d(->%d)\n", location, registerName(dest).c_str(), registerName(iter).c_str(), offset, jumpTarget(begin, it, offset)); 
    466466            break; 
    467467        } 
    468468        case op_push_scope: { 
    469469            int r0 = (++it)->u.operand; 
    470             printf("[%4d] push_scope\t%s\n", location, registerName(r0).c_str()); 
     470            printf("[%4d] push_scope\t %s\n", location, registerName(r0).c_str()); 
    471471            break; 
    472472        } 
     
    483483        case op_catch: { 
    484484            int r0 = (++it)->u.operand; 
    485             printf("[%4d] catch\t\t%s\n", location, registerName(r0).c_str()); 
     485            printf("[%4d] catch\t\t %s\n", location, registerName(r0).c_str()); 
    486486            break; 
    487487        } 
    488488        case op_throw: { 
    489489            int r0 = (++it)->u.operand; 
    490             printf("[%4d] throw\t\t%s\n", location, registerName(r0).c_str()); 
     490            printf("[%4d] throw\t\t %s\n", location, registerName(r0).c_str()); 
    491491            break; 
    492492        } 
     
    495495            int errorType = (++it)->u.operand; 
    496496            int k0 = (++it)->u.operand; 
    497             printf("[%4d] new_error\t%s, %d, %s\n", location, registerName(r0).c_str(), errorType, constantName(exec, k0, jsValues[k0]).c_str()); 
     497            printf("[%4d] new_error\t %s, %d, %s\n", location, registerName(r0).c_str(), errorType, constantName(exec, k0, jsValues[k0]).c_str()); 
    498498            break; 
    499499        } 
     
    501501            int retAddrDst = (++it)->u.operand; 
    502502            int offset = (++it)->u.operand; 
    503             printf("[%4d] jsr\t\t%s, %d(->%d)\n", location, registerName(retAddrDst).c_str(), offset, jumpTarget(begin, it, offset)); 
     503            printf("[%4d] jsr\t\t %s, %d(->%d)\n", location, registerName(retAddrDst).c_str(), offset, jumpTarget(begin, it, offset)); 
    504504            break; 
    505505        } 
    506506        case op_sret: { 
    507507            int retAddrSrc = (++it)->u.operand; 
    508             printf("[%4d] sret\t\t%s\n", location, registerName(retAddrSrc).c_str()); 
     508            printf("[%4d] sret\t\t %s\n", location, registerName(retAddrSrc).c_str()); 
    509509            break; 
    510510        } 
    511511        case op_end: { 
    512512            int r0 = (++it)->u.operand; 
    513             printf("[%4d] end\t\t%s\n", location, registerName(r0).c_str()); 
     513            printf("[%4d] end\t\t %s\n", location, registerName(r0).c_str()); 
    514514            break; 
    515515        } 
  • branches/squirrelfish/JavaScriptCore/VM/CodeGenerator.cpp

    r33331 r33335  
    431431RegisterID* CodeGenerator::emitEqual(RegisterID* r0, RegisterID* r1, RegisterID* r2) 
    432432{ 
    433     instructions().append(machine().getOpcode(op_equal)); 
     433    instructions().append(machine().getOpcode(op_eq)); 
    434434    instructions().append(r0->index()); 
    435435    instructions().append(r1->index()); 
     
    440440RegisterID* CodeGenerator::emitNotEqual(RegisterID* r0, RegisterID* r1, RegisterID* r2) 
    441441{ 
    442     instructions().append(machine().getOpcode(op_nequal)); 
     442    instructions().append(machine().getOpcode(op_neq)); 
    443443    instructions().append(r0->index()); 
    444444    instructions().append(r1->index()); 
     
    716716} 
    717717     
    718 RegisterID* CodeGenerator::emitResolveBaseAndProperty(RegisterID* baseDst, RegisterID* propDst, const Identifier& property) 
    719 { 
    720     instructions().append(machine().getOpcode(op_resolve_base_and_property)); 
     718RegisterID* CodeGenerator::emitResolveWithBase(RegisterID* baseDst, RegisterID* propDst, const Identifier& property) 
     719{ 
     720    instructions().append(machine().getOpcode(op_resolve_with_base)); 
    721721    instructions().append(baseDst->index()); 
    722722    instructions().append(propDst->index()); 
     
    725725} 
    726726 
    727 RegisterID* CodeGenerator::emitResolveBaseAndFunc(RegisterID* baseDst, RegisterID* funcDst, const Identifier& property) 
    728 { 
    729     instructions().append(machine().getOpcode(op_resolve_base_and_func)); 
     727RegisterID* CodeGenerator::emitResolveFunction(RegisterID* baseDst, RegisterID* funcDst, const Identifier& property) 
     728{ 
     729    instructions().append(machine().getOpcode(op_resolve_func)); 
    730730    instructions().append(baseDst->index()); 
    731731    instructions().append(funcDst->index()); 
     
    734734} 
    735735 
    736 RegisterID* CodeGenerator::emitGetPropId(RegisterID* dst, RegisterID* base, const Identifier& property) 
    737 { 
    738     instructions().append(machine().getOpcode(op_get_prop_id)); 
     736RegisterID* CodeGenerator::emitGetById(RegisterID* dst, RegisterID* base, const Identifier& property) 
     737{ 
     738    instructions().append(machine().getOpcode(op_get_by_id)); 
    739739    instructions().append(dst->index()); 
    740740    instructions().append(base->index()); 
     
    743743} 
    744744 
    745 RegisterID* CodeGenerator::emitPutPropId(RegisterID* base, const Identifier& property, RegisterID* value) 
    746 { 
    747     instructions().append(machine().getOpcode(op_put_prop_id)); 
     745RegisterID* CodeGenerator::emitPutById(RegisterID* base, const Identifier& property, RegisterID* value) 
     746{ 
     747    instructions().append(machine().getOpcode(op_put_by_id)); 
    748748    instructions().append(base->index()); 
    749749    instructions().append(addConstant(property)); 
     
    770770} 
    771771 
    772 RegisterID* CodeGenerator::emitDeletePropId(RegisterID* dst, RegisterID* base, const Identifier& property) 
    773 { 
    774     instructions().append(machine().getOpcode(op_delete_prop_id)); 
     772RegisterID* CodeGenerator::emitDeleteById(RegisterID* dst, RegisterID* base, const Identifier& property) 
     773{ 
     774    instructions().append(machine().getOpcode(op_del_by_id)); 
    775775    instructions().append(dst->index()); 
    776776    instructions().append(base->index()); 
     
    779779} 
    780780 
    781 RegisterID* CodeGenerator::emitGetPropVal(RegisterID* dst, RegisterID* base, RegisterID* property) 
    782 { 
    783     instructions().append(machine().getOpcode(op_get_prop_val)); 
     781RegisterID* CodeGenerator::emitGetByVal(RegisterID* dst, RegisterID* base, RegisterID* property) 
     782{ 
     783    instructions().append(machine().getOpcode(op_get_by_val)); 
    784784    instructions().append(dst->index()); 
    785785    instructions().append(base->index()); 
     
    788788} 
    789789 
    790 RegisterID* CodeGenerator::emitPutPropVal(RegisterID* base, RegisterID* property, RegisterID* value) 
    791 { 
    792     instructions().append(machine().getOpcode(op_put_prop_val)); 
     790RegisterID* CodeGenerator::emitPutByVal(RegisterID* base, RegisterID* property, RegisterID* value) 
     791{ 
     792    instructions().append(machine().getOpcode(op_put_by_val)); 
    793793    instructions().append(base->index()); 
    794794    instructions().append(property->index()); 
     
    797797} 
    798798 
    799 RegisterID* CodeGenerator::emitDeletePropVal(RegisterID* dst, RegisterID* base, RegisterID* property) 
    800 { 
    801     instructions().append(machine().getOpcode(op_delete_prop_val)); 
     799RegisterID* CodeGenerator::emitDeleteByVal(RegisterID* dst, RegisterID* base, RegisterID* property) 
     800{ 
     801    instructions().append(machine().getOpcode(op_del_by_val)); 
    802802    instructions().append(dst->index()); 
    803803    instructions().append(base->index()); 
     
    806806} 
    807807 
    808 RegisterID* CodeGenerator::emitPutPropIndex(RegisterID* base, unsigned index, RegisterID* value) 
    809 { 
    810     instructions().append(machine().getOpcode(op_put_prop_index)); 
     808RegisterID* CodeGenerator::emitPutByIndex(RegisterID* base, unsigned index, RegisterID* value) 
     809{ 
     810    instructions().append(machine().getOpcode(op_put_by_index)); 
    811811    instructions().append(base->index()); 
    812812    instructions().append(index); 
  • branches/squirrelfish/JavaScriptCore/VM/CodeGenerator.h

    r33331 r33335  
    191191 
    192192        RegisterID* emitResolveBase(RegisterID* dst, const Identifier& property); 
    193         RegisterID* emitResolveBaseAndProperty(RegisterID* baseDst, RegisterID* propDst, const Identifier& property); 
    194         RegisterID* emitResolveBaseAndFunc(RegisterID* baseDst, RegisterID* funcDst, const Identifier& property); 
    195          
    196         RegisterID* emitGetPropId(RegisterID* dst, RegisterID* base, const Identifier& property); 
    197         RegisterID* emitPutPropId(RegisterID* base, const Identifier& property, RegisterID* value); 
    198         RegisterID* emitDeletePropId(RegisterID* dst, RegisterID* base, const Identifier&); 
    199         RegisterID* emitGetPropVal(RegisterID* dst, RegisterID* base, RegisterID* property); 
    200         RegisterID* emitPutPropVal(RegisterID* base, RegisterID* property, RegisterID* value); 
    201         RegisterID* emitDeletePropVal(RegisterID* dst, RegisterID* base, RegisterID* property); 
    202         RegisterID* emitPutPropIndex(RegisterID* base, unsigned index, RegisterID* value); 
     193        RegisterID* emitResolveWithBase(Regi