Commit graph

19425 commits

Author SHA1 Message Date
ajohnsen@google.com 1cfe5c7f64 Document FileSystemEntity:watch and family..
BUG=https://code.google.com/p/dart/issues/detail?id=14369
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29171 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:31:39 +00:00
ajohnsen@google.com e02b5a3fa4 Make FileSystemEntity.watch return a broadcast stream.
BUG=https://code.google.com/p/dart/issues/detail?id=14378
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29170 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:30:20 +00:00
ajohnsen@google.com 103eac574c Remove FileException, DirectoryException and LinkException from dart:io and use FileSystemException instaed.
BUG=https://code.google.com/p/dart/issues/detail?id=12461
R=nweiz@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29168 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:17:20 +00:00
lrn@google.com ff1d105a0f Remove deprecated 'str' getter on Match.
BUG= http://dartbug.com/12843
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29167 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:06:41 +00:00
lrn@google.com 36332f6188 Add "deprecated" to the standard library.
If the editor supports it, we should have a declaration in the standard library.
I suggest a separte dart:annotation library. It may grow in the future.
Alternatively it can be put in dart:core.

R=bak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29166 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 11:47:01 +00:00
kustermann@google.com 849ed804f4 Recursive copy with gsutil does only work work if more then one object is inside the source directory
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29165 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 11:10:34 +00:00
ajohnsen@google.com 4894d4548c Fix issue where we would double unwatch the path.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29164 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 10:26:00 +00:00
ajohnsen@google.com 33daee971b Use while(condition) around monitor wait, in file_system_watcher_macos.
This fixes a potential threading-issue, where the wacther could be used before it was fully initialized, if 'wait' woke up before notify.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29163 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 10:24:08 +00:00
ngeoffray@google.com 581fa005f9 Faster JSNumber:toInt.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29162 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:44:32 +00:00
ajohnsen@google.com b4be8b8080 Stop watching when removing watched path, for Mac OS X as well.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29161 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:42:07 +00:00
ajohnsen@google.com fdea26c768 Close file watcher when target is deleted.
BUG=http://code.google.com/p/dart/issues/detail?id=14374
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29159 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:12:16 +00:00
ajohnsen@google.com faba61a261 Copy 'dart:platform' library in to sdk.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29158 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:11:27 +00:00
ager@google.com 208042db5f Fix typos in FileSystemEntity.watch documentation.
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29157 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 07:23:51 +00:00
ajohnsen@google.com 8ef0f9e76f Add missing line to gyp file.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29155 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 07:13:25 +00:00
ajohnsen@google.com 28efa85e19 Add empty dart:platform library.
dart:platform will be a library that contains information about the runtime
platform. While it's not written in stones, this is examples of properties that
may be queried:

- OS
- Browser
- Browser version
- Dart Version
- numberOfProcessors
- pathSeparator
- Native or JS VM

BUG=
R=ahe@google.com, asiva@google.com, floitsch@google.com, iposva@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29154 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 06:56:36 +00:00
iposva@google.com 06719f8ea7 Fix bug 13827:
- Do not attempt to GC old space while in full growth mode when creating
  the token stream for a newly loaded source file.

R=bak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29153 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 05:45:09 +00:00
iposva@google.com 381027d755 - Widen the flaky net for pkg/http_server/test/http_body_test.
Review URL: https://codereview.chromium.org//39173003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29152 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 05:42:04 +00:00
iposva@google.com 03d9d79203 Fix typo.
Review URL: https://codereview.chromium.org//39383002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29151 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 05:21:40 +00:00
iposva@google.com a3ad73da24 - Mark flaky test.
Review URL: https://codereview.chromium.org//38573004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29150 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 05:15:49 +00:00
scheglov@google.com 2b2112bb68 Issue 13807. Support for function types promotion.
https://code.google.com/p/dart/issues/detail?id=13807

