Commit Graph

851 Commits

Author SHA1 Message Date
floitsch@google.com 232fbebdfa Don't lose the expected precedence during && compilation.
When transforming if (foo) bar; to foo && bar make sure that
bar is compiled with the correct precedence.
In particular avoid foo && toto = 499;
instead of
foo && (toto = 499).

Fixes issue 3862.

Review URL: https://chromiumcodereview.appspot.com//10669035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9157 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 11:40:55 +00:00
podivilov@google.com f5a2e9cec8 Build fix for r9154.
TBR=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10692006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9155 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 10:11:50 +00:00
podivilov@google.com 747ad87c2e Events operator [] shouldn't convert event name to lower case.
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10445011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9154 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:36:56 +00:00
podivilov@google.com 50ab479fb8 Stop using ParameterAdapter<String> in generated code.
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10657047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9152 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:18:54 +00:00
ahe@google.com 7b31e54ab7 Implement override checks.
First attempt committed as: https://code.google.com/p/dart/source/detail?r=9108

Review URL: https://chromiumcodereview.appspot.com//10575033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9151 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:07:36 +00:00
johnniwinther@google.com e7dbe0306b Avoid passing a null uri to translateUri.
This happens when reportDiagnostic is called from readScript.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10629002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9150 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 08:17:42 +00:00
johnniwinther@google.com e7fea7af1b Copy of html_frog added to dartdoc/frog/lib
Build uses dart2js.bat on Windows

BUG=3775
TEST=

Review URL: https://chromiumcodereview.appspot.com//10662048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9149 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 06:44:24 +00:00
kathyw@google.com b79fee7be2 Improve WebSocket and Storage docs.
Staged at:

http://kathy-02.dartlang-api.appspot.com/html/WebSocket.html
http://kathy-02.dartlang-api.appspot.com/html/Storage.html

BUG=3759,3091

Review URL: https://chromiumcodereview.appspot.com//10684008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9146 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 04:28:10 +00:00
efortuna@google.com 80b7c27ed8 Submit 9138 again. The only thing new/different is tests/lib/lib.status.
Review URL: https://chromiumcodereview.appspot.com//10674009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9144 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 00:17:27 +00:00
efortuna@google.com ff544a2bc4 Revert r9138 while I fix tests.
Review URL: https://chromiumcodereview.appspot.com//10682012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9142 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 23:46:05 +00:00
efortuna@google.com d839df97e6 Add BiDirectional Text formatting utilites to the i18n library.
Review URL: https://chromiumcodereview.appspot.com//10592011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9138 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 22:09:42 +00:00
antonm@google.com 756f43f13c Sort includes to follow WebKit style.
R=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10657045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9127 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 19:16:34 +00:00
floitsch@google.com cf1ed8e24f Fix assert.
Review URL: https://chromiumcodereview.appspot.com//10660027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9120 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 17:27:32 +00:00
floitsch@google.com f1147e96b0 Transitively mark inputs as live when they are generateAtUseSite.
Review URL: https://chromiumcodereview.appspot.com//10667013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9119 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 17:14:16 +00:00
antonm@google.com 3a7a240241 Cleanup the code.
R=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10666054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9118 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 16:11:03 +00:00
podivilov@google.com 1d3895b567 Remove ParameterAdapters for all types except for String.
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10662047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9113 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:33 +00:00
antonm@google.com 38bf8c295b Revert "Implement override checks."
TBR=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10666052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9112 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:00 +00:00
lrn@google.com cadba87302 Implement 'as' operator.
This is a quick implementation with room for improvement.
It might work.

Review URL: https://chromiumcodereview.appspot.com//10540048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9109 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:23:50 +00:00
ahe@google.com 7f2041bf11 Implement override checks.
Review URL: https://chromiumcodereview.appspot.com//10575033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9108 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 12:51:55 +00:00
antonm@google.com 8957fb37e7 Support V8EnabledAtRuntime in constructors.
R=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10669031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9107 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 12:42:54 +00:00
johnniwinther@google.com a337f0e5a9 Dart2js called as 'dart2js.bat' on Windows
Bug 3568 also fixed.

BUG=3568

Review URL: https://chromiumcodereview.appspot.com//10658031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9101 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 08:12:49 +00:00
podivilov@google.com fb79a6c50b Use JSON.printOn in SourceMapBuilder.
R=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10636003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9100 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 07:52:02 +00:00
podivilov@google.com 457105b44e Fix comments in json.dart.
R=sgjesse@google.com

Review URL: https://chromiumcodereview.appspot.com//10664015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9099 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 07:51:10 +00:00
gram@google.com d7cafabc74 Unit test filtering. This is just the library support part, it does
not affect the Dart test framework; as such, I have for now removed the 
code that checks if a filter was passed in the Options.
Review URL: https://chromiumcodereview.appspot.com//10662022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9088 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 22:16:44 +00:00
gram@google.com 948a4adc36 Fix the normalization of test group names before use as DOM class or id names.
See Issue 3855.
Review URL: https://chromiumcodereview.appspot.com//10636035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9086 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 21:47:08 +00:00
antonm@google.com 918aab3705 Restore forgotten negation.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10667019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9082 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 18:47:20 +00:00
antonm@google.com e5e06b0f87 Process all resolver treeshaked elements in Dart backend.
For now the processing is a simple unparse validation.

