@@ -113,12 +113,11 @@ public abstract class CreateArgumentsNode extends PNodeWithContext {
113
113
Object [] doMethodCached (@ SuppressWarnings ("unused" ) PMethodBase method , Object [] userArguments , PKeyword [] keywords ,
114
114
@ Bind ("this" ) Node inliningTarget ,
115
115
@ Cached CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
116
- @ Cached InlinedBranchProfile wasFirst ,
117
116
@ Cached (value = "method" , weak = true ) PMethodBase cachedMethod ) {
118
117
119
118
CompilerAsserts .partialEvaluationConstant (getFunction (cachedMethod ));
120
119
// Following getters should fold since getFunction(cachedMethod) is constant
121
- Signature signature = GetSignatureNode .getMethodSignatureSingleContext (cachedMethod , inliningTarget , wasFirst );
120
+ Signature signature = GetSignatureNode .getMethodSignatureSingleContext (cachedMethod , inliningTarget );
122
121
Object [] defaults = GetDefaultsNode .getMethodDefaults (cachedMethod );
123
122
PKeyword [] kwdefaults = GetKeywordDefaultsNode .getMethodKeywords (cachedMethod );
124
123
Object self = cachedMethod .getSelf ();
@@ -133,12 +132,11 @@ Object[] doMethodCached(@SuppressWarnings("unused") PMethodBase method, Object[]
133
132
Object [] doMethodFunctionAndSelfCached (PMethodBase method , Object [] userArguments , PKeyword [] keywords ,
134
133
@ Bind ("this" ) Node inliningTarget ,
135
134
@ Cached CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
136
- @ Cached InlinedBranchProfile wasFirst ,
137
135
@ Cached (value = "getFunction(method)" , weak = true ) @ SuppressWarnings ("unused" ) Object cachedFunction ,
138
136
@ Cached (value = "method.getSelf()" , weak = true ) Object cachedSelf ,
139
137
@ Cached (value = "getClassObject(method)" , weak = true ) Object cachedClassObject ) {
140
138
// Following getters should fold since getFunction(cachedMethod) is constant
141
- Signature signature = GetSignatureNode .getFunctionSignatureSingleContext (inliningTarget , wasFirst , cachedFunction );
139
+ Signature signature = GetSignatureNode .getFunctionSignatureSingleContext (inliningTarget , cachedFunction );
142
140
Object [] defaults = GetDefaultsNode .getFunctionDefaults (cachedFunction );
143
141
PKeyword [] kwdefaults = GetKeywordDefaultsNode .getFunctionKeywords (cachedFunction );
144
142
return createAndCheckArgumentsNode .execute (inliningTarget , method , userArguments , keywords , signature , cachedSelf , cachedClassObject , defaults , kwdefaults , isMethodCall (cachedSelf ));
@@ -147,11 +145,10 @@ Object[] doMethodFunctionAndSelfCached(PMethodBase method, Object[] userArgument
147
145
@ Specialization (guards = {"isSingleContext()" , "getFunction(method) == cachedFunction" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodFunctionAndSelfCached" )
148
146
Object [] doMethodFunctionCached (PMethodBase method , Object [] userArguments , PKeyword [] keywords ,
149
147
@ Bind ("this" ) Node inliningTarget ,
150
- @ Cached InlinedBranchProfile wasFirst ,
151
148
@ Cached CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
152
149
@ Cached (value = "getFunction(method)" , weak = true ) @ SuppressWarnings ("unused" ) Object cachedFunction ) {
153
150
// Following getters should fold since getFunction(cachedMethod) is constant
154
- Signature signature = GetSignatureNode .getFunctionSignatureSingleContext (inliningTarget , wasFirst , cachedFunction );
151
+ Signature signature = GetSignatureNode .getFunctionSignatureSingleContext (inliningTarget , cachedFunction );
155
152
Object [] defaults = GetDefaultsNode .getFunctionDefaults (cachedFunction );
156
153
PKeyword [] kwdefaults = GetKeywordDefaultsNode .getFunctionKeywords (cachedFunction );
157
154
Object self = method .getSelf ();
@@ -163,9 +160,8 @@ Object[] doMethodFunctionCached(PMethodBase method, Object[] userArguments, PKey
163
160
Object [] doFunctionCached (PFunction callable , Object [] userArguments , PKeyword [] keywords ,
164
161
@ Bind ("this" ) Node inliningTarget ,
165
162
@ Cached CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
166
- @ Cached InlinedBranchProfile firstExecution ,
167
163
@ Cached (value = "callable" , weak = true ) @ SuppressWarnings ("unused" ) PFunction cachedCallable ) {
168
- Signature signature = CodeNodes .GetCodeSignatureNode .getInSingleContextMode (inliningTarget , cachedCallable , firstExecution );
164
+ Signature signature = CodeNodes .GetCodeSignatureNode .getInSingleContextMode (inliningTarget , cachedCallable );
169
165
Object [] defaults = cachedCallable .getDefaults ();
170
166
PKeyword [] kwdefaults = cachedCallable .getKwDefaults ();
171
167
return createAndCheckArgumentsNode .execute (inliningTarget , callable , userArguments , keywords , signature , null , null , defaults , kwdefaults , false );
0 commit comments