Remove saving/restoring of the context at function entry.

This is not needed anymore after I changed the current context
to always reside in a local variable.

Further simplifications and cleanup in the debugger.

This also fixes a bad memory retention problem with
non-capturing closures.

BUG=dartbug.com/18886
TEST=tests/language/vm/closure_memory_retention_test.dart
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41433 260f80e4-7a28-3924-810f-c04153c831b5
dart2js: Revert r36565 (Work-around for memory leak).

After fixing VM bug dartbug.com/18886 this work-around is not
needed anymore.

I tested dart2js tests in batch mode using the following command.

tools/test.py -mrelease -aia32 -cdart2js -rd8 --dart2js-batch

and it works fine.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41434 260f80e4-7a28-3924-810f-c04153c831b5
Move continueWithExpression to IrBuilder.

+ cleanup of invocations
+ prepare analyzer2dart support for type operators

R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41435 260f80e4-7a28-3924-810f-c04153c831b5
Make stdout/stderr async

This makes stdout.write and stderr.write async.

This effectively reverts https://code.google.com/p/dart/source/detail?r=33645

Reapplies r41350 after the dart2js batch-runner have been changed to handle
async stdout/stderr.

R=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41436 260f80e4-7a28-3924-810f-c04153c831b5
IR refactoring: consolidate all boxing and unboxing instructions.

BUG=
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41437 260f80e4-7a28-3924-810f-c04153c831b5
Support is/as expressions in analyzer2dart.

BUG=
R=paulberry@google.com, sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41438 260f80e4-7a28-3924-810f-c04153c831b5
Fix logging API. This should fix the exception I'm seeing. I'll clean up uses of the deprecated API in a separate CL.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41439 260f80e4-7a28-3924-810f-c04153c831b5
Issue 21432. Request application file when establish remote debugger connection.

So, we can use this resource to find pubspec, resolve files to URIs and vice versa.

R=devoncarew@google.com, paulberry@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=21432

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41440 260f80e4-7a28-3924-810f-c04153c831b5
guard against NPE in new editor model

BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41441 260f80e4-7a28-3924-810f-c04153c831b5
move import combinator suggestions into a separate computer

BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41442 260f80e4-7a28-3924-810f-c04153c831b5
Clean up logging uses

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41443 260f80e4-7a28-3924-810f-c04153c831b5
Defensively create the new project directory in the new project wizard.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41444 260f80e4-7a28-3924-810f-c04153c831b5
Support for 'Add Type Annotation' when selection if right after ';'.

R=brianwilkerson@google.com, danrubel@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41445 260f80e4-7a28-3924-810f-c04153c831b5
Fix for 'Replace if-else with conditional expression' in case of mixed expression/return branches.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41446 260f80e4-7a28-3924-810f-c04153c831b5
Clarify comment explaining assert in Function::SetParameterTypeAt.

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41447 260f80e4-7a28-3924-810f-c04153c831b5
Remove "-dev" to publish args package.

R=nweiz@google.com, paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41448 260f80e4-7a28-3924-810f-c04153c831b5
Don't report problems with setting a breakpoint.

We try to set all breakpoints now, and we don't know to spam user with these problems.

R=devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41449 260f80e4-7a28-3924-810f-c04153c831b5
Fix for an error in the error handler.

We pass exception as String message.

We would have caught it if we had run the server in the checked mode.
Instead it failed at the JSON serialization stage.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41450 260f80e4-7a28-3924-810f-c04153c831b5
Remove unnecessary cast in Quick Assist.

Sorry, missed it in the previous CL.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@41451 260f80e4-7a28-3924-810f-c04153c831b5
Optimize LineInfo.getLocation().

Three simple optimizations:

1. Do a binary search through _lineStarts to find the line instead of linear.
2. Store the last result and see if the offset starts there or later. If so, skip leading lines when searching.
3. See if the current offset is on the same line as the last result and exit early if so.

On my benchmark test for the formatter, this reduced it from 13.23ms to 7.57ms.

R=brianwilkerson@google.com

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

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