Skip to content

Commit f893910

Browse files
committed
Added DebugDumpMethodWithObjects(method) method
Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent c7428c5 commit f893910

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/misc/debug.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ std::string DebugGetClassName(gc_oop_t obj) {
1616
return CLASS_OF(obj)->GetName()->GetStdString();
1717
}
1818

19+
void DebugDumpMethodWithObjects(VMInvokable* method) {
20+
Disassembler::DumpMethod((VMMethod*)method, "", true);
21+
}
22+
1923
void DebugDumpMethod(VMInvokable* method) {
2024
Disassembler::DumpMethod((VMMethod*)method, "", false);
2125
}

src/misc/debug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,5 @@ static inline void DebugTrace(const char* fmt, ...) {
100100
std::string DebugGetClassName(vm_oop_t /*obj*/);
101101
std::string DebugGetClassName(gc_oop_t /*obj*/);
102102
void DebugDumpMethod(VMInvokable* method);
103+
void DebugDumpMethodWithObjects(VMInvokable* method);
103104
void DebugDumpMethod(MethodGenerationContext* mgenc);

0 commit comments

Comments
 (0)