Commit f92bb162 authored by qinsoon's avatar qinsoon
Browse files

remove warnings

parent 8da9f1ed
...@@ -7,7 +7,6 @@ use compiler::backend::RegGroup; ...@@ -7,7 +7,6 @@ use compiler::backend::RegGroup;
use utils::ByteSize; use utils::ByteSize;
use compiler::backend::x86_64; use compiler::backend::x86_64;
use compiler::backend::x86_64::CodeGenerator; use compiler::backend::x86_64::CodeGenerator;
use compiler::machine_code::CompiledFunction;
use compiler::machine_code::MachineCode; use compiler::machine_code::MachineCode;
use vm::VM; use vm::VM;
use runtime::ValueLocation; use runtime::ValueLocation;
......
...@@ -6,7 +6,6 @@ use ast::op::OpCode; ...@@ -6,7 +6,6 @@ use ast::op::OpCode;
use ast::types; use ast::types;
use ast::types::*; use ast::types::*;
use vm::VM; use vm::VM;
use runtime;
use runtime::mm; use runtime::mm;
use runtime::ValueLocation; use runtime::ValueLocation;
use runtime::thread; use runtime::thread;
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
use compiler::CompilerPass; use compiler::CompilerPass;
use compiler::PassExecutionResult; use compiler::PassExecutionResult;
use compiler;
use compiler::machine_code::CompiledFunction;
use ast::ir::*; use ast::ir::*;
use vm::VM; use vm::VM;
......
...@@ -17,8 +17,6 @@ use vm::VM; ...@@ -17,8 +17,6 @@ use vm::VM;
// |--------------- // |---------------
// | alloca area // | alloca area
use rustc_serialize::{Encodable, Encoder, Decodable, Decoder};
#[derive(RustcEncodable, RustcDecodable, Clone)] #[derive(RustcEncodable, RustcDecodable, Clone)]
pub struct Frame { pub struct Frame {
func_ver_id: MuID, func_ver_id: MuID,
......
use runtime;
use runtime::ValueLocation; use runtime::ValueLocation;
use ast::ir; use ast::ir;
......
use ast::ir::*; use ast::ir::*;
use compiler::machine_code::CompiledFunction; use compiler::machine_code::CompiledFunction;
use compiler::frame::*;
use compiler::backend::x86_64; use compiler::backend::x86_64;
use utils::Address; use utils::Address;
use utils::Word; use utils::Word;
...@@ -194,7 +193,7 @@ impl FrameCursor { ...@@ -194,7 +193,7 @@ impl FrameCursor {
fn find_func_for_address (cf: &RwLockReadGuard<HashMap<MuID, RwLock<CompiledFunction>>>, pc_addr: Address) -> (MuID, MuID) { fn find_func_for_address (cf: &RwLockReadGuard<HashMap<MuID, RwLock<CompiledFunction>>>, pc_addr: Address) -> (MuID, MuID) {
trace!("trying to find FuncVersion for address 0x{:x}", pc_addr); trace!("trying to find FuncVersion for address 0x{:x}", pc_addr);
for (id, func) in cf.iter() { for (_, func) in cf.iter() {
let func = func.read().unwrap(); let func = func.read().unwrap();
let start = func.start.to_address(); let start = func.start.to_address();
......
#![allow(unused_imports)] // work in progress
#![allow(unused_variables)] // stubs #![allow(unused_variables)] // stubs
#![allow(dead_code)] // stubs #![allow(dead_code)] // stubs
...@@ -18,7 +19,6 @@ use std::collections::HashMap; ...@@ -18,7 +19,6 @@ use std::collections::HashMap;
use std::collections::HashSet; use std::collections::HashSet;
use super::api_c::*; use super::api_c::*;
use super::api_bridge::*;
use super::deps::*; use super::deps::*;
pub struct MuVM { pub struct MuVM {
......
...@@ -11,16 +11,13 @@ use vm::vm_options::VMOptions; ...@@ -11,16 +11,13 @@ use vm::vm_options::VMOptions;
use runtime::thread::*; use runtime::thread::*;
use runtime::ValueLocation; use runtime::ValueLocation;
use utils::ByteSize; use utils::ByteSize;
use utils::Address;
use runtime::mm as gc; use runtime::mm as gc;
use rustc_serialize::{Encodable, Encoder, Decodable, Decoder}; use rustc_serialize::{Encodable, Encoder, Decodable, Decoder};
use std::path; use std::path;
use std::sync::Arc;
use std::sync::RwLock; use std::sync::RwLock;
use std::sync::atomic::{AtomicUsize, AtomicBool, ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT, Ordering}; use std::sync::atomic::{AtomicUsize, AtomicBool, ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT, Ordering};
use std::thread::JoinHandle;
// FIXME: // FIXME:
// besides fields in VM, there are some 'globals' we need to persist // besides fields in VM, there are some 'globals' we need to persist
......
...@@ -8,10 +8,6 @@ use self::mu::ast::ir::*; ...@@ -8,10 +8,6 @@ use self::mu::ast::ir::*;
use self::mu::ast::inst::*; use self::mu::ast::inst::*;
use self::mu::vm::*; use self::mu::vm::*;
use self::mu::compiler::*; use self::mu::compiler::*;
use self::mu::runtime::thread;
use self::mu::runtime::thread::MuThread;
use self::mu::runtime::mm;
use self::mu::utils::ByteSize;
use std::sync::Arc; use std::sync::Arc;
use std::sync::RwLock; use std::sync::RwLock;
......
...@@ -8,10 +8,6 @@ use self::mu::ast::ir::*; ...@@ -8,10 +8,6 @@ use self::mu::ast::ir::*;
use self::mu::ast::inst::*; use self::mu::ast::inst::*;
use self::mu::vm::*; use self::mu::vm::*;
use self::mu::compiler::*; use self::mu::compiler::*;
use self::mu::runtime::thread;
use self::mu::runtime::thread::MuThread;
use self::mu::runtime::mm;
use self::mu::utils::ByteSize;
use aot; use aot;
...@@ -187,7 +183,6 @@ fn create_catch_exception_func (vm: &VM) { ...@@ -187,7 +183,6 @@ fn create_catch_exception_func (vm: &VM) {
} }
fn create_throw_exception_func (vm: &VM) { fn create_throw_exception_func (vm: &VM) {
let type_int64 = vm.get_type(vm.id_of("int64"));
let type_ref_int64 = vm.get_type(vm.id_of("ref_int64")); let type_ref_int64 = vm.get_type(vm.id_of("ref_int64"));
let type_iref_int64 = vm.get_type(vm.id_of("iref_int64")); let type_iref_int64 = vm.get_type(vm.id_of("iref_int64"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment