Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotCardTableAddressOp.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 | aa4f2e3629ca |
children | 15a46a918fc1 |
comparison
equal
deleted
inserted
replaced
19525:35481bcb5882 | 19526:8fc336a04d77 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 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. |
24 | 24 |
25 import com.oracle.graal.api.code.*; | 25 import com.oracle.graal.api.code.*; |
26 import com.oracle.graal.api.meta.*; | 26 import com.oracle.graal.api.meta.*; |
27 import com.oracle.graal.asm.amd64.*; | 27 import com.oracle.graal.asm.amd64.*; |
28 import com.oracle.graal.hotspot.meta.HotSpotCodeCacheProvider.*; | 28 import com.oracle.graal.hotspot.meta.HotSpotCodeCacheProvider.*; |
29 import com.oracle.graal.lir.*; | |
29 import com.oracle.graal.lir.amd64.*; | 30 import com.oracle.graal.lir.amd64.*; |
30 import com.oracle.graal.lir.asm.*; | 31 import com.oracle.graal.lir.asm.*; |
31 import com.oracle.graal.hotspot.HotSpotGraalRuntime; | 32 import com.oracle.graal.hotspot.HotSpotGraalRuntime; |
32 | 33 |
33 public class AMD64HotSpotCardTableAddressOp extends AMD64LIRInstruction { | 34 public final class AMD64HotSpotCardTableAddressOp extends AMD64LIRInstruction { |
35 public static final LIRInstructionClass<AMD64HotSpotCardTableAddressOp> TYPE = LIRInstructionClass.create(AMD64HotSpotCardTableAddressOp.class); | |
34 | 36 |
35 @Def({OperandFlag.REG}) private AllocatableValue result; | 37 @Def({OperandFlag.REG}) private AllocatableValue result; |
36 | 38 |
37 public AMD64HotSpotCardTableAddressOp(AllocatableValue result) { | 39 public AMD64HotSpotCardTableAddressOp(AllocatableValue result) { |
40 super(TYPE); | |
38 this.result = result; | 41 this.result = result; |
39 } | 42 } |
40 | 43 |
41 @Override | 44 @Override |
42 public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler asm) { | 45 public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler asm) { |