Commit Graph

24962 Commits

Author SHA1 Message Date
floitsch@google.com bd996f67d6 Fix test.
Review URL: https://codereview.chromium.org//355623002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37652 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 11:03:36 +00:00
johnniwinther@google.com 2e4b3bd874 Load patches via callback.
This CL is a prerequisite for moving patching to the JavaScript backend.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37651 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 10:40:17 +00:00
ricow@google.com 37506c8253 Always clobber the out dir on the arm board
This board does not have enough disk to hold everything on all channels, especially when we switch stable channel and have a build.dead

R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37650 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 10:34:03 +00:00
floitsch@google.com 56f0554dcf Avoid critical edge for loop-exits.
BUG= http://dartbug.com/19550
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37649 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 09:49:05 +00:00
whesse@google.com cd2b96afd8 Add _owner setter to RawSecureSocket.
BUG=
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37647 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 09:40:48 +00:00
whesse@google.com 8a2882831e Update status for Android content_shell.
BUG=dartbug.com/19127
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37646 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 09:17:22 +00:00
ahe@google.com cbebd27b0f Add secret option "live" which compiles more frequently.
This option is mostly useful for recording screencasts of incremental compilation.

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37643 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 08:39:58 +00:00
ahe@google.com 53d1d6bbc1 Wrap long diagnostic messages.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37642 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 08:23:41 +00:00
vsm@google.com 79ac5d3615 Mark tests as passing
These tests are fixed once: https://chromiumcodereview.appspot.com/350653002/
is landed.

BUG=17662
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37641 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 07:20:57 +00:00
jmesserly@google.com 0f317b4fd4 fix chrome 35 polymer status
also mark one test passing on ie9 now

One test is failing due to 35 having buggy custom elements, and I guess the newest polyfill removed the workaround(s)

For now I marked status as failing, though bots will go red unfortunately when Chrome does update. I left the comment there to make it obvious to whoever sees that later.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37635 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 02:04:54 +00:00
sigmund@google.com c3c6ea0100 Warn about accessing private properties, but don't choke on it.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37634 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 01:22:19 +00:00
jmesserly@google.com c3cf7404ae rename d-auto-binding to auto-binding-dart
appending -dart to ports seems like a more generic convention

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37633 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 00:47:18 +00:00
jmesserly@google.com 1aa432e42b test updates from latest web component polyfill roll
It's fun when tests "fail" because they're now passing :)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37632 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 23:43:08 +00:00
hausner@google.com f58745f751 Fix parsing and resolving of prefixed names
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37631 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 23:26:26 +00:00
srdjan@google.com 3da591793a Always inline Object.==.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37630 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 23:18:02 +00:00
jmesserly@google.com d12f8b560b update polymer and platform.js
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37629 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 22:49:17 +00:00
srdjan@google.com 97021b5861 Add class id constants fields to dart:_internal class 'ClassID'. Use the fields in the library (more uses to come).
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37628 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 22:41:59 +00:00
mlippautz@google.com f3a187c63e Reland: Fix tools/full-coverage.dart script and add standalone test.
Test checks coverage data of a given script and differentiates between:
* no coverage data
* no hits (IC=0)
* some hits (IC>0)

BUG=
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37627 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 22:27:26 +00:00
zra@google.com 2ab7fa6c72 Omits size bits when writing RawObject tags to a snapshot.
Makes snapshot ~30KB smaller.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37626 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 22:18:04 +00:00
scheglov@google.com 03819fe9e0 Analyzer snapshot to with FunctionElement.identifier fix.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37625 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 22:03:08 +00:00
sra@google.com 7dd8d34cbe Avoid counting custom elements as added due to mirrors
Fixes issue 17470

BUG=
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37624 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 21:56:12 +00:00
paulberry@google.com 940f84df33 Remove dead code for tracking pubspec.yaml files.
Now that we are using "pub list-package-dirs" to find the packages
associated with a context, we no longer need to explicitly track the
presence or absence of a "pubspec.yaml" file within the context.

