comparison graal/GraalCompiler/src/com/sun/c1x/value/MutableFrameState.java @ 2564:274360f98f97

Remove inlining (2nd part) removed IRScope
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Fri, 29 Apr 2011 13:19:17 +0200
parents 4fdef1464592
children cc1f1d396288
comparison
equal deleted inserted replaced
2563:491896f81cae 2564:274360f98f97
22 */ 22 */
23 package com.sun.c1x.value; 23 package com.sun.c1x.value;
24 24
25 import java.util.*; 25 import java.util.*;
26 26
27 import com.sun.c1x.graph.*;
27 import com.sun.c1x.ir.*; 28 import com.sun.c1x.ir.*;
28 import com.sun.c1x.util.*; 29 import com.sun.c1x.util.*;
29 import com.sun.cri.ci.*; 30 import com.sun.cri.ci.*;
31 import com.sun.cri.ri.*;
30 32
31 33
32 /** 34 /**
33 * The {@code MutableFrameState} class extends abstract {@link FrameState} with methods modifying the frame state. 35 * The {@code MutableFrameState} class extends abstract {@link FrameState} with methods modifying the frame state.
34 * Only {@code MutableFrameState} can be instantiated and thus the object references in which it is stored decide 36 * Only {@code MutableFrameState} can be instantiated and thus the object references in which it is stored decide
41 * 43 *
42 * @author Michael Duller 44 * @author Michael Duller
43 */ 45 */
44 public final class MutableFrameState extends FrameState { 46 public final class MutableFrameState extends FrameState {
45 47
46 public MutableFrameState(IRScope irScope, int bci, int maxLocals, int maxStack) { 48 public MutableFrameState(RiMethod method, int bci, int maxLocals, int maxStack) {
47 super(irScope, bci, maxLocals, maxStack); 49 super(method, bci, maxLocals, maxStack);
48 } 50 }
49 51
50 /** 52 /**
51 * Replace the local variables in this frame state with the local variables from the specified frame state. This is 53 * Replace the local variables in this frame state with the local variables from the specified frame state. This is
52 * used in inlining. 54 * used in inlining.
326 /** 328 /**
327 * Locks a new object within the specified IRScope. 329 * Locks a new object within the specified IRScope.
328 * @param scope the IRScope in which this locking operation occurs 330 * @param scope the IRScope in which this locking operation occurs
329 * @param obj the object being locked 331 * @param obj the object being locked
330 */ 332 */
331 public void lock(IRScope scope, Value obj, int totalNumberOfLocks) { 333 public void lock(IR ir, Value obj, int totalNumberOfLocks) {
332 if (locks == null) { 334 if (locks == null) {
333 locks = new ArrayList<Value>(4); 335 locks = new ArrayList<Value>(4);
334 } 336 }
335 locks.add(obj); 337 locks.add(obj);
336 scope.updateMaxLocks(totalNumberOfLocks); 338 ir.updateMaxLocks(totalNumberOfLocks);
337 } 339 }
338 340
339 /** 341 /**
340 * Unlock the lock on the top of the stack. 342 * Unlock the lock on the top of the stack.
341 */ 343 */