Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64ZapRegistersOp.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 | 1c92d437179b |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
19525:35481bcb5882 | 19526:8fc336a04d77 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 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. |
38 /** | 38 /** |
39 * Writes well known garbage values to registers. | 39 * Writes well known garbage values to registers. |
40 */ | 40 */ |
41 @Opcode("ZAP_REGISTER") | 41 @Opcode("ZAP_REGISTER") |
42 public final class AMD64ZapRegistersOp extends AMD64LIRInstruction implements SaveRegistersOp { | 42 public final class AMD64ZapRegistersOp extends AMD64LIRInstruction implements SaveRegistersOp { |
43 public static final LIRInstructionClass<AMD64ZapRegistersOp> TYPE = LIRInstructionClass.create(AMD64ZapRegistersOp.class); | |
43 | 44 |
44 /** | 45 /** |
45 * The registers that are zapped. | 46 * The registers that are zapped. |
46 */ | 47 */ |
47 protected final Register[] zappedRegisters; | 48 protected final Register[] zappedRegisters; |
50 * The garbage values that are written to the registers. | 51 * The garbage values that are written to the registers. |
51 */ | 52 */ |
52 @Use({CONST}) protected JavaConstant[] zapValues; | 53 @Use({CONST}) protected JavaConstant[] zapValues; |
53 | 54 |
54 public AMD64ZapRegistersOp(Register[] zappedRegisters, JavaConstant[] zapValues) { | 55 public AMD64ZapRegistersOp(Register[] zappedRegisters, JavaConstant[] zapValues) { |
56 super(TYPE); | |
55 this.zappedRegisters = zappedRegisters; | 57 this.zappedRegisters = zappedRegisters; |
56 this.zapValues = zapValues; | 58 this.zapValues = zapValues; |
57 } | 59 } |
58 | 60 |
59 @Override | 61 @Override |