Note that we will have to watch the "pubspec.lock" file in order to
decide when to re-run "pub list-package-dirs", but we'll do this using
a different mechanism, since the decision of which file(s) to watch is
the responsibility of pub, and communicated to us through the JSON
output of "pub list-package-dirs".  This will be addressed in a future
CL.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37620 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 21:33:18 +00:00
nweiz@google.com c718393be3 Make StringScannerException extend SpanFormatException.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37619 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 21:10:55 +00:00
nweiz@google.com 312c1f5c11 Make YamlException inherit from SpanFormatException.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37618 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 21:07:00 +00:00
johnmccutchan@google.com dc9f902fb1 Fix code coverage (again!)
BUG=
R=koda@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37617 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 21:05:15 +00:00
nweiz@google.com 8377917c99 Code review for r37527
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37616 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 20:36:01 +00:00
scheglov@google.com c6bba5ff20 A FileManager implementation to keep each index file in a separate file system file.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37615 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 20:00:38 +00:00
koda@google.com d3c0913a3d Make retained size human-readable.
BUG=dart:19444
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37614 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 19:47:07 +00:00
tyoverby@google.com f5cf30f522 dump-info additionally dumps a json info file
In addition to dumping the .info.html file, the dump-info flag
now also dumps a .info.json file that contains the same
information as the .info.html file.  This is the first step
in replacing the .info.html file with a dynamic dump viewer.

Currently both the .info.json file and the .info.html file are
created, however the plan is to remove the .info.html file once
a suitable viewer for the .info.json file has been created.

BUG=
R=floitsch@google.com, sigurdm@google.com, sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37612 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 18:12:55 +00:00
scheglov@google.com b5d098a4a2 Move split_store.dart to the store/ folder and extract collections/codecs.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37610 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 17:18:14 +00:00
paulberry@google.com 87ce2785b6 Allow "null" as a synonym for [] or {} in the analysis server API.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37608 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 16:51:59 +00:00
scheglov@google.com bacedfcbc1 Migrate protocol_test.dart to reflective tests.
1. Drop static.
2. Replace @runTest with 'test_' method name prefix.
3. Drop direct setUp() invocation.
4. Format.
5. Sort.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37605 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 15:37:01 +00:00
ahe@google.com 13c1d4ea13 Make incremental compilation opt-in.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37604 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 15:31:41 +00:00
ahe@google.com e4a26ff290 Improve running in iframes.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37603 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 15:26:38 +00:00
ahe@google.com bd73f1ad63 Send console messages through interaction manager.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37602 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 15:19:50 +00:00
ahe@google.com 01bddd1c9c Address issues found with analyzer
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37600 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 13:24:31 +00:00
herhut@google.com 6d13079205 Allow updates and include statics when computing deferred elements.
BUG=
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37599 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 13:24:18 +00:00
danrubel@google.com 0e5687a619 close channel and exit analysis server on editor shutdown
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37597 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 12:49:24 +00:00
ahe@google.com 5d96bfd4e5 Handle incremental diagnostics.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37596 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 12:43:35 +00:00
ahe@google.com f16a9b8728 Improve incremental compilation.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37595 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 12:34:41 +00:00
ahe@google.com a092567b5e Update Makefile to:
* Filter out deprecated warnings.
* Show package warnings.

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37594 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 10:57:47 +00:00
fschneider@google.com 0d82ac5c05 Remove unused pc-descriptor kind kReturn.
This kind is not needed since the only place where it is used
can be just replaced with kRuntimeCall as it behaves the same.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37592 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 10:50:50 +00:00
asgerf@google.com cbc2f2e065 Fixed dart2js compile warnings in ir_builder and ir_nodes.
They seem to be caused by a bad auto merge.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37591 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 09:52:36 +00:00
lrn@google.com d4c2b57209 Fix bugs in Uri: Allow empty port, handle path starting with "//" in toString.
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37590 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 09:44:05 +00:00
herhut@google.com 80773c1452 Use mirror-free LRU test for dart2js
BUG=
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37589 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 09:42:43 +00:00
sigurdm@google.com 21f54a100c Implement references to "this" in the new IR.
R=asgerf@google.com, kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37588 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 09:35:45 +00:00
floitsch@google.com 7a20438bb8 Update timer and adjust frequency.
BUG= http://dartbug.com/19435
BUG= http://dartbug.com/19082
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37586 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 09:33:59 +00:00
asgerf@google.com bd3255ed6a dart2dart: Support for all constants in new backend.
Adds support for:
- Type literals
- By-value reference to top-level or static function
- Const constructor invocation inside const literal list or map

Nested const expressions are linearized to LetPrims, and we rely on the dart_tree to inline all primitives (since non-const variable references may not occur in a const expression).

There are still a bunch of constants that we support but don't actually treat as constants. Reference to top-level constants are still treated as a getter invocations, for instance.

We bail out on local constant declarations since they must either be inlined at multiple places or we must generate a constant declaration for them.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37585 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 08:46:08 +00:00
kustermann@google.com 51f349ed66 Throw a StateError if read()/readAsString() is called multiple times
R=kevmoo@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37584 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 08:31:18 +00:00
sigurdm@google.com 6e6a549c9e Add support for ! and != to the new IR builder
R=asgerf@google.com, kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37582 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 08:13:54 +00:00