Also related language tests triage.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29146 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 03:16:36 +00:00
jmesserly@google.com 271b5c913a mark another polymer tests failing on IE
Review URL: https://codereview.chromium.org//38193003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29145 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 02:35:27 +00:00
sra@google.com 161cfb942e These are tests for Issue 14096
Review URL: https://codereview.chromium.org//29853003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29144 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 01:51:30 +00:00
sigmund@google.com 7dc84863f7 Also timeout the test that should pass - sigh
Review URL: https://codereview.chromium.org//38603004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29143 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 01:50:02 +00:00
sigmund@google.com 2bdff1184b Update status for IE9
Review URL: https://codereview.chromium.org//39083002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29142 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 01:45:55 +00:00
justinfagnani@google.com a61f6f2ff0 Mark js_test as failing for IE10
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29141 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 01:28:02 +00:00
iposva@google.com e8f2abb833 Fix build:
- Dartium is skipping some numbers when creating frames.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29140 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 01:16:10 +00:00
jmesserly@google.com 0acc931fc4 port polymer data binding tests
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29139 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:59:31 +00:00
hausner@google.com 24979aba0b Fix dart2js status
Switch expression type check fails in dart2js

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29138 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:37:11 +00:00
sigmund@google.com 92ebcc30c7 Fixes all canonicalization problems... all of them. Ok, not all of them, but at
least it should address the many issues people have been hitting.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29137 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:34:35 +00:00
iposva@google.com 7fb172b783 - Don't mix the collection of Error.stackTrace with the collection of
the stack trace for try-catch.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29136 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:16:55 +00:00
efortuna@google.com 7e685302b9 Add back unseparated out version of method overloads in dart:html.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29135 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:07:45 +00:00
efortuna@google.com 7645b3b4c6 Temporarily disable TouchList constructor to implement varargs.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29133 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 22:46:35 +00:00
justinfagnani@google.com 47d5450a02 Remove fail status for html/js_test and IE
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29132 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 22:37:11 +00:00
gbracha@google.com 7ba09adde9 Revert setters for final variables.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29131 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:54:53 +00:00
nweiz@google.com 5589f499fa Don't return outputs from a removed PhaseInput.
Also clean up a few things in Phase.

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29127 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:19:15 +00:00
hausner@google.com ddd9907e23 Implement type checks for switch expression
If the switch expression is not compatible with the case clause
constants, we must report a runtime error. Implement this by annotating
the temporary variable holding the switch expression with the correct
type.

Issue 7274

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29126 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:15:25 +00:00
justinfagnani@google.com 45e20b5921 "Fix" dart:js tests in IE9
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29125 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:12:36 +00:00
regis@google.com 177276f059 Report compile-time error for const factories redirecting to malformed type
(fix issue 14305).

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29123 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:03:11 +00:00
sra@google.com 3c4f43af68 Guard against null prototype properties
Review URL: https://codereview.chromium.org//37853003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29122 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 20:56:36 +00:00
efortuna@google.com 1787f36d42 Rerun go.sh
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29120 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 20:54:41 +00:00
jmesserly@google.com 7382a5ef78 add test for polymer custom events
I thought I would need to fix something, but it seems to be working :)

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29119 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 20:53:43 +00:00
srdjan@google.com 8e7c6a5fae Move Stringinterpolation constant folding from constant propagator to canonicalizer. StrinIterpolateInstr cannot directlly refer to interpolation arguments but only to the array that holds them, therefore constant propagation cannot be applied.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29118 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 20:37:18 +00:00
jmesserly@google.com 4194748695 remove old custom_element polyfill
just some cleanup. this was the stopgap xtag polyfill for Polymer; we never used it in web_ui to my knowledge. it's obsolete with document.register

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29116 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 20:21:07 +00:00
pquitslund@google.com 5324c583dd Analyzer/formatter transitions from (deprecated) Options to main(args).
(See dartbug.com/14200.)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29113 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 19:39:50 +00:00
jacobr@google.com 88482fee49 Companion CL to support $0, $1, $2
BUG=
R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29112 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 19:32:23 +00:00
sra@google.com 3f7cda184a Preemptive initialization of dispatch records
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29111 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 19:11:20 +00:00
iposva@google.com d369b7a0c9 - Ensure that the token stream from generated source matches the
original token stream in the presence of combinations of
  multiline string and string interpolation. If not this will
  cause mismatches when accessing code snippets, e.g when
  reporting parser errors or assertions.
- Ensure that ScanAll and ScanTo are in sync when adding or
  counting tokens.
- Added unit test for multiline strings and interpolation.
- Expanded GenerateSource unit test to iterate through all
  loaded libraries.
- Do not report columns for compilation errors in snapshotted
  code.
- Do not report columns from exceptions and errors when dealing
  with snapshotted code.
- Remove length field from TokenDescriptor. It was unused.
- Remove TokenStream::ComputeTokenPosition. It was unused.

R=fschneider@google.com, hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29110 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 19:08:36 +00:00
cbracken@google.com d520000fe9 Throw FormatException when Int32/Int64.parseRadix() encounters bad digit
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29109 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 19:04:43 +00:00
blois@google.com 41e8c13ed2 Filtering MutationObserver polyfill messages from test_controller logging
Basically the MutationObserver polyfill is using postMessage as a scheduling mechanism when MutationObserver is not supported (IE9,IE10). These messages are getting picked up by the test controller's logging, which is then putting them into the body. This in turn generates new mutation events, generating new messages. Endless loop.

This just filters messages which are random numbers.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29107 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 18:40:05 +00:00
rmacnak@google.com ccfaa29881 Make type variables belong to the original declaration in VM.
BUG=http://dartbug.com/14240
R=gbracha@google.com, zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29106 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 18:28:46 +00:00