Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/CallTest.java @ 11903:df1d665ca846
Truffle; remove uses of Node() constructor in test code
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Sun, 06 Oct 2013 19:53:00 -0700 |
parents | 5e3d1a68664e |
children | 64dcb92ee75a |
comparison
equal
deleted
inserted
replaced
11901:61767ccd4600 | 11903:df1d665ca846 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, 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. |
58 | 58 |
59 private final CallTarget firstTarget; | 59 private final CallTarget firstTarget; |
60 private final CallTarget secondTarget; | 60 private final CallTarget secondTarget; |
61 | 61 |
62 DualCallNode(CallTarget firstTarget, CallTarget secondTarget) { | 62 DualCallNode(CallTarget firstTarget, CallTarget secondTarget) { |
63 super(null); | |
63 this.firstTarget = firstTarget; | 64 this.firstTarget = firstTarget; |
64 this.secondTarget = secondTarget; | 65 this.secondTarget = secondTarget; |
65 } | 66 } |
66 | 67 |
67 @Override | 68 @Override |
73 class ConstantRootNode extends RootNode { | 74 class ConstantRootNode extends RootNode { |
74 | 75 |
75 private final int value; | 76 private final int value; |
76 | 77 |
77 public ConstantRootNode(int value) { | 78 public ConstantRootNode(int value) { |
79 super(null); | |
78 this.value = value; | 80 this.value = value; |
79 } | 81 } |
80 | 82 |
81 @Override | 83 @Override |
82 public Object execute(VirtualFrame frame) { | 84 public Object execute(VirtualFrame frame) { |