From 7ba5163f45803debbbc496d2981343a5ffa8a172 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 4 Mar 2024 15:53:28 -0500 Subject: Separate local variable tokens in higher level ILs from stack variable tokens in lower levels, and improve token usage in disassembly --- python/architecture.py | 1 + python/examples/export_svg.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index c979eacb..dcc01e4f 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -2795,6 +2795,7 @@ class InstructionTextToken: IntegerToken Integers KeywordToken **Not emitted by architectures** LocalVariableToken **Not emitted by architectures** + StackVariableToken **Not emitted by architectures** NameSpaceSeparatorToken **Not emitted by architectures** NameSpaceToken **Not emitted by architectures** OpcodeToken **Not emitted by architectures** diff --git a/python/examples/export_svg.py b/python/examples/export_svg.py index 4ff2106f..b2965c93 100755 --- a/python/examples/export_svg.py +++ b/python/examples/export_svg.py @@ -195,6 +195,9 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam font-size: 9pt; fill: {rgbStr('TextToken')}; }} + .InstructionToken {{ + fill: {rgbStr('InstructionColor')}; + }} .RegisterToken {{ fill: {rgbStr('RegisterColor')}; }} @@ -208,6 +211,9 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam fill: {rgbStr('DataSymbolColor')}; }} .LocalVariableToken, .ArgumentNameToken {{ + fill: {rgbStr('LocalVariableColor')}; + }} + .StackVariableToken {{ fill: {rgbStr('StackVariableColor')}; }} .IndirectImportToken, .ImportToken, .ExternalSymbolToken {{ @@ -252,7 +258,7 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam .BaseStructureNameToken, .BaseStructureSeparatorToken {{ fill: {rgbStr('BaseStructureNameColor')}; }} - .TextToken, .InstructionToken, .BeginMemoryOperandToken, .EndMemoryOperandToken {{ + .TextToken, .BeginMemoryOperandToken, .EndMemoryOperandToken {{ fill: {rgbStr('TextToken')}; }} -- cgit v1.3.1