comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/debug/VerifyHeapNode.java @ 19396: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 f57d86eb036f
children 61d3cb8e1280
comparison
equal deleted inserted replaced
19395:a306749d3e86 19396:7e2c87dae93e
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.
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.nodes.debug; 23 package com.oracle.graal.nodes.debug;
24 24
25 import com.oracle.graal.compiler.common.type.*; 25 import com.oracle.graal.compiler.common.type.*;
26 import com.oracle.graal.graph.*;
26 import com.oracle.graal.nodeinfo.*; 27 import com.oracle.graal.nodeinfo.*;
27 import com.oracle.graal.nodes.*; 28 import com.oracle.graal.nodes.*;
28 import com.oracle.graal.nodes.spi.*; 29 import com.oracle.graal.nodes.spi.*;
29 30
30 /** 31 /**
31 * A node for platform dependent verification of the Java heap. Intended to be used for debugging 32 * A node for platform dependent verification of the Java heap. Intended to be used for debugging
32 * heap corruption issues. 33 * heap corruption issues.
33 */ 34 */
34 @NodeInfo 35 @NodeInfo
35 public class VerifyHeapNode extends FixedWithNextNode implements Lowerable { 36 public final class VerifyHeapNode extends FixedWithNextNode implements Lowerable {
37
38 public static final NodeClass TYPE = NodeClass.get(VerifyHeapNode.class);
36 39
37 public VerifyHeapNode() { 40 public VerifyHeapNode() {
38 super(StampFactory.forVoid()); 41 super(TYPE, StampFactory.forVoid());
39 } 42 }
40 43
41 @Override 44 @Override
42 public void lower(LoweringTool tool) { 45 public void lower(LoweringTool tool) {
43 tool.getLowerer().lower(this, tool); 46 tool.getLowerer().lower(this, tool);