Commit graph

9997 commits

Author SHA1 Message Date
sra@google.com cb60bd8a68 Generate native class metadata as a JavaScript AST.
This allows the metadata to shrink about 15% under --minify.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15236 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 03:23:51 +00:00
regis@google.com c2b4cccaee Ambiguous type references require a compile time error in some special cases
(fix issue 6741).
Review URL: https://codereview.chromium.org//11348188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15233 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 00:14:08 +00:00
scheglov@google.com 44c2dbfc4a Fix dartc status
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15232 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 23:10:42 +00:00
srdjan@google.com adec747917 Reenable function source fingerprint checks. Added checks to MethodRecognizer.
Review URL: https://codereview.chromium.org//11412137

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15230 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 22:46:38 +00:00
hausner@google.com 5df36f0533 Fix more dart status
Review URL: https://codereview.chromium.org//11421042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15229 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 22:40:24 +00:00
nweiz@google.com 52a1afb4a3 Make exceptions propagate through multiple Future branches.
This is identical to r15221 except that it marks co19 tests as failing.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15228 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 22:36:04 +00:00
hausner@google.com 59ab0c5fb4 Fix dartc status
Dartc does not support abstract methods that aren't
explicitly declared abstract.
Review URL: https://codereview.chromium.org//11413128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15227 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 21:46:35 +00:00
nweiz@google.com aeeda44589 Reverting 15221
Review URL: https://codereview.chromium.org//11419120

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15223 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 20:56:27 +00:00
nweiz@google.com 80e95adf02 Make exceptions propagate through multiple Future branches.
Review URL: https://codereview.chromium.org//11418104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15221 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 20:43:48 +00:00
hausner@google.com abfdec2880 Eliminate explicit abstract from class members in tests
Review URL: https://codereview.chromium.org//11415105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15220 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 20:12:53 +00:00
sra@google.com cae9496314 Use top level 'contains' function uniformly in compiler lib to avoid pulling in unused code.
Shaves 6-8k off HelloHTML.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15219 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 19:50:48 +00:00
srdjan@google.com a64c6f8429 Fix build on Linux. Disable fingerprint checking as the finger prints changed.
Review URL: https://codereview.chromium.org//11308146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15218 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 19:27:44 +00:00
srdjan@google.com 09d1bbde1a Use fingerprint to detect changes in methods that are intrinsified.
Make sure that the fingerprints are portable across 32 and 64 bit platforms.
Review URL: https://codereview.chromium.org//11421024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15217 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 19:15:54 +00:00
sra@google.com 77b13f738a Fix dart2js hashCode implementations.
This fixes the following problems:
1. low 15 bits of string hash always zero.
2. [].hashCode crashes
3. hashCode of bool is not a SMI.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15216 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 19:08:13 +00:00
sigmund@google.com b91e4b8305 Fix unresolved ports negative test
Review URL: https://codereview.chromium.org//11415101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15215 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 19:01:29 +00:00
hausner@google.com 65bf9cbb2a Remove abstract from class members in dart libraries
Add VM flag to produce compile error for explicitly
defined abstract class members.
Review URL: https://codereview.chromium.org//11299121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15210 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 17:23:35 +00:00
ngeoffray@google.com ecece51245 Do not type check parameters that are not passed directly.
Review URL: https://codereview.chromium.org//11280122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15206 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 16:22:04 +00:00
ngeoffray@google.com 709a0ff72e Cleanup after the interceptor refactoring work, and add a new SSA instruction for an interceptor, soon to be optimized.
Review URL: https://codereview.chromium.org//11348177

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15202 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 15:42:59 +00:00
ager@google.com 28775e1c98 Intrinsify ExternalUint8Array.[].
This helps the HTTP parser quite a bit. I was playing around with
it and thought I might as well upload it for review. Feel free
to take over the changelist if I'm doing this wrong. In that
case you should see this as a request for intrinsification of
ExternalUint8Arrays. :-)

R=fschneider@google.com,srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15200 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 15:35:15 +00:00
ngeoffray@google.com 1f7b8b767c Remove useless assignments and parameter passing for closures inside initializers.
Review URL: https://codereview.chromium.org//11416131

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15199 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 15:35:04 +00:00
karlklose@google.com 2151a206fe Mark dummy_compiler_test and recursive_import_test as passing.
Review URL: https://codereview.chromium.org//11415099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15198 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 13:40:21 +00:00
fschneider@google.com bf1fbb1296 Fix dart2dart and dartc test status for a recently enabled test.
BUG=dart:643, dart:1533
Review URL: https://codereview.chromium.org//11415095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15197 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 12:31:23 +00:00
karlklose@google.com e71e416f42 Clean up warnings.
Review URL: https://codereview.chromium.org//11411119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15194 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 11:28:16 +00:00
fschneider@google.com a16afb4a27 Correct file names for tests in tests/language to run them in test.py.
Those tests were previously not run because of the missing _test suffix.

Changed the test expectations for type_variable_shadows_class_test until
it is fixed.

Corrected syntax error in optimized_lists.dart and removed invalid
expectation from mint_arithmetic_test.dart.

Added failing tests to the status file with the corresponding issue #.

Split double_to_string_test into two files where one contains all the
ones failing with dart2js.

