Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.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 | a7247418a58b |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
19402:a306749d3e86 | 19403:7e2c87dae93e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2011, 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. |
32 import com.oracle.graal.nodes.spi.*; | 32 import com.oracle.graal.nodes.spi.*; |
33 import com.oracle.graal.nodes.type.*; | 33 import com.oracle.graal.nodes.type.*; |
34 | 34 |
35 @NodeInfo | 35 @NodeInfo |
36 public class MethodCallTargetNode extends CallTargetNode implements IterableNodeType, Simplifiable { | 36 public class MethodCallTargetNode extends CallTargetNode implements IterableNodeType, Simplifiable { |
37 public static final NodeClass TYPE = NodeClass.get(MethodCallTargetNode.class); | |
37 protected final JavaType returnType; | 38 protected final JavaType returnType; |
38 | 39 |
39 public MethodCallTargetNode(InvokeKind invokeKind, ResolvedJavaMethod targetMethod, ValueNode[] arguments, JavaType returnType) { | 40 public MethodCallTargetNode(InvokeKind invokeKind, ResolvedJavaMethod targetMethod, ValueNode[] arguments, JavaType returnType) { |
40 super(arguments, targetMethod, invokeKind); | 41 this(TYPE, invokeKind, targetMethod, arguments, returnType); |
42 } | |
43 | |
44 protected MethodCallTargetNode(NodeClass c, InvokeKind invokeKind, ResolvedJavaMethod targetMethod, ValueNode[] arguments, JavaType returnType) { | |
45 super(c, arguments, targetMethod, invokeKind); | |
41 this.returnType = returnType; | 46 this.returnType = returnType; |
42 } | 47 } |
43 | 48 |
44 /** | 49 /** |
45 * Gets the instruction that produces the receiver object for this invocation, if any. | 50 * Gets the instruction that produces the receiver object for this invocation, if any. |