commit | 9e954c9c3e437de05bce180b41e5b35b57cc237b | [log] [tgz] |
---|---|---|
author | sra@google.com <sra@google.com> | Fri May 15 22:36:15 2015 |
committer | sra@google.com <sra@google.com> | Fri May 15 22:36:15 2015 |
tree | 45523fd31ea24c2310b777db241eeedd7a79bf66 | |
parent | 3be696217f984d81b376b083797837d9d67961bd [diff] |
Optimize 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 Review URL: https://codereview.chromium.org//1106443003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@45829 260f80e4-7a28-3924-810f-c04153c831b5