@@ -138,7 +138,7 @@ class InstanceMethodType : public ValuedCompilerType<RawInstanceMethod*> {
138138
139139 CompilerVariable* call (IREmitter& emitter, const OpInfo& info, ValuedCompilerVariable<RawInstanceMethod*>* var,
140140 ArgPassSpec argspec, const std::vector<CompilerVariable*>& args,
141- BoxedTuple * keyword_names) override {
141+ const std::vector<BoxedString*> * keyword_names) override {
142142 std::vector<CompilerVariable*> new_args;
143143 new_args.push_back (var->getValue ()->obj );
144144 new_args.insert (new_args.end (), args.begin (), args.end ());
@@ -225,10 +225,11 @@ class UnknownType : public ConcreteCompilerType {
225225 CompilerVariable* getattr (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, BoxedString* attr,
226226 bool cls_only) override ;
227227 CompilerVariable* call (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, ArgPassSpec argspec,
228- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override ;
228+ const std::vector<CompilerVariable*>& args,
229+ const std::vector<BoxedString*>* keyword_names) override ;
229230 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, BoxedString* attr,
230231 CallattrFlags flags, const std::vector<CompilerVariable*>& args,
231- BoxedTuple * keyword_names) override ;
232+ const std::vector<BoxedString*> * keyword_names) override ;
232233 ConcreteCompilerVariable* nonzero (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var) override ;
233234 ConcreteCompilerVariable* unaryop (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var,
234235 AST_TYPE::AST_TYPE op_type) override ;
@@ -592,11 +593,10 @@ CompilerVariable* UnknownType::getattr(IREmitter& emitter, const OpInfo& info, C
592593 return new ConcreteCompilerVariable (UNKNOWN, rtn_val);
593594}
594595
595- static ConcreteCompilerVariable* _call (IREmitter& emitter, const OpInfo& info, llvm::Value* func,
596- ExceptionStyle target_exception_style, void * func_addr,
597- const std::vector<llvm::Value*>& other_args, ArgPassSpec argspec,
598- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names,
599- ConcreteCompilerType* rtn_type, bool nullable_return = false ) {
596+ static ConcreteCompilerVariable*
597+ _call (IREmitter& emitter, const OpInfo& info, llvm::Value* func, ExceptionStyle target_exception_style, void * func_addr,
598+ const std::vector<llvm::Value*>& other_args, ArgPassSpec argspec, const std::vector<CompilerVariable*>& args,
599+ const std::vector<BoxedString*>* keyword_names, ConcreteCompilerType* rtn_type, bool nullable_return = false ) {
600600 bool pass_keyword_names = (keyword_names != nullptr );
601601 assert (pass_keyword_names == (argspec.num_keywords > 0 ));
602602
@@ -718,7 +718,7 @@ static ConcreteCompilerVariable* _call(IREmitter& emitter, const OpInfo& info, l
718718
719719CompilerVariable* UnknownType::call (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var,
720720 ArgPassSpec argspec, const std::vector<CompilerVariable*>& args,
721- BoxedTuple * keyword_names) {
721+ const std::vector<BoxedString*> * keyword_names) {
722722 bool pass_keywords = (argspec.num_keywords != 0 );
723723 int npassed_args = argspec.totalPassed ();
724724
@@ -750,7 +750,8 @@ CompilerVariable* UnknownType::call(IREmitter& emitter, const OpInfo& info, Conc
750750
751751CompilerVariable* UnknownType::callattr (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var,
752752 BoxedString* attr, CallattrFlags flags,
753- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) {
753+ const std::vector<CompilerVariable*>& args,
754+ const std::vector<BoxedString*>* keyword_names) {
754755 bool pass_keywords = (flags.argspec .num_keywords != 0 );
755756 int npassed_args = flags.argspec .totalPassed ();
756757
@@ -1162,7 +1163,8 @@ class IntType : public UnboxedType<llvm::Value*, IntType> {
11621163 }
11631164
11641165 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, VAR* var, BoxedString* attr, CallattrFlags flags,
1165- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
1166+ const std::vector<CompilerVariable*>& args,
1167+ const std::vector<BoxedString*>* keyword_names) override {
11661168 ConcreteCompilerVariable* converted = var->makeConverted (emitter, BOXED_INT);
11671169 CompilerVariable* rtn = converted->callattr (emitter, info, attr, flags, args, keyword_names);
11681170 return rtn;
@@ -1449,7 +1451,8 @@ class FloatType : public UnboxedType<llvm::Value*, FloatType> {
14491451 }
14501452
14511453 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, VAR* var, BoxedString* attr, CallattrFlags flags,
1452- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
1454+ const std::vector<CompilerVariable*>& args,
1455+ const std::vector<BoxedString*>* keyword_names) override {
14531456 ConcreteCompilerVariable* converted = var->makeConverted (emitter, BOXED_FLOAT);
14541457 CompilerVariable* rtn = converted->callattr (emitter, info, attr, flags, args, keyword_names);
14551458 return rtn;
@@ -1836,16 +1839,18 @@ class NormalObjectType : public ConcreteCompilerType {
18361839 }
18371840
18381841 CompilerVariable* call (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, ArgPassSpec argspec,
1839- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
1842+ const std::vector<CompilerVariable*>& args,
1843+ const std::vector<BoxedString*>* keyword_names) override {
18401844 ConcreteCompilerVariable* converted = var->makeConverted (emitter, UNKNOWN);
18411845 CompilerVariable* rtn = converted->call (emitter, info, argspec, args, keyword_names);
18421846 return rtn;
18431847 }
18441848
18451849 CompilerVariable* tryCallattrConstant (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var,
18461850 BoxedString* attr, bool clsonly, ArgPassSpec argspec,
1847- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names,
1848- bool * no_attribute = NULL , ExceptionStyle exception_style = CXX) {
1851+ const std::vector<CompilerVariable*>& args,
1852+ const std::vector<BoxedString*>* keyword_names, bool * no_attribute = NULL ,
1853+ ExceptionStyle exception_style = CXX) {
18491854 if (!canStaticallyResolveGetattrs ())
18501855 return NULL ;
18511856
@@ -1997,7 +2002,7 @@ class NormalObjectType : public ConcreteCompilerType {
19972002
19982003 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, BoxedString* attr,
19992004 CallattrFlags flags, const std::vector<CompilerVariable*>& args,
2000- BoxedTuple * keyword_names) override {
2005+ const std::vector<BoxedString*> * keyword_names) override {
20012006 ExceptionStyle exception_style = info.preferredExceptionStyle ();
20022007
20032008 bool no_attribute = false ;
@@ -2309,7 +2314,8 @@ class StrConstantType : public ValuedCompilerType<BoxedString*> {
23092314 }
23102315
23112316 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, VAR* var, BoxedString* attr, CallattrFlags flags,
2312- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
2317+ const std::vector<CompilerVariable*>& args,
2318+ const std::vector<BoxedString*>* keyword_names) override {
23132319 ConcreteCompilerVariable* converted = var->makeConverted (emitter, STR);
23142320 CompilerVariable* rtn = converted->callattr (emitter, info, attr, flags, args, keyword_names);
23152321 return rtn;
@@ -2428,7 +2434,7 @@ class BoolType : public ConcreteCompilerType {
24282434
24292435 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, ConcreteCompilerVariable* var, BoxedString* attr,
24302436 CallattrFlags flags, const std::vector<CompilerVariable*>& args,
2431- BoxedTuple * keyword_names) override {
2437+ const std::vector<BoxedString*> * keyword_names) override {
24322438 ConcreteCompilerVariable* converted = var->makeConverted (emitter, BOXED_BOOL);
24332439 CompilerVariable* rtn = converted->callattr (emitter, info, attr, flags, args, keyword_names);
24342440 return rtn;
@@ -2664,7 +2670,8 @@ class TupleType : public UnboxedType<const std::vector<CompilerVariable*>, Tuple
26642670 }
26652671
26662672 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, VAR* var, BoxedString* attr, CallattrFlags flags,
2667- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
2673+ const std::vector<CompilerVariable*>& args,
2674+ const std::vector<BoxedString*>* keyword_names) override {
26682675 return makeConverted (emitter, var, getConcreteType ())
26692676 ->callattr (emitter, info, attr, flags, args, keyword_names);
26702677 }
@@ -2805,7 +2812,8 @@ class UndefType : public ConcreteCompilerType {
28052812 }
28062813
28072814 CompilerVariable* call (IREmitter& emitter, const OpInfo& info, VAR* var, ArgPassSpec argspec,
2808- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
2815+ const std::vector<CompilerVariable*>& args,
2816+ const std::vector<BoxedString*>* keyword_names) override {
28092817 return undefVariable ();
28102818 }
28112819 CompilerVariable* dup (VAR* v, DupCache& cache) override {
@@ -2826,7 +2834,8 @@ class UndefType : public ConcreteCompilerType {
28262834 }
28272835
28282836 CompilerVariable* callattr (IREmitter& emitter, const OpInfo& info, VAR* var, BoxedString* attr, CallattrFlags flags,
2829- const std::vector<CompilerVariable*>& args, BoxedTuple* keyword_names) override {
2837+ const std::vector<CompilerVariable*>& args,
2838+ const std::vector<BoxedString*>* keyword_names) override {
28302839 return undefVariable ();
28312840 }
28322841
0 commit comments