Changeset 4ee36bf0 for src/ResolvExpr
- Timestamp:
- Nov 8, 2017, 2:50:35 PM (8 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 049ead9
- Parents:
- 136ccd7 (diff), e35f30a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/ResolvExpr
- Files:
-
- 2 edited
-
AlternativeFinder.cc (modified) (4 diffs)
-
CurrentObject.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r136ccd7 r4ee36bf0 312 312 Cost convCost = conversionCost( actualType, formalType, indexer, env ); 313 313 PRINT( 314 std::cerr << std::endl << "cost is " << convCost << std::endl;314 std::cerr << std::endl << "cost is " << convCost << std::endl; 315 315 ) 316 316 if ( convCost == Cost::infinity ) { … … 318 318 } 319 319 convCost.incPoly( polyCost( formalType, env, indexer ) + polyCost( actualType, env, indexer ) ); 320 PRINT( 321 std::cerr << "cost with polycost is " << convCost << std::endl; 322 ) 320 323 return convCost; 321 324 } … … 370 373 if ( function->get_isVarArgs() ) { 371 374 convCost.incUnsafe(); 375 PRINT( std::cerr << "end of formals with varargs function: inc unsafe: " << convCost << std::endl; ; ) 372 376 // convert reference-typed expressions to value-typed expressions 373 377 referenceToRvalueConversion( *actualExpr ); … … 378 382 } 379 383 Type * formalType = (*formal)->get_type(); 380 PRINT(381 std::cerr << std::endl << "converting ";382 actualType->print( std::cerr, 8 );383 std::cerr << std::endl << " to ";384 formalType->print( std::cerr, 8 );385 std::cerr << std::endl << "environment is: ";386 alt.env.print( std::cerr, 8 );387 std::cerr << std::endl;388 )389 384 convCost += computeExpressionConversionCost( *actualExpr, formalType, indexer, alt.env ); 390 385 ++formal; // can't be in for-loop update because of the continue -
src/ResolvExpr/CurrentObject.cc
r136ccd7 r4ee36bf0 260 260 261 261 AggregateIterator( const std::string & kind, const std::string & name, Type * inst, const MemberList & members ) : kind( kind ), name( name ), inst( inst ), members( members ), curMember( members.begin() ), sub( makeGenericSubstitution( inst ) ) { 262 PRINT( std::cerr << "Creating " << kind << "(" << name << ")"; ) 262 263 init(); 263 264 }
Note:
See TracChangeset
for help on using the changeset viewer.