Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/LoopExitNode.java @ 19403:7e2c87dae93e
Create static final NodeClass field named TYPE in Node subclasses.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 15:43:03 +0100 |
parents | 2ccaaf5a6be4 |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
19402:a306749d3e86 | 19403:7e2c87dae93e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 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. |
25 import com.oracle.graal.graph.*; | 25 import com.oracle.graal.graph.*; |
26 import com.oracle.graal.graph.spi.*; | 26 import com.oracle.graal.graph.spi.*; |
27 import com.oracle.graal.nodeinfo.*; | 27 import com.oracle.graal.nodeinfo.*; |
28 | 28 |
29 @NodeInfo(allowedUsageTypes = {InputType.Association}) | 29 @NodeInfo(allowedUsageTypes = {InputType.Association}) |
30 public class LoopExitNode extends BeginStateSplitNode implements IterableNodeType { | 30 public final class LoopExitNode extends BeginStateSplitNode implements IterableNodeType { |
31 | 31 |
32 public static final NodeClass TYPE = NodeClass.get(LoopExitNode.class); | |
32 @Input(InputType.Association) LoopBeginNode loopBegin; | 33 @Input(InputType.Association) LoopBeginNode loopBegin; |
33 | 34 |
34 public LoopExitNode(LoopBeginNode loop) { | 35 public LoopExitNode(LoopBeginNode loop) { |
36 super(TYPE); | |
35 assert loop != null; | 37 assert loop != null; |
36 loopBegin = loop; | 38 loopBegin = loop; |
37 } | 39 } |
38 | 40 |
39 public LoopBeginNode loopBegin() { | 41 public LoopBeginNode loopBegin() { |