aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenCommon.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-01-05 11:24:56 -0800
committerElliott Hughes <enh@google.com>2010-01-05 13:54:14 -0800
commitc9bb8b9827b5731d51fb9d99695256a17359af3f (patch)
tree448dce9102260f650a25009ce544c1fff13e9178 /vm/compiler/codegen/arm/CodegenCommon.c
parent81315cc4a0209073e0ae4946a6400b2cb571e616 (diff)
Last bunch of NumberFormat speedups.
Don't mess around with setCurrency in DecimalFormat.copySymbols when we're going to override any effect that call will have had in the next few lines: we always call setCurrencySymbol and setInternationalCurrencySymbol, so setCurrency is just wasting time. Replaces the NativeDecimalFormat.UNumberFormatSymbol enum -- which was only used for getting ints to pass to native code, using Enum.ordinal -- with ints. Adds a constructor to the java.text DecimalFormat so we can avoid cloning the DecimalFormatSymbols object we create for its private use. This is another 10% shaved off. I've also removed an unused local from the icu4jni DecimalFormat, so I can remove a then-unused getLocale method from the ICU DecimalFormatSymbols. I've rewritten the icu4jni DecimalFormatSymbols.clone to remove the scary constructor that took an arbitrary int and treated it as a uintptr_t when talking to native code.
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenCommon.c')
0 files changed, 0 insertions, 0 deletions