comparison src/cpu/sparc/vm/c1_MacroAssembler_sparc.cpp @ 1295:3cf667df43ef

6919934: JSR 292 needs to support x86 C1 Summary: This implements JSR 292 support for C1 x86. Reviewed-by: never, jrose, kvn
author twisti
date Tue, 09 Mar 2010 20:16:19 +0100
parents c96bf21b756f
children c18cbe5936b8
comparison
equal deleted inserted replaced
1293:51db1e4b379d 1295:3cf667df43ef
1 /* 1 /*
2 * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1999-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
37 AddressLiteral ic_miss(SharedRuntime::get_ic_miss_stub()); 37 AddressLiteral ic_miss(SharedRuntime::get_ic_miss_stub());
38 jump_to(ic_miss, temp_reg); 38 jump_to(ic_miss, temp_reg);
39 delayed()->nop(); 39 delayed()->nop();
40 align(CodeEntryAlignment); 40 align(CodeEntryAlignment);
41 bind(L); 41 bind(L);
42 }
43
44
45 void C1_MacroAssembler::method_exit(bool restore_frame) {
46 // this code must be structured this way so that the return
47 // instruction can be a safepoint.
48 if (restore_frame) {
49 restore();
50 }
51 retl();
52 delayed()->nop();
53 } 42 }
54 43
55 44
56 void C1_MacroAssembler::explicit_null_check(Register base) { 45 void C1_MacroAssembler::explicit_null_check(Register base) {
57 Unimplemented(); 46 Unimplemented();