Changeset 239788 in webkit
- Timestamp:
- Jan 9, 2019, 3:03:23 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r239787 r239788 1 2019-01-09 Mark Lam <mark.lam@apple.com> 2 3 Restore bytecode dumper's ability to dump jump target as offset#(->targetBytecodeIndex#). 4 https://bugs.webkit.org/show_bug.cgi?id=193300 5 6 Reviewed by Saam Barati. 7 8 For example, instead of: 9 [ 95] jtrue loc11, 9 10 We can now again (as before the bytecode format rewrite) have: 11 [ 95] jtrue loc11, 9(->104) 12 13 * bytecode/BytecodeDumper.cpp: 14 (JSC::BytecodeDumper<Block>::printLocationAndOp): 15 * bytecode/BytecodeDumper.h: 16 (JSC::BytecodeDumper::dumpValue): 17 1 18 2019-01-09 Mark Lam <mark.lam@apple.com> 2 19 -
trunk/Source/JavaScriptCore/bytecode/BytecodeDumper.cpp
r237547 r239788 80 80 void BytecodeDumper<Block>::printLocationAndOp(InstructionStream::Offset location, const char* op) 81 81 { 82 m_currentLocation = location; 82 83 m_out.printf("[%4u] %-18s ", location, op); 83 84 } -
trunk/Source/JavaScriptCore/bytecode/BytecodeDumper.h
r237933 r239788 54 54 55 55 void dumpValue(VirtualRegister reg) { m_out.printf("%s", registerName(reg.offset()).data()); } 56 void dumpValue(BoundLabel label) { m_out.print(label.target()); } 56 void dumpValue(BoundLabel label) 57 { 58 InstructionStream::Offset targetOffset = label.target() + m_currentLocation; 59 m_out.print(label.target(), "(->", targetOffset, ")"); 60 } 57 61 template<typename T> 58 62 void dumpValue(T v) { m_out.print(v); } … … 84 88 Block* m_block; 85 89 PrintStream& m_out; 90 InstructionStream::Offset m_currentLocation { 0 }; 86 91 }; 87 92
Note:
See TracChangeset
for help on using the changeset viewer.