comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultCallTarget.java @ 15158:083e9e4df58a

Truffle: Remove unused needsMaterializedFrame.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 15 Apr 2014 13:20:17 +0200
parents f675818d9ad0
children 2ed720ce9273
comparison
equal deleted inserted replaced
15104:ed29f7ff71eb 15158:083e9e4df58a
23 * questions. 23 * questions.
24 */ 24 */
25 package com.oracle.truffle.api.impl; 25 package com.oracle.truffle.api.impl;
26 26
27 import com.oracle.truffle.api.*; 27 import com.oracle.truffle.api.*;
28 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
29 import com.oracle.truffle.api.frame.*; 28 import com.oracle.truffle.api.frame.*;
30 import com.oracle.truffle.api.nodes.*; 29 import com.oracle.truffle.api.nodes.*;
31 30
32 /** 31 /**
33 * This is an implementation-specific class. Do not use or instantiate it. Instead, use 32 * This is an implementation-specific class. Do not use or instantiate it. Instead, use
34 * {@link TruffleRuntime#createCallTarget(RootNode)} to create a {@link RootCallTarget}. 33 * {@link TruffleRuntime#createCallTarget(RootNode)} to create a {@link RootCallTarget}.
35 */ 34 */
36 public class DefaultCallTarget extends RootCallTarget { 35 public class DefaultCallTarget extends RootCallTarget {
37
38 @CompilationFinal protected boolean needsMaterializedFrame = true;
39 36
40 protected DefaultCallTarget(RootNode function) { 37 protected DefaultCallTarget(RootNode function) {
41 super(function); 38 super(function);
42 } 39 }
43 40
44 @Override 41 @Override
45 public Object call(Object[] args) { 42 public Object call(Object[] args) {
46 VirtualFrame frame = new DefaultVirtualFrame(getRootNode().getFrameDescriptor(), args); 43 VirtualFrame frame = new DefaultVirtualFrame(getRootNode().getFrameDescriptor(), args);
47 return callProxy(frame); 44 return callProxy(frame);
48 } 45 }
49
50 @Override
51 public void setNeedsMaterializedFrame() {
52 needsMaterializedFrame = true;
53 }
54 } 46 }