Mercurial > projects > ldc
comparison dmd/mtype.c @ 930:7985bb036db4
Follow the D ABI and pass the last arg in a register if it is a struct that fits.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Feb 2009 21:46:46 +0100 |
parents | 29c0d1194033 |
children | a904cc9bc064 |
comparison
equal
deleted
inserted
replaced
922:0749c0757a43 | 930:7985bb036db4 |
---|---|
2689 this->linkage = linkage; | 2689 this->linkage = linkage; |
2690 this->inuse = 0; | 2690 this->inuse = 0; |
2691 this->retInPtr = false; | 2691 this->retInPtr = false; |
2692 this->usesThis = false; | 2692 this->usesThis = false; |
2693 this->usesNest = false; | 2693 this->usesNest = false; |
2694 this->structInregArg = false; | |
2694 this->retAttrs = 0; | 2695 this->retAttrs = 0; |
2695 this->thisAttrs = 0; | 2696 this->thisAttrs = 0; |
2696 this->reverseParams = false; | 2697 this->reverseParams = false; |
2697 this->reverseIndex = 0; | 2698 this->firstRealArg = 0; |
2698 } | 2699 } |
2699 | 2700 |
2700 Type *TypeFunction::syntaxCopy() | 2701 Type *TypeFunction::syntaxCopy() |
2701 { | 2702 { |
2702 Type *treturn = next ? next->syntaxCopy() : NULL; | 2703 Type *treturn = next ? next->syntaxCopy() : NULL; |
2706 t->usesThis = usesThis; | 2707 t->usesThis = usesThis; |
2707 t->usesNest = usesNest; | 2708 t->usesNest = usesNest; |
2708 t->retAttrs = retAttrs; | 2709 t->retAttrs = retAttrs; |
2709 t->thisAttrs = thisAttrs; | 2710 t->thisAttrs = thisAttrs; |
2710 t->reverseParams = reverseParams; | 2711 t->reverseParams = reverseParams; |
2711 t->reverseIndex = reverseIndex; | 2712 t->firstRealArg = firstRealArg; |
2712 return t; | 2713 return t; |
2713 } | 2714 } |
2714 | 2715 |
2715 /******************************* | 2716 /******************************* |
2716 * Returns: | 2717 * Returns: |