From 8b0e806e39591887228e7a2464f340030aa973bf Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Mon, 23 Nov 2020 20:10:46 -0600 Subject: [PATCH] Fix rustpython-jit to not use label_map --- bytecode/src/bytecode.rs | 17 +++++++++++------ jit/src/instructions.rs | 21 +++++++++++++-------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/bytecode/src/bytecode.rs b/bytecode/src/bytecode.rs index f13427bee..33c673e35 100644 --- a/bytecode/src/bytecode.rs +++ b/bytecode/src/bytecode.rs @@ -595,12 +595,7 @@ impl CodeObject { } } - fn display_inner( - &self, - f: &mut fmt::Formatter, - expand_codeobjects: bool, - level: usize, - ) -> fmt::Result { + pub fn label_targets(&self) -> BTreeSet