GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 8707cfce authored by John Zhang's avatar John Zhang

Merge branch 'master' of gitlab.anu.edu.au:mu/mu-impl-fast

parents 1f818744 28c3fcf9
...@@ -60,6 +60,17 @@ impl MuType { ...@@ -60,6 +60,17 @@ impl MuType {
v: v v: v
} }
} }
pub fn get_referenced_ty(&self) -> Option<P<MuType>> {
use types::MuType_::*;
match self.v {
Ref(ref ty)
| IRef(ref ty)
| WeakRef(ref ty)
| UPtr(ref ty) => Some(ty.clone()),
_ => None
}
}
} }
pub type StructTag = MuName; pub type StructTag = MuName;
......
...@@ -74,7 +74,7 @@ pub trait CodeGenerator { ...@@ -74,7 +74,7 @@ pub trait CodeGenerator {
fn emit_mov_mem8_imm8 (&mut self, dest: Mem, src: i8); fn emit_mov_mem8_imm8 (&mut self, dest: Mem, src: i8);
// lea // lea
fn emit_lea_r64(&mut self, dest: Reg, src: Reg); fn emit_lea_r64(&mut self, dest: Reg, src: Mem);
// and // and
fn emit_and_r64_imm32(&mut self, dest: Reg, src: i32); fn emit_and_r64_imm32(&mut self, dest: Reg, src: i32);
......
...@@ -7,6 +7,7 @@ use std::sync::Arc; ...@@ -7,6 +7,7 @@ use std::sync::Arc;
use std::process::Command; use std::process::Command;
use std::process::Output; use std::process::Output;
use std::os::unix::process::ExitStatusExt;
pub mod aot; pub mod aot;
pub mod c_api; pub mod c_api;
...@@ -40,6 +41,10 @@ pub fn exec_nocheck (mut cmd: Command) -> Output { ...@@ -40,6 +41,10 @@ pub fn exec_nocheck (mut cmd: Command) -> Output {
println!("---err---"); println!("---err---");
println!("{}", String::from_utf8_lossy(&output.stderr)); println!("{}", String::from_utf8_lossy(&output.stderr));
if output.status.signal().is_some() {
println!("terminated by a signal: {}", output.status.signal().unwrap());
}
output output
} }
......
This diff is collapsed.
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