summaryrefslogtreecommitdiff
path: root/yjit/src/backend/ir.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yjit/src/backend/ir.rs')
-rw-r--r--yjit/src/backend/ir.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs
index f1146f152e..a441303d64 100644
--- a/yjit/src/backend/ir.rs
+++ b/yjit/src/backend/ir.rs
@@ -725,29 +725,3 @@ def_push_2_opnd_no_out!(cmp, Op::Cmp);
def_push_2_opnd_no_out!(test, Op::Test);
def_push_0_opnd_no_out!(breakpoint, Op::Breakpoint);
def_push_2_opnd_no_out!(incr_counter, Op::IncrCounter);
-
-// NOTE: these methods are temporary and will likely move
-// to context.rs later
-// They are just wrappers to convert from X86Opnd into the IR Opnd type
-impl Context
-{
- pub fn ir_sp_opnd(&mut self, idx: isize) -> Opnd {
- self.sp_opnd(idx).into()
- }
-
- pub fn ir_stack_opnd(&mut self, idx: i32) -> Opnd {
- self.stack_opnd(idx).into()
- }
-
- pub fn ir_stack_pop(&mut self, n: usize) -> Opnd {
- self.stack_pop(n).into()
- }
-
- pub fn ir_stack_push(&mut self, val_type: Type) -> Opnd {
- self.stack_push(val_type).into()
- }
-
- pub fn ir_stack_push_mapping(&mut self, (mapping, temp_type): (TempMapping, Type)) -> Opnd {
- self.stack_push_mapping((mapping, temp_type)).into()
- }
-}