dart-sdk/runtime
hausner@google.com 9a54ccd905 Fix debugging of async code
Make sure the debugger finds the closure function containing the body
of async functions, but not the synthetic function that generates the
future.

Change the way the debugger sets one-time breakpoints. Instead of
compiling the function and instrumenting all safe-points, set a
breakpoint marked as “one-shot” at the beginning of the function
and wait until the function is compiled. Then, once it fires, it
gets automatically deleted.

Finally, be smarter how we resolve breakpoints in compiled code.
The compiler rearranges code in await expressions, which tripped
up the debugger. This change makes sure we select the lowest compiled
code address only within the line containing the requested breakpoint
position.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42368 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-15 18:20:20 +00:00
..
bin observatory: optionally auto-refresh allocation profile page at each GC. 2014-12-12 18:16:26 +00:00
include Fix deadlock that can occur while handling service messages at a breakpoint. 2014-10-27 16:57:21 +00:00
lib - Implement Isolate.kill. 2014-12-13 00:39:16 +00:00
platform Infer range for BIT_XOR. 2014-11-11 14:51:10 +00:00
tests/vm Enable more tests on MIPS. 2014-12-05 21:40:05 +00:00
third_party Moves BUILD.gn config from root to runtime. 2014-11-11 22:59:00 +00:00
tools Rewrite Windows path separator to be Unix path separator in Observatory resource bundle 2014-06-05 16:01:27 +00:00
vm Fix debugging of async code 2014-12-15 18:20:20 +00:00
.gitignore Ignore runtime/pkg/. 2012-12-19 11:25:41 +00:00
BUILD.gn Moves BUILD.gn config from root to runtime. 2014-11-11 22:59:00 +00:00
codereview.settings
CPPLINT.cfg - Use the simulator to do atomic operations that could also 2014-10-27 19:21:33 +00:00
dart-runtime.gyp - Make sure sample_extension is built. 2013-11-06 21:46:30 +00:00
PRESUBMIT.py - Add more data collection to the scavenger. 2013-10-16 23:15:11 +00:00