Commit Graph

1435 Commits

Author SHA1 Message Date
sra@google.com bed52fac0d More efficient Int64 parsing and printing.
This replaces code that generates lots of temporary Int64 objects with
code that works almost entirely usings SMI values in local variables.
Printing generates numbers several digits at a time.

Speedup is 10x for parsing and 100x for printing on dart2js and a little over 5x each on the VM.

Printing produces hex digits in the same case as int.toString.

R=cbracken@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26760 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 01:34:06 +00:00
blois@google.com 93c361dd36 This is an updated version of https://codereview.chromium.org/16374007/
Original submission is the first patch, fixes are the second.

There were two issues with the original-
  - Issue with URI sanitization where relative URIs on IE were being dropped.
  - Analyzer issue on missing members for CustomElement.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26757 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 01:03:01 +00:00
blois@google.com 2cb45c9124 Suppressing exceptions in Dartium's dart:js usage
Trying to get code to start up clean with first-chance exceptions.

BUG=12548
R=jacobr@google.com, terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26753 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:46:14 +00:00
nweiz@google.com 9300846114 Use filtered stacks in pub, barback, and watcher tests.
This also exposes more unittest stuff to users of scheduled_test.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26751 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:13:30 +00:00
pquitslund@google.com 2a88e8858b Improved comment handling (and misc. formatter fixes).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26746 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 21:55:58 +00:00
alanknight@google.com 5a965b5a45 Resume testing message extraction on Windows after dart:io fix
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26744 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 20:50:55 +00:00
alanknight@google.com 4c5223f7a6 Switched Serialization identityMap to use a wrapper, not linear search.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26737 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 19:08:00 +00:00
blois@google.com 43b08221c4 Fixing stack traces on IE10.
BUG=
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26735 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 18:35:08 +00:00
nweiz@google.com bec9ac685d Add an AssetStream class to Barback.
This makes it easier to create an asset from a stream of bytes.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26734 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 18:29:31 +00:00
sigmund@google.com a841cc9224 readd accidentally removed import.
Review URL: https://codereview.chromium.org//23619002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26729 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 17:25:10 +00:00
sigmund@google.com 6559184105 Fix read/write of binary assets in deploy
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26725 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 17:16:27 +00:00
terry@google.com d2bf47bef9 Moved test changes to dart-lang
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26724 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 17:14:20 +00:00
alanknight@google.com 8da15c52f0 Remove hack for finding package-root in tests, now available in Platform
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26721 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 16:55:31 +00:00
alanknight@google.com 578d4c24e4 Change reflective serialization rules to be able to take type literals
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26720 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 16:53:42 +00:00
kathyw@google.com 160c6b4621 mime library description
R=mcampione@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26713 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 14:27:46 +00:00
floitsch@google.com 1887b5ca49 Some more removals of dart:utf.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26712 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 13:18:34 +00:00
floitsch@google.com 8921f4bbf9 Add utf package.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26711 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 13:13:21 +00:00
floitsch@google.com 03dc7cd423 Create json package.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26708 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 11:52:45 +00:00
ngeoffray@google.com cf82ac340b Update csslib expectations.
Review URL: https://codereview.chromium.org//23570002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26700 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 10:02:40 +00:00
lrn@google.com 6e34d019b4 Change test expectation on pkg/csslib/var_test for dart2js
Review URL: https://codereview.chromium.org//23513005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26699 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 09:49:28 +00:00
lrn@google.com 0fa1bbdf15 Reapply "Make Map constructors return LinkedHashMap."
Updated tests assuming a specific ordering of an unlinked hash map
to not be daft.

R=floitsch@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26693 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 08:43:46 +00:00
kathyw@google.com 9095fafcce add library descriptions for sequence_zip and the libraries it exports
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26691 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 08:00:09 +00:00
kathyw@google.com 19079d26da serialization library-level doc comments
R=mcampione@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26690 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 07:46:20 +00:00
mcampione@google.com cb9e2a5c10 Added docs for unmodifiable collection
BUG=
R=kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26689 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 07:41:53 +00:00
blois@google.com 24e9f22c90 Revert "First rev of Safe DOM"
This reverts commit 26681.

