Mercurial > hg > truffle
annotate graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotLeaveDeoptimizedStackFrameOp.java @ 16522:8bba3477c88c
[SPARC] Implementing visitInfopointNode
author | Stefan Anzinger <stefan.anzinger@gmail.com> |
---|---|
date | Mon, 14 Jul 2014 05:04:45 -0700 |
parents | f57cf459f5d3 |
children | 2d401b9ca70d |
rev | line source |
---|---|
15345 | 1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
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 | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 */ | |
23 package com.oracle.graal.hotspot.sparc; | |
24 | |
25 import static com.oracle.graal.asm.sparc.SPARCMacroAssembler.*; | |
26 import static com.oracle.graal.sparc.SPARC.*; | |
27 | |
28 import com.oracle.graal.asm.sparc.*; | |
29 import com.oracle.graal.lir.*; | |
30 import com.oracle.graal.lir.asm.*; | |
16314
f57cf459f5d3
[SPARC] Adding deoptimization handler foreign call
Stefan Anzinger <stefan.anzinger@gmail.com>
parents:
15345
diff
changeset
|
31 import com.oracle.graal.lir.sparc.*; |
15345 | 32 |
33 /** | |
34 * Pops the current frame off the stack including the return address. | |
35 */ | |
36 @Opcode("LEAVE_DEOPTIMIZED_STACK_FRAME") | |
16314
f57cf459f5d3
[SPARC] Adding deoptimization handler foreign call
Stefan Anzinger <stefan.anzinger@gmail.com>
parents:
15345
diff
changeset
|
37 final class SPARCHotSpotLeaveDeoptimizedStackFrameOp extends SPARCLIRInstruction { |
15345 | 38 |
39 @Override | |
40 public void emitCode(CompilationResultBuilder crb, SPARCMacroAssembler masm) { | |
41 // Save O registers over restore. | |
42 new Mov(o0, i0).emit(masm); | |
43 new Mov(o1, i1).emit(masm); | |
44 new Mov(o2, i2).emit(masm); | |
45 new Mov(o3, i3).emit(masm); | |
46 new Mov(o4, i4).emit(masm); | |
47 | |
48 new RestoreWindow().emit(masm); | |
49 } | |
50 } |