Skip to content

Commit d0a75b1

Browse files
committed
fix style problems
1 parent 943065c commit d0a75b1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/special/CallBinaryMethodNode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,29 +194,29 @@ Object callObject(@SuppressWarnings("unused") PBuiltinFunction func, Object arg1
194194
}
195195

196196
@Specialization(guards = {"func == cachedFunc", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
197-
Object callObject(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
197+
Object callMethodSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
198198
@SuppressWarnings("unused") @Cached("func") PBuiltinMethod cachedFunc,
199199
@Cached("getBinary(func.getFunction())") PythonBinaryBuiltinNode builtinNode) {
200200
return builtinNode.execute(arg1, arg2);
201201
}
202202

203203
@Specialization(guards = {"func == cachedFunc", "builtinNode != null", "isFixed"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
204-
Object callObject(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
204+
Object callSelfMethodSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
205205
@SuppressWarnings("unused") @Cached("func") PBuiltinMethod cachedFunc,
206206
@SuppressWarnings("unused") @Cached("func.getArity().takesFixedNumOfPositionalArgs()") boolean isFixed,
207207
@Cached("getTernary(func.getFunction())") PythonTernaryBuiltinNode builtinNode) {
208208
return builtinNode.execute(func.getSelf(), arg1, arg2);
209209
}
210210

211211
@Specialization(guards = {"func.getCallTarget() == ct", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()")
212-
Object callObject(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
212+
Object callMethod(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
213213
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
214214
@Cached("getBinary(func.getFunction())") PythonBinaryBuiltinNode builtinNode) {
215215
return builtinNode.execute(arg1, arg2);
216216
}
217217

218218
@Specialization(guards = {"func.getCallTarget() == ct", "builtinNode != null", "isFixed"}, limit = "getCallSiteInlineCacheMaxDepth()")
219-
Object callObject(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
219+
Object callSelfMethod(@SuppressWarnings("unused") PBuiltinMethod func, Object arg1, Object arg2,
220220
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
221221
@SuppressWarnings("unused") @Cached("func.getArity().takesFixedNumOfPositionalArgs()") boolean isFixed,
222222
@Cached("getTernary(func.getFunction())") PythonTernaryBuiltinNode builtinNode) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/special/CallUnaryMethodNode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,29 +155,29 @@ Object call(@SuppressWarnings("unused") PBuiltinFunction func, Object receiver,
155155
}
156156

157157
@Specialization(guards = {"func == cachedFunc", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
158-
Object callObjectSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object receiver,
158+
Object callMethodSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object receiver,
159159
@SuppressWarnings("unused") @Cached("func") PBuiltinMethod cachedFunc,
160160
@Cached("getUnary(func.getFunction())") PythonUnaryBuiltinNode builtinNode) {
161161
return builtinNode.execute(receiver);
162162
}
163163

164164
@Specialization(guards = {"func == cachedFunc", "builtinNode != null", "isFixed"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
165-
Object callObjectSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object arg,
165+
Object callSelfMethodSingleContext(@SuppressWarnings("unused") PBuiltinMethod func, Object arg,
166166
@SuppressWarnings("unused") @Cached("func") PBuiltinMethod cachedFunc,
167167
@SuppressWarnings("unused") @Cached("func.getArity().takesFixedNumOfPositionalArgs()") boolean isFixed,
168168
@Cached("getBinary(func.getFunction())") PythonBinaryBuiltinNode builtinNode) {
169169
return builtinNode.execute(func.getSelf(), arg);
170170
}
171171

172172
@Specialization(guards = {"func.getCallTarget() == ct", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()")
173-
Object call(@SuppressWarnings("unused") PBuiltinMethod func, Object receiver,
173+
Object callMethod(@SuppressWarnings("unused") PBuiltinMethod func, Object receiver,
174174
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
175175
@Cached("getUnary(func.getFunction())") PythonUnaryBuiltinNode builtinNode) {
176176
return builtinNode.execute(receiver);
177177
}
178178

179179
@Specialization(guards = {"func.getCallTarget() == ct", "builtinNode != null", "isFixed"}, limit = "getCallSiteInlineCacheMaxDepth()")
180-
Object call(@SuppressWarnings("unused") PBuiltinMethod func, Object arg,
180+
Object callSelfMethod(@SuppressWarnings("unused") PBuiltinMethod func, Object arg,
181181
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
182182
@SuppressWarnings("unused") @Cached("func.getArity().takesFixedNumOfPositionalArgs()") boolean isFixed,
183183
@Cached("getBinary(func.getFunction())") PythonBinaryBuiltinNode builtinNode) {

0 commit comments

Comments
 (0)