Some IE issues with URL validation that I need to investigate further.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26682 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 02:18:48 +00:00
blois@google.com 63ecf1a3fd First rev of Safe DOM
BUG=
R=jacobr@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26681 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 01:48:13 +00:00
nweiz@google.com 22f45f401e Don't run parse_compilation_unit_test on browser/dart2js bots.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26676 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 23:20:26 +00:00
nweiz@google.com e84b9dba61 Add a parseDartString method to pkg/analyzer.
R=brianwilkerson@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26673 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 22:06:55 +00:00
blois@google.com a6b1633153 Suppressing first-chance exception in path_observer. The exception is thrown and caught in Dartium but the debugger still stops on this line when first-chance exceptions are enabled.
I opened bug 12776 on this, but specifying the radix will suppress the exception.

Note that this sends the code down what's called the 'slowParse'. See https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/runtime/lib/integers_patch.dart#83

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26671 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 21:54:34 +00:00
nweiz@google.com df5fec68eb Add encoding tests to pkg/http.
These were blocked on issue 6284.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26667 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 20:50:27 +00:00
nweiz@google.com ce421c4dd1 Stop working around issue 6775.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26664 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 17:50:00 +00:00
pquitslund@google.com c23446c37c Updated reference to missing UTF8 codec.
R=devoncarew@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26657 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 16:55:31 +00:00
pquitslund@google.com 4502a116e9 Minor formatter tweaks and a few more tests.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26655 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 16:38:04 +00:00
floitsch@google.com 35d7140e66 Remove Encoding-enum from dart:io and add interface in dart:convert.
BUG= http://dartbug.com/6284
BUG= http://dartbug.com/7966
R=nweiz@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26632 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 10:37:25 +00:00
alanknight@google.com 7602371022 Verify the locale when initializing dates over http
BUG=dartbug.com/11093
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26613 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 21:04:51 +00:00
pquitslund@google.com faac3d0e06 Formatter checkpoint.
Some fixes and a progress towards the elimination of references to String literals in visit methods.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26608 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 20:17:01 +00:00
efortuna@google.com 92d2bd8c28 Fix api for dart2js tests that failed.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26606 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 19:15:33 +00:00
efortuna@google.com 90873051ad Making almost all dom_ methods private. Exceptions will be addressed in a later CL.
Current ones that still remain to be made private include createElement(NS),
createRange, all the Element properties, and childNodes.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26605 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 18:25:40 +00:00
sigmund@google.com 3bfd140972 Add a deploy script based on polymer's transformers.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26601 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 15:58:39 +00:00
sigmund@google.com 6839e727d3 Declare the sequence of phases for the full polymer transform and add tests for
it.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26574 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 01:45:45 +00:00
nweiz@google.com bd9b8c296f Support actually removing phases in barback.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26573 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 00:32:21 +00:00
gram@google.com db89664f33 Migrate stack filtering change to new configfuration class.
R=kevmoo@j832.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26567 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 23:09:08 +00:00
sigmund@google.com ab9acd1dd2 Fix polymer transformers in windows. AssetId's always use posix style paths
regardless of the system.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26563 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 22:22:18 +00:00
kathyw@google.com 210edb7a54 Update meta and logging library descriptions; tweak fixnum
R=mcampione@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26562 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 22:17:10 +00:00
gram@google.com 5afecf5f67 Changes to how we handle fancy stacks:
- in the base config they are disabled
- in htmnl config they are enabled unless a certain meta tag is present in the
  page.
- in vm config they are enabled unless a --no-fancy-stacks flag is in the
  Options.

The test runner adds a fancy_stacks flag that can be used to control this
behavior, but by default turns off fancy stacks for all tests.

There were a couple of test runner tests that were affected and have kludgy
fixes where I strip out the new argument from Options first.

This has passed a baseline set of tests; I'm still running a more comprehensive
set.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26560 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 21:47:51 +00:00
alanknight@google.com 551f37ed99 Put the @lazy directive on a separate line from the import to avoid confusing naive parsers (e.g. dwc)
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26559 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 21:46:54 +00:00
rnystrom@google.com b35a36dbe5 Normalize incoming AssetID paths.
BUG=https://code.google.com/p/dart/issues/detail?id=12650
R=nweiz@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26558 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 21:36:36 +00:00
alanknight@google.com 5038d3b5e7 Make defaultLocale public
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26557 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 21:35:40 +00:00
nweiz@google.com 13ad318db4 Enable cross-package transforms to see new transformers in other packages.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26556 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 21:04:05 +00:00
alanknight@google.com f95ea62a8a Simplify the generated code for a message.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26548 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-22 19:23:35 +00:00