Skip to content

Commit fa99e5e

Browse files
author
Christian Wimmer
committed
Rename field
1 parent df53965 commit fa99e5e

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/DefaultAnalysisPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ public void onObservedSaturated(PointsToAnalysis bb, TypeFlow<?> observed) {
300300
}
301301
}
302302
/* Remove the link between the formal and the actual return, if present. */
303-
if (actualReturn != null && calleeFlows.getResult() != null) {
304-
calleeFlows.getResult().removeUse(actualReturn);
303+
if (actualReturn != null && calleeFlows.getReturnFlow() != null) {
304+
calleeFlows.getReturnFlow().removeUse(actualReturn);
305305
}
306306
}
307307

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/InvokeTypeFlow.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,17 @@ protected void linkCallee(PointsToAnalysis bb, boolean isStatic, MethodFlowsGrap
227227
* might throw an exception instead of returning, hence the formal return is
228228
* null.
229229
*/
230-
if (calleeFlows.getResult() != null) {
231-
calleeFlows.getResult().addUse(bb, actualReturn);
230+
if (calleeFlows.getReturnFlow() != null) {
231+
calleeFlows.getReturnFlow().addUse(bb, actualReturn);
232232
}
233233
}
234234
} else {
235235
/*
236236
* The callee may have a return type, hence the actualReturn is non-null, but it
237237
* might throw an exception instead of returning, hence the formal return is null.
238238
*/
239-
if (calleeFlows.getResult() != null) {
240-
calleeFlows.getResult().addUse(bb, actualReturn);
239+
if (calleeFlows.getReturnFlow() != null) {
240+
calleeFlows.getReturnFlow().addUse(bb, actualReturn);
241241
}
242242
}
243243
}

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodFlowsGraph.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class MethodFlowsGraph {
6969
private EconomicMap<Object, InstanceOfTypeFlow> instanceOfFlows;
7070
private EconomicMap<Object, InvokeTypeFlow> invokeFlows;
7171

72-
private FormalReturnTypeFlow result;
72+
private FormalReturnTypeFlow returnFlow;
7373

7474
private boolean isLinearized = false;
7575
private boolean sealed;
@@ -137,7 +137,7 @@ public void cloneOriginalFlows(PointsToAnalysis bb) {
137137
initialParameterFlows = new InitialParamTypeFlow[originalMethodFlowsGraph.initialParameterFlows.length];
138138

139139
nodeFlows = lookupClonesOf(bb, originalMethodFlowsGraph.nodeFlows);
140-
result = originalMethodFlowsGraph.getResult() != null ? lookupCloneOf(bb, originalMethodFlowsGraph.getResult()) : null;
140+
returnFlow = originalMethodFlowsGraph.getReturnFlow() != null ? lookupCloneOf(bb, originalMethodFlowsGraph.getReturnFlow()) : null;
141141
instanceOfFlows = lookupClonesOf(bb, originalMethodFlowsGraph.instanceOfFlows);
142142
miscEntryFlows = lookupClonesOf(bb, originalMethodFlowsGraph.miscEntryFlows);
143143
invokeFlows = lookupClonesOf(bb, originalMethodFlowsGraph.invokeFlows);
@@ -321,8 +321,8 @@ private TypeFlow<?>[] doLinearizeGraph() {
321321
worklist.add(value);
322322
}
323323
}
324-
if (result != null) {
325-
worklist.add(result);
324+
if (returnFlow != null) {
325+
worklist.add(returnFlow);
326326
}
327327

328328
// temporary list in which the linearized graph is built
@@ -425,12 +425,12 @@ public void addMiscEntryFlow(TypeFlow<?> entryFlow) {
425425
miscEntryFlows.add(entryFlow);
426426
}
427427

428-
public void setResult(FormalReturnTypeFlow result) {
429-
this.result = result;
428+
public void setReturnFlow(FormalReturnTypeFlow returnFlow) {
429+
this.returnFlow = returnFlow;
430430
}
431431

432-
public FormalReturnTypeFlow getResult() {
433-
return this.result;
432+
public FormalReturnTypeFlow getReturnFlow() {
433+
return this.returnFlow;
434434
}
435435

436436
public EconomicMap<Object, InvokeTypeFlow> getInvokes() {

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodTypeFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public MethodFlowsGraph getFlows(AnalysisContext calleeContext) {
151151
}
152152

153153
public void setResult(FormalReturnTypeFlow result) {
154-
originalMethodFlows.setResult(result);
154+
originalMethodFlows.setReturnFlow(result);
155155
}
156156

157157
public void setParameter(int index, FormalParamTypeFlow parameter) {
@@ -243,7 +243,7 @@ public TypeState getParameterTypeState(PointsToAnalysis bb, int parameter) {
243243

244244
// original result
245245
protected FormalReturnTypeFlow getResultFlow() {
246-
return originalMethodFlows.getResult();
246+
return originalMethodFlows.getReturnFlow();
247247
}
248248

249249
public Iterable<InvokeTypeFlow> getInvokes() {

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/results/StaticAnalysisResultsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public StaticAnalysisResults makeOrApplyResults(AnalysisMethod method) {
9191
parameterTypeProfiles = paramProfiles.toArray(new JavaTypeProfile[paramProfiles.size()]);
9292
}
9393

94-
JavaTypeProfile resultTypeProfile = makeTypeProfile(methodFlow.foldTypeFlow(bb, originalFlows.getResult()));
94+
JavaTypeProfile resultTypeProfile = makeTypeProfile(methodFlow.foldTypeFlow(bb, originalFlows.getReturnFlow()));
9595

9696
ArrayList<BytecodeEntry> entries = new ArrayList<>(method.getCodeSize());
9797

0 commit comments

Comments
 (0)