aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/CompilerCodegen.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2009-09-22 14:38:18 -0700
committerDan Egnor <egnor@google.com>2009-11-17 14:42:30 -0800
commit77af81358320e369dd3aa0dcc912105d1769680e (patch)
tree48b807c7dc7ec7c3726410c3c46232fdd596e9de /vm/compiler/codegen/CompilerCodegen.h
parent0ee370b97b9ee7f2f321d9d04bd0976362b6f6f0 (diff)
Fix Formatter.format's handling of Formattable.
This doesn't make much difference to performance, but it is slightly faster and I think it reads better too. Proof of the latter is the fact that the rewritten form accidentally fixed bug 1767: the old code was storing up literal text until after handling the next format specifier, which is wrong if the format specifier has side effects caused by the use of Formattable. (I don't plan on doing any more on the performance bug for now, though I note that %g allocates and manipulates BigDecimal instances, which would be worth looking at when we get round to the bug that causes it to fail a harmony test.) Bug: 1476, 1767
Diffstat (limited to 'vm/compiler/codegen/CompilerCodegen.h')
0 files changed, 0 insertions, 0 deletions