Changeset 49734 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- Oct 16, 2009, 10:52:20 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/bytecompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r49726 r49734 1795 1795 } 1796 1796 1797 RegisterID* BytecodeGenerator::emit NextPropertyName(RegisterID* dst, RegisterID* iter, Label* target)1797 RegisterID* BytecodeGenerator::emitGetPropertyNames(RegisterID* dst, RegisterID* base, RegisterID* i, RegisterID* size, Label* breakTarget) 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 1801 1814 emitOpcode(op_next_pname); 1802 1815 instructions().append(dst->index()); 1816 instructions().append(base->index()); 1817 instructions().append(i->index()); 1818 instructions().append(size->index()); 1803 1819 instructions().append(iter->index()); 1804 1820 instructions().append(target->bind(begin, instructions().size())); -
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r49726 r49734 313 313 void emitSubroutineReturn(RegisterID* retAddrSrc); 314 314 315 RegisterID* emitGetPropertyNames(RegisterID* dst, RegisterID* base ) { return emitUnaryOp(op_get_pnames, dst, base); }316 RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label* target);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); 317 317 318 318 RegisterID* emitCatch(RegisterID*, Label* start, Label* end);
Note:
See TracChangeset
for help on using the changeset viewer.