Review URL: https://chromiumcodereview.appspot.com//10633006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9078 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 18:41:05 +00:00
antonm@google.com aace7e9ec9 Place more guards for the cases which should be covered.
R=ahe@google.com,smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10632019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9076 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 18:22:26 +00:00
antonm@google.com d40b9e584c Support proper propagation of enabled per context and at runtime attributes.
And support enabled per context in native generator.

R=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10636027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9072 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 17:58:03 +00:00
floitsch@google.com 52154a86d8 Don't transform interceptors into dynamic invocations for null.
Fixes issue 3857

Review URL: https://chromiumcodereview.appspot.com//10660007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9062 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 14:01:55 +00:00
johnniwinther@google.com 77f7b64611 Scanner can include comments in the token stream.
includeComments option argument added to the ByteArrayScanner. default is false.
Test of charOffset, charLength invariants on scanner output added.
Calls to beginToken() moved to fix invalid Token.charOffset values for string interpolations.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10539021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9059 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 10:57:25 +00:00
antonm@google.com df9f498293 Remove Dart body for a native method.
R=ahe@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10626016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9058 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 10:20:46 +00:00
floitsch@google.com 9f81c281c8 Make undefined and null equivalent.
Fixes issue 3328.

Review URL: https://chromiumcodereview.appspot.com//10533151

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9053 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-24 19:13:57 +00:00
vsm@google.com a8b7e343e8 Fix ShadowRoot constructor for dart2js
Review URL: https://chromiumcodereview.appspot.com//10631016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9038 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 18:20:35 +00:00
vsm@google.com 36a2392f83 Regen html_frog
Forgot this on my last change.

TBR=sra

Review URL: https://chromiumcodereview.appspot.com//10655002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9037 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 17:51:52 +00:00
sgjesse@google.com 77cd2824be Make sure that constructor bodies are added to the resolver
R=ahe@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10642017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9030 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 11:50:41 +00:00
whesse@google.com 54a975816d Fix dart2js mock of dart:io, to incorporate new File.fromPath and Directory.fromPath.
BUG=
TEST=tools/test.py -cdart2js -rd8 standalone/io/file_test

Review URL: https://chromiumcodereview.appspot.com//10634027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9029 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 11:45:00 +00:00
antonm@google.com d4c4113bc8 Propagate canUseNative flag to synthesized library.
That allows to unparse natives.

R=ahe@google.com,smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10638005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9026 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 10:54:00 +00:00
ager@google.com 64e847a8cc Minor tweaks to the bitops builtin checks.
R=kasperl@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10642018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9020 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 09:57:42 +00:00
sgjesse@google.com 9ab265364b Improve tracking of the type of fields after object construction
Based on the guarenteed types a field is initialized to in both the
initializer lists and constructor bodies give an optimistic type for
this field. Based on all the field setters and invoked setters for
that field turn this optimistic type into either a propagated type or
a guarenteed type.

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

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10638013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9019 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 09:29:41 +00:00
ahe@google.com 968159dba8 Revert "Added the ability to filter which tests are run by name, using a --filter argument passed to test.dart."
Review URL: https://chromiumcodereview.appspot.com//10632017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9018 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 09:14:54 +00:00
gram@google.com 2436664bb5 Added the ability to filter which tests are run by name, using a --filter argument passed to test.dart.
Review URL: https://chromiumcodereview.appspot.com//10627008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9006 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 22:03:55 +00:00
podivilov@google.com fe5c605b9b Implement JSON serialization to stream.
R=antonm@google.com,ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10632002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8991 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:48:28 +00:00
vsm@google.com d2624ab46f Enable cross frame window operations
This should get everything working for dart2js besides the location
and history getters.

BUG=3472
TEST=window_open_test

Review URL: https://chromiumcodereview.appspot.com//10601003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8988 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:36:15 +00:00
iposva@google.com 0fd25118b9 - Move the Timer interface to the dart:isolate library so that it
is accessible from both client and standalone program.
- Enable a way for the embedder to provide the implementation of
  the Timer interface.
- Update tests.
Review URL: https://chromiumcodereview.appspot.com//10532123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8987 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:17:21 +00:00
sigmund@google.com 82f6756e91 Listen for on.error events in test_controller.js
Review URL: https://chromiumcodereview.appspot.com//10627004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8983 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:32:40 +00:00
antonm@google.com f8f5363fc4 New treatment of native methods.
R=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10558023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8980 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 14:37:42 +00:00
podivilov@google.com 0e6839b3ff First shot at source maps generation in dart2js.
This allows to generate a source map with begin and end positions of all functions.

Committed: https://code.google.com/p/dart/source/detail?r=8966

Review URL: https://chromiumcodereview.appspot.com//10579019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8973 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 11:45:19 +00:00
podivilov@google.com a15a5c72a4 Revert "First shot at source maps generation in dart2js."
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8970 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 10:47:00 +00:00
antonm@google.com 85a0c9635c Proper support for IDL arrays in generators.
R=podivilov@chromium.org,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10584031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8969 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 10:43:11 +00:00