Support enums in dart2js.

- still missing warnings/errors.

BUG=https://code.google.com/p/dart/issues/detail?id=21417
R=floitsch@google.com

Review URL: https://codereview.chromium.org//707463003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41654 260f80e4-7a28-3924-810f-c04153c831b5
Fix try/poi/serialize_test after adding class to dart:core.

Review URL: https://codereview.chromium.org//711303002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41655 260f80e4-7a28-3924-810f-c04153c831b5
Change Expect.stringEquals to give more information about the difference, so it's possible to find it in a long string.

R=ricow@google.com

Review URL: https://codereview.chromium.org//710283002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41656 260f80e4-7a28-3924-810f-c04153c831b5
dart2js: Don't emit additional precompiled file.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//700123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41657 260f80e4-7a28-3924-810f-c04153c831b5
Working insertion of hash values; added a few labels in spec

Hash values are now computed for each "paragraph" starting with \LMHash
(which includes subsequent grammar, dartCode, itemize blocks, but stops
at \section-like commands).  Now addlatexhash.dart expects three arguments
(first the source latex file, then the destination simplified and
hash-value-annotated latex source file, and finally a file name used to
create the list of hash values emitted).  Adjusted testing accordingly.
Added a test for robustness of the hash value generation: It is checked
that lots of different "unimportant" changes make no difference for the
generated hash values (e.g., we can add/remove comments, change white
space, add \commentary{..} etc. without changing the hash values).

In order to ensure that all "structure" commands in the spec have a label,
I added an \LMLabel{..} a handful of places, following the style which is
used throughout the spec.

In dart.sty, the \renewcommand that made \LMHash{} produce a fixed
hash value has been removed such that the actual hash values are now
inserted into the generated spec PDF/DVI file.  Tests have been adjusted
to handle this difference between the spec with and without hash values
when comparing the two.

R=gbracha@google.com, lrn@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//652993005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41658 260f80e4-7a28-3924-810f-c04153c831b5
Revert "dart2js: Don't emit additional precompiled file."

This reverts commit r41657.

Review URL: https://codereview.chromium.org//689633007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41659 260f80e4-7a28-3924-810f-c04153c831b5