Mercurial > hg > truffle
diff src/cpu/x86/vm/c1_Runtime1_x86.cpp @ 4656:c1160de36474
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 20 Feb 2012 18:01:22 +0100 |
parents | 723df37192d6 |
children | e29339f342de |
line wrap: on
line diff
--- a/src/cpu/x86/vm/c1_Runtime1_x86.cpp Mon Feb 20 17:58:46 2012 +0100 +++ b/src/cpu/x86/vm/c1_Runtime1_x86.cpp Mon Feb 20 18:01:22 2012 +0100 @@ -593,7 +593,7 @@ OopMapSet* Runtime1::generate_exception_throw(StubAssembler* sasm, address target, bool has_argument) { OopMapSet* oop_maps = new OopMapSet(); - if (UseGraal) { +#ifdef GRAAL // graal passes the argument in r10 OopMap* oop_map = save_live_registers(sasm, 1); @@ -611,7 +611,7 @@ int call_offset = __ call_RT(noreg, noreg, target, has_argument ? 1 : 0); oop_maps->add_gc_map(call_offset, oop_map); - } else { +#else // preserve all registers int num_rt_args = has_argument ? 2 : 1; OopMap* oop_map = save_live_registers(sasm, num_rt_args); @@ -635,7 +635,7 @@ int call_offset = __ call_RT(noreg, noreg, target, num_rt_args - 1); oop_maps->add_gc_map(call_offset, oop_map); - } +#endif __ stop("should not reach here"); @@ -1372,8 +1372,13 @@ // will be place in C abi locations #ifdef _LP64 - __ verify_oop((UseGraal) ? j_rarg0 : c_rarg0); - __ mov(rax, (UseGraal) ? j_rarg0 : c_rarg0); +#ifdef GRAAL + __ verify_oop(j_rarg0); + __ mov(rax, j_rarg0); +#else + __ verify_oop(c_rarg0); + __ mov(rax, c_rarg0); +#endif #else // The object is passed on the stack and we haven't pushed a // frame yet so it's one work away from top of stack. @@ -1506,10 +1511,10 @@ Label success; Label miss; - if (UseGraal) { +#ifdef GRAAL // TODO this should really be within the XirSnippets __ check_klass_subtype_fast_path(rsi, rax, rcx, &success, &miss, NULL); - }; +#endif __ check_klass_subtype_slow_path(rsi, rax, rcx, rdi, NULL, &miss);