Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/FunctionDefinitionNode.java @ 11906:82ec5f898e6c
SL: remove use of RootNode() constructor
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Sun, 06 Oct 2013 19:58:09 -0700 |
parents | df223ca2d6af |
children |
comparison
equal
deleted
inserted
replaced
11905:b563d9cb084f | 11906:82ec5f898e6c |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, 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. |
33 | 33 |
34 private final FrameDescriptor frameDescriptor; | 34 private final FrameDescriptor frameDescriptor; |
35 private final String name; | 35 private final String name; |
36 | 36 |
37 public FunctionDefinitionNode(StatementNode body, FrameDescriptor frameDescriptor, String name, TypedNode returnValue) { | 37 public FunctionDefinitionNode(StatementNode body, FrameDescriptor frameDescriptor, String name, TypedNode returnValue) { |
38 super(null); | |
38 this.body = adoptChild(body); | 39 this.body = adoptChild(body); |
39 this.frameDescriptor = frameDescriptor; | 40 this.frameDescriptor = frameDescriptor; |
40 this.name = name; | 41 this.name = name; |
41 this.returnValue = adoptChild(returnValue); | 42 this.returnValue = adoptChild(returnValue); |
42 } | 43 } |