Changeset 59860 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- May 20, 2010, 1:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r59820 r59860 1475 1475 // Emit call. 1476 1476 emitOpcode(opcodeID); 1477 instructions().append(dst->index()); // dst1478 1477 instructions().append(func->index()); // func 1479 1478 instructions().append(argv.size()); // argCount 1480 1479 instructions().append(argv[0]->index() + argv.size() + RegisterFile::CallFrameHeaderSize); // registerOffset 1480 if (dst != ignoredResult()) { 1481 emitOpcode(op_call_put_result); 1482 instructions().append(dst->index()); // dst 1483 } 1481 1484 1482 1485 if (m_shouldEmitProfileHooks) { … … 1520 1523 // Emit call. 1521 1524 emitOpcode(op_call_varargs); 1522 instructions().append(dst->index()); // dst1523 1525 instructions().append(func->index()); // func 1524 1526 instructions().append(argCountRegister->index()); // arg count 1525 1527 instructions().append(thisRegister->index() + RegisterFile::CallFrameHeaderSize); // initial registerOffset 1528 if (dst != ignoredResult()) { 1529 emitOpcode(op_call_put_result); 1530 instructions().append(dst->index()); // dst 1531 } 1526 1532 if (m_shouldEmitProfileHooks) { 1527 1533 emitOpcode(op_profile_did_call); … … 1610 1616 1611 1617 emitOpcode(op_construct); 1612 instructions().append(dst->index()); // dst1613 1618 instructions().append(func->index()); // func 1614 1619 instructions().append(argv.size()); // argCount … … 1616 1621 instructions().append(funcProto->index()); // proto 1617 1622 instructions().append(argv[0]->index()); // thisRegister 1623 if (dst != ignoredResult()) { 1624 emitOpcode(op_call_put_result); 1625 instructions().append(dst->index()); // dst 1626 } 1618 1627 1619 1628 if (m_shouldEmitProfileHooks) {
Note:
See TracChangeset
for help on using the changeset viewer.