comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/NewInstanceStubCall.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 ec0733b5a90a
children 61d3cb8e1280
comparison
equal deleted inserted replaced
19402:a306749d3e86 19403:7e2c87dae93e
1 /* 1 /*
2 * Copyright (c) 2012, 2014, 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 static com.oracle.graal.hotspot.HotSpotBackend.*; 25 import static com.oracle.graal.hotspot.HotSpotBackend.*;
26 26
27 import com.oracle.graal.api.code.*; 27 import com.oracle.graal.api.code.*;
28 import com.oracle.graal.api.meta.*; 28 import com.oracle.graal.api.meta.*;
29 import com.oracle.graal.compiler.common.type.*; 29 import com.oracle.graal.compiler.common.type.*;
30 import com.oracle.graal.graph.*;
30 import com.oracle.graal.hotspot.meta.*; 31 import com.oracle.graal.hotspot.meta.*;
31 import com.oracle.graal.hotspot.stubs.*; 32 import com.oracle.graal.hotspot.stubs.*;
32 import com.oracle.graal.hotspot.word.*; 33 import com.oracle.graal.hotspot.word.*;
33 import com.oracle.graal.nodeinfo.*; 34 import com.oracle.graal.nodeinfo.*;
34 import com.oracle.graal.nodes.*; 35 import com.oracle.graal.nodes.*;
38 * A call to the {@link NewInstanceStub}. 39 * A call to the {@link NewInstanceStub}.
39 */ 40 */
40 @NodeInfo 41 @NodeInfo
41 public final class NewInstanceStubCall extends DeoptimizingStubCall implements LIRLowerable { 42 public final class NewInstanceStubCall extends DeoptimizingStubCall implements LIRLowerable {
42 43
44 public static final NodeClass TYPE = NodeClass.get(NewInstanceStubCall.class);
43 private static final Stamp defaultStamp = StampFactory.objectNonNull(); 45 private static final Stamp defaultStamp = StampFactory.objectNonNull();
44 46
45 @Input ValueNode hub; 47 @Input ValueNode hub;
46 48
47 public NewInstanceStubCall(ValueNode hub) { 49 public NewInstanceStubCall(ValueNode hub) {
48 super(defaultStamp); 50 super(TYPE, defaultStamp);
49 this.hub = hub; 51 this.hub = hub;
50 } 52 }
51 53
52 @Override 54 @Override
53 public boolean inferStamp() { 55 public boolean inferStamp() {