Reapply "Simplify generated code for trivial bailout methods".
Review URL: https://chromiumcodereview.appspot.com//10533128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8642 260f80e4-7a28-3924-810f-c04153c831b5
Add test for buffered file input stream on dart:io File class.

BUG=
TEST=standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10544134

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8643 260f80e4-7a28-3924-810f-c04153c831b5
Clean up code generation of guards.
Review URL: https://chromiumcodereview.appspot.com//10545173

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8644 260f80e4-7a28-3924-810f-c04153c831b5
Enable GVN for all HFieldGet.

Mark all non-final HFieldGet as depending on something.

Next step: figure out why GVN does not use the value of a.x computed
before the conditional in the following example:

class A {
  int x;
  bool b;
  A(this.x, this.b);
}

main() {
  A a = new A(42, true);
  var x = a.x;
  if (a.b) x = a.x + a.x;
  return x;
}

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10548045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8645 260f80e4-7a28-3924-810f-c04153c831b5
Move frog/tests/{leg,leg_only,frog_native} to tests/compiler/. 

This may not be the final resting place for these tests, but I want 
to get them out of the frog directory because they really are very
valuable as tests for dart2js.
Review URL: https://chromiumcodereview.appspot.com//10536169

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8646 260f80e4-7a28-3924-810f-c04153c831b5
Prototype re-compiling methods in dart2js

This is a prototype with the ability for dart2js to retry the
compilation of a method after everything has been compiled
once. Information collected during the first compilation can then be
used when retrying the compilation.

During compilation information on whether setters are used on specific
fields is collected. When compilation is retried and there are no
setters for a field it is treated as if it was declared final.

As this is a prototype there are some issues we need to discuss, e.g.

* The two queues should probably be generalized some way - maybe with
  listeners on specific changes to the collected information

* Throwing Pass2BailoutException when retrying compilation is a bit of
  a hack. We should probably not try to retry something we can't.

* Where to store the imformation collected during compilation

This is one way of improving Delta Blue with 25-30%.

R=ahe@google.com, ngeoffray@google.com, kasperl@google.com, ager@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10537025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8647 260f80e4-7a28-3924-810f-c04153c831b5
Fix flaky test runtime/vm/heap_profiler_test.cc

BUG=3634
TEST=vm/heap_profiler_test

Review URL: https://chromiumcodereview.appspot.com//10534158

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8648 260f80e4-7a28-3924-810f-c04153c831b5
Close a _FileInputStream only immediately before onClosed is called, so .closed returns false before that.

BUG=
TEST=standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10536168

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8649 260f80e4-7a28-3924-810f-c04153c831b5
Fix analysis server caching edge case http://code.google.com/p/dart/issues/detail?id=3423
Review URL: https://chromiumcodereview.appspot.com//10537122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8650 260f80e4-7a28-3924-810f-c04153c831b5
Revert "Enable GVN for all HFieldGet."

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10535163

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8651 260f80e4-7a28-3924-810f-c04153c831b5
Fix issue http://code.google.com/p/dart/issues/detail?id=3627 do not generate a 'var' for variables that have the same name as parameters.
Review URL: https://chromiumcodereview.appspot.com//10541164

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8652 260f80e4-7a28-3924-810f-c04153c831b5
Only do the declaring of parameters in a non-bailout version. The bailout version has different set of parameters, that we need to deal with differently.
Review URL: https://chromiumcodereview.appspot.com//10545176

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8654 260f80e4-7a28-3924-810f-c04153c831b5
Reapply "Refactor Date implementation in VM."

This reapplies fixed versions of commit 7542 and commit 8544.
Original review URLs:
https://chromiumcodereview.appspot.com//10533068
https://chromiumcodereview.appspot.com//10544109

Review URL: https://chromiumcodereview.appspot.com//10534114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8655 260f80e4-7a28-3924-810f-c04153c831b5
Address review comments from https://chromiumcodereview.appspot.com/10542073/

Review URL: https://chromiumcodereview.appspot.com//10537129

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8656 260f80e4-7a28-3924-810f-c04153c831b5
Give lib/dartdoc its own copy of frog.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8657 260f80e4-7a28-3924-810f-c04153c831b5
Properly parse > in end of types.

R=ahe@google.com,smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10540073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8658 260f80e4-7a28-3924-810f-c04153c831b5
Remove string constants from Types class.

Review URL: https://chromiumcodereview.appspot.com//10533126

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8660 260f80e4-7a28-3924-810f-c04153c831b5
Fix for issue 2155
Review URL: https://chromiumcodereview.appspot.com//10534145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8661 260f80e4-7a28-3924-810f-c04153c831b5
Update status file for language/prefix_core_test.

Review URL: https://chromiumcodereview.appspot.com//10548048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8662 260f80e4-7a28-3924-810f-c04153c831b5
Fix a couple of NPE's discovered while running Editor
Review URL: https://chromiumcodereview.appspot.com//10542146

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