Add a library for manipulating stack traces.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20582 260f80e4-7a28-3924-810f-c04153c831b5
Fix Frame.location on Windows in pkg/stack_trace.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20586 260f80e4-7a28-3924-810f-c04153c831b5
Fix the stack_trace frame test on Windows as well.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20588 260f80e4-7a28-3924-810f-c04153c831b5
Be more careful about converting between file URIs and paths.

This happened to work on Windows because it interprets forward slashes as
directory separators.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20708 260f80e4-7a28-3924-810f-c04153c831b5
Check in pkg/stack_trace/lib/src/utils.dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20710 260f80e4-7a28-3924-810f-c04153c831b5
Use the stack_trace library in scheduled_test.

This also adds a couple features to stack_trace.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@20752 260f80e4-7a28-3924-810f-c04153c831b5
Normalize packages' library names.

This makes the library names play nicer with dartdoc.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21106 260f80e4-7a28-3924-810f-c04153c831b5
Added new version of reduce.

Removed min/max and uses of min/max.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21258 260f80e4-7a28-3924-810f-c04153c831b5
Import math library with a prefix.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21406 260f80e4-7a28-3924-810f-c04153c831b5
Remove methods on StackTrace class.

The API is not ready for finalization, so we remove it for further
development after M4.

Makes dart2js's StackTrace object implement dart:core's StackTrace.
Marks dart2js stack-trace tests as Fail instead of Skip.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21437 260f80e4-7a28-3924-810f-c04153c831b5
add installation instructions to pkg packages

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21770 260f80e4-7a28-3924-810f-c04153c831b5
Use UnmodifiableListView to expose read-only lists.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21855 260f80e4-7a28-3924-810f-c04153c831b5
Clean up various ways we find paths in pub.

This makes it so that it's never necessary to pass in DART_SDK.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21914 260f80e4-7a28-3924-810f-c04153c831b5
Fix a bug in pathToFileUri.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@21916 260f80e4-7a28-3924-810f-c04153c831b5
Be lazier when capturing stack traces.

It turns out that capturing stack traces is cheap; converting them to strings is
what's so expensive.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@22205 260f80e4-7a28-3924-810f-c04153c831b5
Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732).

This also wraps the 'domain' component in toString with [...], if it
contains any ':' characters.

BUG=
R=floitsch@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@22228 260f80e4-7a28-3924-810f-c04153c831b5
Merge the dart:uri library into dart:core and update the Uri class

This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.

* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization

R=floitsch@google.com, lrn@google.com, nweiz@google.com, scheglov@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@23266 260f80e4-7a28-3924-810f-c04153c831b5
Make the StackTrace library better handle core library frames.

Core library stack frames now have libraries and meaningful line numbers, so in
general we should preserve those. However, terse stack traces don't care about
the internal workings of the core libraries, so they now explicitly remove the
library and line number information.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@23621 260f80e4-7a28-3924-810f-c04153c831b5
Add toUri and fromUri functions to pathos.

This also replaces the ubiqutous pathToFileUri/fileUriToPath functions.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/stack_trace@24196 260f80e4-7a28-3924-810f-c04153c831b5
Fix the pkg/stack_trace tests.

On Windows they're now (correctly) using relative URIs as opposed to
relative paths.

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

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