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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15345
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
1 /*
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
4 *
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
7 * published by the Free Software Foundation.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
8 *
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
13 * accompanied this code).
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
14 *
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
18 *
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
21 * questions.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
22 */
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
23 package com.oracle.graal.hotspot.sparc;
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
24
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
25 import static com.oracle.graal.asm.sparc.SPARCMacroAssembler.*;
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
26 import static com.oracle.graal.sparc.SPARC.*;
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
27
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
28 import com.oracle.graal.asm.sparc.*;
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
29 import com.oracle.graal.lir.*;
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
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
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
32
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
33 /**
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
34 * Pops the current frame off the stack including the return address.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
35 */
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
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
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
38
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
39 @Override
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
40 public void emitCode(CompilationResultBuilder crb, SPARCMacroAssembler masm) {
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
41 // Save O registers over restore.
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
42 new Mov(o0, i0).emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
43 new Mov(o1, i1).emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
44 new Mov(o2, i2).emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
45 new Mov(o3, i3).emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
46 new Mov(o4, i4).emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
47
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
48 new RestoreWindow().emit(masm);
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
49 }
109d6c7c40b5 implement SPARC uncommon trap stub
twisti
parents:
diff changeset
50 }