Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def step(self, instr: Instruction):
self._current_line = instr.starts_line
if not hasattr(self, instr.opname):
raise FallbackError(f"opcode: {instr.opname} is not supported.")
log_message = f"[Translate {self._name}] (line {self._current_line:>3}) {instr.opname:<12} {instr.argval}, stack is {self.stack}\n"
log_message = f"[Translate {self._name} {len(self.call_stack)}] (line {self._current_line:>3}) {instr.opname:<12} {instr.argval}, stack is {self.stack}\n"
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider formatting the call level with an explicit label, for instance, '[Translate {self._name} | call level: {len(self.call_stack)}]' to clearly indicate what the number represents in the log output.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太长了,不要

log(3, log_message)
code_file = self.vframe.code.co_filename
code_line = self._current_line
Expand Down
Loading