comparison graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64BreakpointOp.java @ 19526:8fc336a04d77

Create TYPE fields for LIRInstruction and CompositeValue. Renaming NodeClass#get to NodeClass#create.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 20 Feb 2015 22:22:55 +0100
parents 1a66453f73db
children 48c1ebd24120
comparison
equal deleted inserted replaced
19525:35481bcb5882 19526:8fc336a04d77
1 /* 1 /*
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. 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.
31 31
32 /** 32 /**
33 * Emits a breakpoint. 33 * Emits a breakpoint.
34 */ 34 */
35 @Opcode("BREAKPOINT") 35 @Opcode("BREAKPOINT")
36 public class AMD64BreakpointOp extends AMD64LIRInstruction { 36 public final class AMD64BreakpointOp extends AMD64LIRInstruction {
37 public static final LIRInstructionClass<AMD64BreakpointOp> TYPE = LIRInstructionClass.create(AMD64BreakpointOp.class);
37 38
38 /** 39 /**
39 * A set of values loaded into the Java ABI parameter locations (for inspection by a debugger). 40 * A set of values loaded into the Java ABI parameter locations (for inspection by a debugger).
40 */ 41 */
41 @Use({REG, STACK}) protected Value[] parameters; 42 @Use({REG, STACK}) protected Value[] parameters;
42 43
43 public AMD64BreakpointOp(Value[] parameters) { 44 public AMD64BreakpointOp(Value[] parameters) {
45 super(TYPE);
44 this.parameters = parameters; 46 this.parameters = parameters;
45 } 47 }
46 48
47 @Override 49 @Override
48 public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler asm) { 50 public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler asm) {