Changeset 49726 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- Oct 16, 2009, 7:31:42 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/bytecompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r49717 r49726 1795 1795 } 1796 1796 1797 RegisterID* BytecodeGenerator::emit GetPropertyNames(RegisterID* dst, RegisterID* base, RegisterID* i, RegisterID* size, Label* breakTarget)1797 RegisterID* BytecodeGenerator::emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label* target) 1798 1798 { 1799 1799 size_t begin = instructions().size(); 1800 1800 1801 emitOpcode(op_get_pnames);1802 instructions().append(dst->index());1803 instructions().append(base->index());1804 instructions().append(i->index());1805 instructions().append(size->index());1806 instructions().append(breakTarget->bind(begin, instructions().size()));1807 return dst;1808 }1809 1810 RegisterID* BytecodeGenerator::emitNextPropertyName(RegisterID* dst, RegisterID* base, RegisterID* i, RegisterID* size, RegisterID* iter, Label* target)1811 {1812 size_t begin = instructions().size();1813 1814 1801 emitOpcode(op_next_pname); 1815 1802 instructions().append(dst->index()); 1816 instructions().append(base->index());1817 instructions().append(i->index());1818 instructions().append(size->index());1819 1803 instructions().append(iter->index()); 1820 1804 instructions().append(target->bind(begin, instructions().size())); -
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r49717 r49726 313 313 void emitSubroutineReturn(RegisterID* retAddrSrc); 314 314 315 RegisterID* emitGetPropertyNames(RegisterID* dst, RegisterID* base , RegisterID* i, RegisterID* size, Label* breakTarget);316 RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* base, RegisterID* i, RegisterID* size, RegisterID*iter, Label* target);315 RegisterID* emitGetPropertyNames(RegisterID* dst, RegisterID* base) { return emitUnaryOp(op_get_pnames, dst, base); } 316 RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label* target); 317 317 318 318 RegisterID* emitCatch(RegisterID*, Label* start, Label* end);
Note:
See TracChangeset
for help on using the changeset viewer.