BUG=dart:643,dart:1533
Review URL: https://codereview.chromium.org//11316108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15193 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 11:15:36 +00:00
ngeoffray@google.com e52a9368ed - Move length getter and setter interceptors to the new interceptor scheme.
- Remove obsolete HInvokeInterceptor instruction
- Transform an intercepted length getter on string/array to a HFieldGet.
Review URL: https://codereview.chromium.org//11412105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15192 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 10:57:25 +00:00
karlklose@google.com bb58a950bb Make LinkBuilder an abstract class.
BUG=6323

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15191 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 09:14:03 +00:00
srdjan@google.com ed9febae47 Mysterious failure on Windows, disabled until communicated with interested parties.
Review URL: https://codereview.chromium.org//11411114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15190 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 01:27:37 +00:00
cshapiro@google.com d8a8d10b58 Resolve C++11 narrowing conversion errors when compiling with GCC 4.7.
BUG=4495

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15189 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 01:05:52 +00:00
cshapiro@google.com 979571d3ee Use a signed 32-bit integer for representing code points.
Review URL: https://codereview.chromium.org//11419086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15188 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 00:30:27 +00:00
rnystrom@google.com 08b3c5ef6f Avoid passing absolute path to 7zip.
Review URL: https://codereview.chromium.org//11417102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15186 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 00:15:33 +00:00
cshapiro@google.com 1548e5b934 Use the code point iterator in equality comparisons to C strings.
Review URL: https://codereview.chromium.org//11418095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15185 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 23:46:05 +00:00
amouravski@google.com 9bf4cee848 Standardized /// @domName comments.
Review URL: https://codereview.chromium.org//11299120

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15184 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 23:22:44 +00:00
sra@google.com f4a25f7467 Single quotes are not legal JSON.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15183 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 23:05:03 +00:00
srdjan@google.com 0cc2b949d8 Add source fingerprint computation to function. Will be used to detect unexpected changes of functions in internal library (e.g, the ones used for intrinsification)
Review URL: https://codereview.chromium.org//11416120

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15182 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 23:00:32 +00:00
sra@google.com 67db7be419 Add annotations on native fields and methods
Automatically add annotations on native fields and methods where the
type is known to be a subtype of the API type.  Example: The API is
declared as returning List<Node>, but we know from the IDL that this
is implemented by the native type _NodeList.

Also add some manual annotations.

The optimization is still hidden behind --enable-native-live-type-analysis

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15181 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 22:43:04 +00:00
efortuna@google.com 3e405172cd Rename onSuccess to onComplete in HttpRequest.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15180 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 21:30:32 +00:00
amouravski@google.com 5d2f38c630 Added "// @editable" to all generated members in the HTML lib.
This is included as a way to find exacly the members that will have docs
injected after the fact. The members without @editable are expected to be
documented inline, wherever the source or template is defined.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15179 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 21:04:15 +00:00
regis@google.com d529fe1eea Address review comments of https://codereview.chromium.org/11299020/
Review URL: https://codereview.chromium.org//11418098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15178 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 19:55:05 +00:00
scheglov@google.com 77a612f826 Triage some co19 failures.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15177 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 19:35:26 +00:00
amouravski@google.com 55843bfafb Removing Window.blur() and Window.focus(). This time for real.
See: dev.w3.org/html5/spec/editing.html#document-level-focus-apis

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15176 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 19:12:49 +00:00
scheglov@google.com 62f9fea6ab Issue 6283. Support type literals as expressions.
http://code.google.com/p/dart/issues/detail?id=6283

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15173 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:59:53 +00:00
efortuna@google.com f68a385ec8 Allow force revert for git users as well.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15172 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:58:42 +00:00
whesse@google.com b62f37023f Change dart:io library patch for dart2js to match changes to TlsSocket.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15171 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:56:23 +00:00
scheglov@google.com d1a6c7a68b Don't allow 'abstract' and 'interface' in dart2js anymore
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15170 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:41:22 +00:00
scheglov@google.com 83a0ccafa7 Issue 6770. Support for @deprecated on library directive.
http://code.google.com/p/dart/issues/detail?id=6770

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15169 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:39:17 +00:00
whesse@google.com 53664ced83 Fix typo in type name in test: string -> String.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15167 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:13:41 +00:00
cshapiro@google.com 84aee71eca Use the Equals method for C strings when comparing against C strings.
Review URL: https://codereview.chromium.org//11416094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15166 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 18:08:17 +00:00
ngeoffray@google.com 7a0f3e5eaa Fix bad assumption of environment builder when it comes to nested loops: blocks inside a loop would not get the loop markers of its header. Instead, stack up loop markers when visiting the graph and pop them when being visited.
Review URL: https://codereview.chromium.org//11411068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15164 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 17:49:31 +00:00
whesse@google.com 961699f924 Working tls server sockets.
Add is_server parameter to _TlsSocket, pass it through to _TlsFilterImpl.connect.

Add TlsServerSocket class.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15163 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 17:45:18 +00:00
johnmccutchan@google.com 92d6c1e317 Add support for XMM8..XMM15
Review URL: https://codereview.chromium.org//11358262

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15162 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 17:37:07 +00:00