refactor: move DataValue from cranelift-reader to cranelift-codegen
This is no change to functionality; the move is necessary in order to return InstructionData immediates in a structure way (see next commit).
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//! Implements a call frame (activation record) for the Cranelift interpreter.
|
||||
|
||||
use cranelift_codegen::data_value::DataValue;
|
||||
use cranelift_codegen::ir::{Function, Value as ValueRef};
|
||||
use cranelift_reader::DataValue;
|
||||
use log::trace;
|
||||
use std::collections::HashMap;
|
||||
|
||||
@@ -78,9 +78,9 @@ impl<'a> Frame<'a> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use cranelift_codegen::data_value::DataValue;
|
||||
use cranelift_codegen::ir::InstBuilder;
|
||||
use cranelift_frontend::{FunctionBuilder, FunctionBuilderContext};
|
||||
use cranelift_reader::DataValue;
|
||||
|
||||
/// Build an empty function with a single return.
|
||||
fn empty_function() -> Function {
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
use crate::environment::Environment;
|
||||
use crate::frame::Frame;
|
||||
use crate::interpreter::Trap::InvalidType;
|
||||
use cranelift_codegen::data_value::{DataValue, DataValueCastFailure};
|
||||
use cranelift_codegen::ir::condcodes::IntCC;
|
||||
use cranelift_codegen::ir::{
|
||||
Block, FuncRef, Function, Inst, InstructionData, InstructionData::*, Opcode, Opcode::*, Type,
|
||||
Value as ValueRef, ValueList,
|
||||
};
|
||||
use cranelift_reader::{DataValue, DataValueCastFailure};
|
||||
use log::trace;
|
||||
use std::ops::{Add, Div, Mul, Sub};
|
||||
use thiserror::Error;
|
||||
|
||||
Reference in New Issue
Block a user