Mercurial > hg > truffle
comparison src/share/vm/adlc/output_h.cpp @ 628:7bb995fbd3c0
Merge
author | trims |
---|---|
date | Thu, 12 Mar 2009 18:16:36 -0700 |
parents | 98cb887364d3 |
children | bf3489cc0aa0 |
comparison
equal
deleted
inserted
replaced
580:ce2272390558 | 628:7bb995fbd3c0 |
---|---|
1 /* | 1 /* |
2 * Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
572 fprintf(fp, "void %sNode::format(PhaseRegAlloc *ra, outputStream *st) const {\n", inst._ident); | 572 fprintf(fp, "void %sNode::format(PhaseRegAlloc *ra, outputStream *st) const {\n", inst._ident); |
573 | 573 |
574 // Generate the user-defined portion of the format | 574 // Generate the user-defined portion of the format |
575 if( inst._format ) { | 575 if( inst._format ) { |
576 // If there are replacement variables, | 576 // If there are replacement variables, |
577 // Generate index values needed for determing the operand position | 577 // Generate index values needed for determining the operand position |
578 if( inst._format->_rep_vars.count() ) | 578 if( inst._format->_rep_vars.count() ) |
579 inst.index_temps(fp, globals); | 579 inst.index_temps(fp, globals); |
580 | 580 |
581 // Build the format from the entries in strings and rep_vars | 581 // Build the format from the entries in strings and rep_vars |
582 const char *string = NULL; | 582 const char *string = NULL; |
1830 case Form::idealI: | 1830 case Form::idealI: |
1831 fprintf(fp," return TypeInt::make(opnd_array(1)->constant());\n"); | 1831 fprintf(fp," return TypeInt::make(opnd_array(1)->constant());\n"); |
1832 break; | 1832 break; |
1833 case Form::idealP: | 1833 case Form::idealP: |
1834 case Form::idealN: | 1834 case Form::idealN: |
1835 fprintf(fp," return opnd_array(1)->type();\n",result); | 1835 fprintf(fp," return opnd_array(1)->type();\n"); |
1836 break; | 1836 break; |
1837 case Form::idealD: | 1837 case Form::idealD: |
1838 fprintf(fp," return TypeD::make(opnd_array(1)->constantD());\n"); | 1838 fprintf(fp," return TypeD::make(opnd_array(1)->constantD());\n"); |
1839 break; | 1839 break; |
1840 case Form::idealF: | 1840 case Form::idealF: |