DescriptionOptimize DateTime properties
Several small pieces fit together to improve calendar arithmetic code in a customer's app.
1. Mark DateTime primitives that return small integers as returning uint31.
2. uint31 + uint31 -> uint32 in type inference.
3. uint32 / N can be generated as (uint32 / N) | 0 when N >= 2.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45621
Reverted: https://code.google.com/p/dart/source/detail?r=45625
Committed: https://code.google.com/p/dart/source/detail?r=45829
Patch Set 1 : #Patch Set 2 : revert #Patch Set 3 : basis for redo #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : rebase #
Messages
Total messages: 7 (2 generated)
|