comparison graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java @ 2709:7b7dbe19fafb

Remove all unresolved cases from HotspotXirGenerator, use more explicit Deopt, Deopt to lastState instead of stateBefore
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Thu, 19 May 2011 11:36:41 +0200
parents 98447ab8bd83
children bd17ac598c6e
comparison
equal deleted inserted replaced
2690:abb4cc15283d 2709:7b7dbe19fafb
22 */ 22 */
23 package com.sun.c1x.ir; 23 package com.sun.c1x.ir;
24 24
25 import com.oracle.graal.graph.*; 25 import com.oracle.graal.graph.*;
26 import com.sun.c1x.debug.*; 26 import com.sun.c1x.debug.*;
27 import com.sun.c1x.value.*;
28 import com.sun.cri.ci.*; 27 import com.sun.cri.ci.*;
29 import com.sun.cri.ri.*; 28 import com.sun.cri.ri.*;
30 29
31 /** 30 /**
32 * The {@code LoadField} instruction represents a read of a static or instance field. 31 * The {@code LoadField} instruction represents a read of a static or instance field.
43 * @param isStatic indicates if the field is static 42 * @param isStatic indicates if the field is static
44 * @param stateAfter the state after the field access 43 * @param stateAfter the state after the field access
45 * @param graph 44 * @param graph
46 * @param isLoaded indicates if the class is loaded 45 * @param isLoaded indicates if the class is loaded
47 */ 46 */
48 public LoadField(Value object, RiField field, FrameState stateBefore, Graph graph) { 47 public LoadField(Value object, RiField field, Graph graph) {
49 super(field.kind().stackKind(), object, field, INPUT_COUNT, SUCCESSOR_COUNT, graph); 48 super(field.kind().stackKind(), object, field, INPUT_COUNT, SUCCESSOR_COUNT, graph);
50 this.setStateBefore(stateBefore);
51 } 49 }
52 50
53 /** 51 /**
54 * Gets the declared type of the field being accessed. 52 * Gets the declared type of the field being accessed.
55 * @return the declared type of the field being accessed. 53 * @return the declared type of the field being accessed.