Commit graph

11328 commits

Author SHA1 Message Date
blois@google.com ed41d7cea2 Changing template file names to key off of the DOM name rather than Dart name.
This avoids name conflicts when the templates are used for different libraries. Should probably also move templates into separate library folders, but we should also be consistent about keying off of DOM names.

SVG changes are from a conflict on the Point type.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15613 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 23:38:29 +00:00
jacobr@google.com ce940c3b0b Document the document class.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15605 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 22:18:40 +00:00
erikcorry@google.com f909853f21 Reapply dart2js: Dot-separated field-and-super descriptor string in classes.
But now we comma-separate the fields, and use semicolon instead of @ for the
super class (because it's smaller!).

R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15587 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 13:37:01 +00:00
kasperl@google.com 0fd3aad646 Decouple the constant handler from the compiler so we can have more than one.
Use a separate constant handler for metadata.

R=sra@google.com,ngeoffray@google.com
BUG=http://dartbug.com/7048

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15582 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 12:42:28 +00:00
erikcorry@google.com db46ac8ddc Revert r15577 dart2js: Dot-separated field-and-super descriptor string...
R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15581 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 12:27:24 +00:00
ahe@google.com d70bcb4bbb Improve measuring
Review URL: https://codereview.chromium.org//11421060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15579 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 12:13:12 +00:00
erikcorry@google.com 98bc64dd09 dart2js: Dot-separated field-and-super descriptor string in class definitions.
This is good for about 1.5% in uncompressed and 0.5% in compressed output.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15577 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 12:06:04 +00:00
aprelev@gmail.com f432155de4 Follow-up to https://chromiumcodereview.appspot.com/11416144/.
Removed checked mode verification from resolution/members.dart. Added equals operator to MalformedType. Cosmetic clean up.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15574 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 11:39:10 +00:00
ager@google.com bf89a3d95e Fix dart2js io patch.
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15572 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 09:54:54 +00:00
ager@google.com 67f052fa04 Add RandomAccessFile.read method and use it for file input stream.
I will deprecate the readList method completely as my next change.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15571 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 09:29:40 +00:00
sgjesse@google.com 5928ec4ccb Improve error handling in HttpClient
Make sure that after an error callback have been made on a
HttpClientConnection no more callbacks will happen. To ensure that the
HTTP parser is canceled to avoid that it continues to process whatever
data was in its internal buffer.

Only ever call one error callback. If the client response input stream
as a n error callback use that otherwise use the one on the
HttpClientConnection object.

R=ager@google.com

BUG=dart:7013, dart:7014

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15570 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 08:04:50 +00:00
sra@google.com bfa5afb2f9 Add @JSName annotation for native fields and methods - second try.
Review URL: https://codereview.chromium.org//11419250

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15569 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 04:45:35 +00:00
blois@google.com 967537f037 Revert "Creating a common library for all DOM types."
This reverts commit 11316113.

This broke snapshotting on Dartium (which I'm quite sure that I tested).

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15566 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 02:51:07 +00:00
blois@google.com 78035ede07 Creating a common library for all DOM types.
BUG=6810

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15564 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 02:27:33 +00:00
efortuna@google.com ea1674e66a Fix dartanalyzer issue with const
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15560 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 01:20:21 +00:00
efortuna@google.com 7aa0ea8350 remove parens from getter
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15558 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 01:11:48 +00:00
efortuna@google.com 33f5214bfc Make KeyboardEvent cross-browser consistent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15557 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 00:53:12 +00:00
antonm@google.com 2f31955164 Sort constructors while renaming.
R=smok@google.com
BUG=6976

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15551 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 23:07:06 +00:00
sra@google.com dc05297012 Generate parameter stubs using ASTs.
Review URL: https://codereview.chromium.org//11411215

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15540 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 20:36:29 +00:00
hausner@google.com 64071c56b5 Fix dartium tests after legacy getter removal
Review URL: https://codereview.chromium.org//11299257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15536 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 19:17:06 +00:00
blois@google.com 76b1800cd6 Splitting the Audio types out of the HTML library.
BUG=3108

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15529 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 17:58:26 +00:00
polux@google.com 93c1be4dfd Ignore functions that have the same name as fields in gets and sets.
Review URL: https://codereview.chromium.org//11414064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15525 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 16:14:18 +00:00
polux@google.com 985223c91a Fix operator handling.
Review URL: https://codereview.chromium.org//11348067

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15524 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 16:07:02 +00:00
polux@google.com e08d148977 Relax some type annotations in concrete type inference.
Review URL: https://codereview.chromium.org//11365150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15523 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 15:59:07 +00:00
lrn@google.com d681878a6d Revert "Switch libraries to using new tags."
It breaks completion in the editor.

TBR=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15516 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 13:44:58 +00:00
erikcorry@google.com 72f1973922 Fix a use of native JS code to avoid substituting lvalues with '#'.
The old version only worked because the optimization substituted this.fieldname
for the getter.

R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15511 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 12:07:05 +00:00
polux@google.com 2ebfc46df3 Handle null in augmentField
Review URL: https://codereview.chromium.org//11415115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15508 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 10:23:31 +00:00
polux@google.com cbd18d2762 Fix handling of sends with wrong arity
Review URL: https://codereview.chromium.org//11412148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15507 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 10:14:05 +00:00
ngeoffray@google.com 6390a1f110 Put back the unit test on optimizing removeLast to pop. Also don't forget that jsArrayRemoveLast might be null in case of unit tests.
Review URL: https://codereview.chromium.org//11316241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15506 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:33:00 +00:00
erikcorry@google.com b6b0165e6a Rename regexp to reflect review feedback on semicolon change.
This is just https://codereview.chromium.org/11363052/ again.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15505 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:22:08 +00:00
ngeoffray@google.com 7af336d0e4 Put back manual inlining of List.add, List.removeLast, String.split and String.concat.
Review URL: https://codereview.chromium.org//11348281

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15500 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:02:52 +00:00
lrn@google.com abd2cf311a Switch libraries to using new tags.
Review URL: https://codereview.chromium.org//11419032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15499 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 08:54:30 +00:00
sra@google.com fe9de5c129 Revert "Add @JSName annotation for native fields and methods."
Review URL: https://codereview.chromium.org//11416257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15494 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:37:27 +00:00
sra@google.com 24ca65f02e Add @JSName annotation for native fields and methods.
This change allows fields to have different Dart and JavaScript names
without resorting to getters and setters using the 'JS' call.

For uniformity, methods have been changed use @JSName too.  The
previous scheme of using a string containing an identifier following
the 'native' pseudo-keyword is now an error.  A non-identifier string,
giving a native body to a Dart function, is still supported.

Members are marked as native during resolution, making the
Element.isNative() predicate more reliable.

Some uses of nativeName have been renamed to nativeTagInfo or
nativeTag to reflect that the strings are actually the class names.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15493 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:16:53 +00:00
blois@google.com 0c75960f5e Making dart2js' HTMLElement private.
The class is only used in Dart2JS and should probably not be public.

BUG=6752

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15492 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:10:43 +00:00
nweiz@google.com 7263b0f65e Add a Futures.forEach function for asynchronously iterating over a collection.
Review URL: https://codereview.chromium.org//11293132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15473 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 21:33:11 +00:00
blois@google.com 911a7ec284 Changes to make it easier to add elements.
BUG=3584

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15469 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 20:28:03 +00:00
blois@google.com f066ff463f Adding @domName annotations to impl files what were missing them.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15462 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:19:35 +00:00
blois@google.com 357d6d8f8c Fixing Exception name conflicts.
BUG=6993

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15457 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 18:14:23 +00:00
ngeoffray@google.com 4a47fb8424 Fix a bad merge that lead to unused optimization: implement the dataEquals in HInterceptor in order to GVN it.
Review URL: https://codereview.chromium.org//11418183

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15453 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 15:50:31 +00:00
whesse@google.com 359759884b Add HttpsServer class and test.
BUG=dart:3593

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15452 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 15:36:10 +00:00
whesse@google.com aa6d244d9c Fix bug in HttpClient, introduced in r15450.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15451 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 14:14:32 +00:00
whesse@google.com d77dfe6ca0 Add support for https scheme in dart:io HttpClient.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15450 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 13:47:17 +00:00
floitsch@google.com dc6b25b1e2 Replace === with identical.
Review URL: https://codereview.chromium.org//11411219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15449 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 12:52:36 +00:00
johnniwinther@google.com c80626368d Canonicalize raw type
Review URL: https://codereview.chromium.org//11413219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15448 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 12:36:54 +00:00
erikcorry@google.com 871f690138 Temporarily reverting class field and method name minification.
BUG=6763

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15445 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 09:26:57 +00:00
johnniwinther@google.com 1b740d60bd Revert "Canonicalize raw type"
This reverts commit r15441.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15444 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 09:04:24 +00:00
ahe@google.com 5b8225c775 Record redirection targets as instantiated in the resolver.
BUG=http://dartbug.com/6894

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 08:59:16 +00:00
johnniwinther@google.com accfec8295 Canonicalize raw type
Review URL: https://codereview.chromium.org//11418173

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15441 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 08:32:29 +00:00
sra@google.com ccb252e155 Emit constants using ASTs, try 2.
The ad-hoc name '$' in addParameterStub captured isolate accesses,
also via '$'.  Renamed the ad-hoc name to '$receiver'.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15437 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 03:57:36 +00:00
sra@google.com 4b3c340f80 Revert "Emit constants using ASTs"
Review URL: https://codereview.chromium.org//11415168

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15436 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 02:59:22 +00:00
sra@google.com 6b297e5cdb Emit constants using ASTs
Cleans up inconsistency reported in Issue 6081.

The main observable difference other than Issue 6081 is that properties in object literals are quoted more intelligently and minify slightly more.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15435 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 02:31:54 +00:00
amouravski@google.com 17a2735ae1 Window.close documentation.
Review URL: https://codereview.chromium.org//11428033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15419 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 22:35:36 +00:00
amouravski@google.com 2f400a15d7 Added DivElement documentation.
Review URL: https://codereview.chromium.org//11421102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15409 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 19:36:19 +00:00
blois@google.com 1e4228bada Fixing attribute map.
Another conflict where I renamed namespaceURI to namespaceUri but forgot to update.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15408 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 18:37:13 +00:00
blois@google.com e4f7754862 Fixing renamer- I messed up a merge and broke the renaming from the CL to dartify members.
This caused the generator to emit members it should not have.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15407 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 18:08:22 +00:00
blois@google.com 2688c60a05 Dartifying members.
Updating dart:html to generate members which follow the Dart naming guidelines.

BUG=4830

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15405 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 17:38:23 +00:00
ngeoffray@google.com 65a0ccaa3b Fix problems due to unit testing of the compiler.
Review URL: https://codereview.chromium.org//11308227

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15400 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 16:33:16 +00:00
ngeoffray@google.com 695b2f9160 Create specialized versions of getInterceptor.
Review URL: https://codereview.chromium.org//11413184

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15398 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 16:01:29 +00:00
ahe@google.com b3b5fae384 Grow type map exponentially.
Review URL: https://codereview.chromium.org//11280183

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15393 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 14:20:49 +00:00
ahe@google.com 1e4a2d4853 Diagnose unbalanced parentheses better.
Review URL: https://codereview.chromium.org//11092101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15386 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 12:20:39 +00:00
ager@google.com ba7992f7e7 Support Windows share paths in the Path class.
Use that to implement Directory.create(recursive: true) in a way that
works with shares.

The Path implementation has an additional piece of state. The
actual path is treated like an absolute path except for
toNativePath which adds back the extra backslash. The additional
state is preserved in operations that produce new paths.

R=sgjesse@google.com
BUG=dartbug.com/6904

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15385 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 12:03:09 +00:00
ahe@google.com ae3b1eed0d Report parser error if a class isn't terminated by }.
Review URL: https://codereview.chromium.org//11348216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15383 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 11:47:59 +00:00
ngeoffray@google.com 628b913a3d Re-apply issue 11308169: GVN getInterceptor and use the interceptor constant when the type is known.
Review URL: https://codereview.chromium.org//11421056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15380 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 11:12:48 +00:00
ahe@google.com 4b230f0f73 Faster implementation of HTypeMap.
Review URL: https://codereview.chromium.org//11414146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15379 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 10:14:56 +00:00
whesse@google.com 49d23f1c0a Add onError to dart:io SecureSocket. Allow onConnect and outputStream to coexist on Socket and SecureSocket.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15378 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 10:09:35 +00:00
ngeoffray@google.com a5c9b8e890 Fix braino in Selector.==: check the kind too.
Review URL: https://codereview.chromium.org//11348243

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15373 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 09:14:35 +00:00
ngeoffray@google.com 9ccf72e9e8 Fix typo.
Review URL: https://codereview.chromium.org//11299195

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15371 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 08:23:05 +00:00
ngeoffray@google.com 5f46e4200a Fix performance regression: do not call interceptors.getInterceptedClassesOn direclty, but call this.getInterceptedClassesOn which does the necessary checks to know if we can omit a getInterceptor call.
Review URL: https://codereview.chromium.org//11416164

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15370 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 08:18:39 +00:00
vsm@google.com 117f34bc8e Use worker pools in go.sh/databasebuilder.py.
This should keep us from running out of processes on the Mac.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15364 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 03:16:03 +00:00
blois@google.com 749e532704 Cleaning up some unused code.
Just removing an template file which is no longer being used and a class which is not being used either.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15362 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 01:04:56 +00:00
amouravski@google.com ed22abc961 HTML human writable docs working end to end!... mostly...
Included is the first bit of hand-written HTML docs in MenuElement (since it
was first on the list of files.)

Note that this CL is a super set of https://codereview.chromium.org/11280133/

Things are still very, very fragile, but it works!

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15360 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 00:38:46 +00:00
jacobr@google.com 89a7f02f98 The JSON could be used in the future to dynamically rendered DartDocs in the browser.
Known issue: MDN docs for dart:html are not merged into the JSON.
The json_serializer code is ugly and should go away at some point soon. Please don't spend a lot of time picking it apart as it is largely throw away code.

Ignore the change to dart2js_mirror.dart
It is being reviewed separately at https://codereview.chromium.org/11418106/

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15358 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 00:18:54 +00:00
jacobr@google.com 56c21bc632 Fix bug in how AsFilteredImmutableMap was used in dart2js_mirror.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15357 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 00:15:37 +00:00
efortuna@google.com a4e05f2e08 Use Window.performance.now if available, with correct frequency value
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15353 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 23:33:48 +00:00
blois@google.com 76c0f143f9 Removing duplicated events.
Document and DocumentFragment events derive from ElementEvents, but our generation wasn't really accounting for it.

BUG=5414

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15350 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 22:55:25 +00:00
efortuna@google.com 73c9204347 "Reverting 15343"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15349 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 22:10:40 +00:00
blois@google.com cd347e5346 Adding support for accessing attributes in alternate namespaces.
BUG=5395

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15347 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 21:47:53 +00:00
efortuna@google.com bb4629f82b Let stopwatch use window.performance.now when available. Fix for: http://code.google.com/p/dart/issues/detail?id=4312
BUG=4312

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15343 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 20:16:35 +00:00
sra@google.com 5f5751b669 Fix missing classes in native emitters superclass info.
Also tidied up the dispatch metadata generator.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15340 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 19:34:16 +00:00
erikcorry@google.com 36c87a1da2 Dart2js: Fix stack overflow in new String.fromCharCodes bug=6919
R=floitsch@google.com
BUG=6919

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15308 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 12:31:10 +00:00
aprelev@gmail.com d551a69370 Produce run-time error when type parameters are accessed from static context.
BUG=dartbug.com/5231
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15292 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 16:53:04 +00:00
johnniwinther@google.com 4fc5af9ecb Substitution added to DartType
Review URL: https://codereview.chromium.org//11418113

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15290 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 15:57:44 +00:00
erikcorry@google.com 43af6bf177 Remove wrong assert in string validator.
Out of range unicode escapes are handled with a regular error message, an
assert is not needed.

R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15289 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 14:34:42 +00:00
ngeoffray@google.com 943b07d72e Address review comments on issue 11412105.
Review URL: https://codereview.chromium.org//11411147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15282 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 13:08:11 +00:00
karlklose@google.com b88bc3bfcc Fix runtimeType for List and bool. The type arguments were lost in when merging with the new interceptor style.
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15277 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 10:02:29 +00:00
sgjesse@google.com 7805f03972 Generate an error for active connections when the HTTP client is shutdown
Before the underlying sockets where just silently closed causing no more IO events on active connections no matter what state they where in.

Also added an optional "force" argument to HttpClient.shutdown. If that is false (the default) The HttpClient will not close active connections until they are done. This causes all pkg/http and pub tests to pass.

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

BUG=dart:6594

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15275 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:28:34 +00:00
whesse@google.com 15d5c6b582 Rename TlsSocket to SecureSocket, and all other Tls... items to Secure....
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15274 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:21:48 +00:00
sra@google.com 812c7fe0b6 Tolerate FF17's CSS2Properties
Some help for Issue 5927.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15271 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 02:10:06 +00:00
ngeoffray@google.com 7412f30241 Revert r15265 due to checked mode failures.
Review URL: https://codereview.chromium.org//11418132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15269 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 17:12:24 +00:00
whesse@google.com 0807c2662b Implement input and output streams for secure network sockets.
BUG=dart:6701

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15267 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 16:37:10 +00:00
ngeoffray@google.com 218c3ed3ff GVN getInterceptor and use the interceptor constant when the type is known.
Review URL: https://codereview.chromium.org//11308169

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15266 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 16:25:37 +00:00
whesse@google.com 507c2b67c7 Fix secure socket tests to close sockets after writing. Fix handling of close events in TlsSocket class.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15265 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 15:45:54 +00:00
ngeoffray@google.com 3f0ef3dd1a Fix error spotted by Karl.
Review URL: https://codereview.chromium.org//11414131

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15264 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 15:43:11 +00:00
karlklose@google.com 973e4623e7 Fix wrong type annotations.
Review URL: https://codereview.chromium.org//11299155

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15263 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 15:38:33 +00:00
karlklose@google.com 7ed9cb9306 Change === to identical in the dart2js source.
Review URL: https://codereview.chromium.org//11419118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15260 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:47:57 +00:00
karlklose@google.com cedae29dff Fix a type annotation in the parser to make it accept non-literal strings as part URIs in checked mode.
Review URL: https://codereview.chromium.org//11412147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15259 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:46:49 +00:00
ngeoffray@google.com c822bbfaff Fix unit tests.
Review URL: https://codereview.chromium.org//11316146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15257 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:31:26 +00:00
ngeoffray@google.com 64b9e99bd0 Do not generate empty native classes. Fixes issue 6872.
Review URL: https://codereview.chromium.org//11415114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15256 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:12:31 +00:00
karlklose@google.com b9b03826a8 Simplify runtime type support.
1. Store the class name on the JS constructor and only attach runtime type information to objects that need information about their type arguments.

2. Generate the runtime type string at runtime.

3. Change the structure of runtime type information to an array and access type arguments by index.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15255 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 13:32:08 +00:00
erikcorry@google.com 359736e97a Fix Unicode issues in dart2js and dart2dart.
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15254 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 12:51:14 +00:00
smok@google.com aa0a3185b9 [dart2dart] Do not crash on unresolved named constructor
Review URL: https://codereview.chromium.org//11416138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15251 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 12:32:33 +00:00
smok@google.com 204eff654c [dart2dart] implement factory redirects
factory->factory->constructor redirects are not supported yet.

BUG=6634

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15250 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 12:30:48 +00:00
ngeoffray@google.com 23b055f3d1 Don't use 'new Function' for lazily initialized getter.
Review URL: https://codereview.chromium.org//11419119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15249 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 12:25:13 +00:00
ngeoffray@google.com 16a6f1f812 Be spec compliant. Fix issue 6870.
Review URL: https://codereview.chromium.org//11280141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15248 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 12:19:45 +00:00
ager@google.com 5ddf3ceadd Add verify method to HMAC instances to have a comparison utility that does not leak information through timing.
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15245 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 11:49:02 +00:00
ngeoffray@google.com 74ff79dec4 Put back optimization on fixed-size array.
Review URL: https://codereview.chromium.org//11413139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15244 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 08:52:34 +00:00
ngeoffray@google.com 33322164fc Fix checked mode failures after List became an abstract class.
Review URL: https://codereview.chromium.org//11413138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15243 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 08:39:37 +00:00
ajohnsen@google.com 0f367f8894 Make List an abstract class.
This was the last interface in dart:core.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15240 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 07:40:52 +00:00
sra@google.com 196041f8ca Redo "Generate native class metadata as a JavaScript AST."
Review URL: https://codereview.chromium.org//11419127

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15238 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 04:01:57 +00:00
sra@google.com ad259ffb62 Revert "Generate native class metadata as a JavaScript AST."
Review URL: https://codereview.chromium.org//11413136

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15237 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 03:50:30 +00:00
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
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
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
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
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
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
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 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
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
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
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
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
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
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
karlklose@google.com d2dbd01a0f Support type literals as compile-time constants.
Review URL: https://codereview.chromium.org//11299009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15154 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 15:43:27 +00:00
erikcorry@google.com 84da84c22d Revert "Add some support for the code-point code-unit distinction."
This reverts commit r15150

R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15152 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 15:23:41 +00:00
vsm@google.com 43851494a8 Phase out local storage usage in PortSync code
Review URL: https://codereview.chromium.org//11415064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15151 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 15:00:17 +00:00
erikcorry@google.com 547cbf9da6 Add some support for the code-point code-unit distinction.
Adds String.fromCodeUnits and String.codeUnitAt, and modifies
String.fromCodePoints and String.codePointAt to actually use code points.
Fixes String.charCodes to use code points and adds String.codeUnits.
Reenables some tests, and adds new ones for non-BMP characters.
Fixes issues 6418, 6501 and 1357.

R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15150 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 14:51:25 +00:00
ager@google.com e04d4d03c6 Add utility methods to write the contents of a file as one operation.
We already have them for reading and it makes sense to have them for
writing as well.

We should update the positional arguments in the dart:io library to be
named optional arguments. I'd like to do that in a separate patch.

R=sgjesse@google.com
BUG=dartbug.com/4798

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15149 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 13:47:13 +00:00
ngeoffray@google.com 1b659aa78b Move the iterator interceptor to the new interceptor scheme.
Review URL: https://codereview.chromium.org//11280087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15145 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 12:23:39 +00:00
ngeoffray@google.com 1676d18766 Move hashCode and runtimeType into new interceptors scheme.
Review URL: https://codereview.chromium.org//11412097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15143 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 11:35:35 +00:00
ngeoffray@google.com aac2beae86 Add JSNull, JSBool and JSFunction, and move toString into the new interceptor scheme.
Review URL: https://codereview.chromium.org//11348133

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15142 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 11:00:57 +00:00
karlklose@google.com 59a72aea46 Add TypeImpl.hashCode.
BUG=http://code.google.com/p/dart/issues/detail?id=6785

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15140 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 10:33:46 +00:00
karlklose@google.com b98cc42914 Fix some type annotations.
Review URL: https://codereview.chromium.org//11416034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15139 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 10:04:53 +00:00
lrn@google.com 22309b260c Remove NullPointerException.
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15136 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 09:21:52 +00:00
sgjesse@google.com 127e648385 Change the HTTP close handling
Whenever the client closes its connection the server will follow and
close as well.

R=ager@google.com

BUG=dart:4652

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15135 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 08:20:37 +00:00
amouravski@google.com df3ea8d652 Revert "Removed Window.focus and Window.blur as they are no longer recommended."
This reverts commit a3e1c6f6aed047b93ae1a967071de88cfa8a6acb.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15134 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 07:02:08 +00:00
amouravski@google.com d4ee9434dd Added a lot more documentation to Window.
It'll take one more CL to finish Window off.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15132 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 06:30:40 +00:00
amouravski@google.com e019728497 Removed Window.focus and Window.blur as they are no longer recommended.
See: dev.w3.org/html5/spec/editing.html#document-level-focus-apis

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15131 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 06:22:22 +00:00
blois@google.com 88ca56ddb7 Fixing geolocation on Firefox and IE.
BUG=6733

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15125 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:56:51 +00:00
sra@google.com 9c1a205117 Add custom annotations to some APIs for native tree shaking.
Review URL: https://codereview.chromium.org//11308075

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15121 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:35:58 +00:00
blois@google.com d1da6affdd Deprecating Element.elements for Element.children.
BUG=3584

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15118 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:01:13 +00:00
blois@google.com 759bece562 Dartifying SVG library class names.
This CL is based on my previous CL to split out the SVG library.

Basically it renames most classes, but because of some name conflicts around Element and Document, I've skipped those. Renaming those classes will require some sizable changes to the generation code to emit library prefixes when referencing types across libs.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15107 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 20:38:13 +00:00
blois@google.com a2e26e1daf Dart generation changes for splitting apart resolvers.
patch from issue 11316020

BUG=6722

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15099 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 18:47:57 +00:00
amouravski@google.com b528266e14 Fix for triple-slash dartdocs
They had been ignoring multiline markdown such as code samples.
More information available at:
http://japhr.blogspot.com/2012/11/troubleshooting-triple-slash-dartdocs.html

This also includes a new test file, though I am unsure if the
paths are correct.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15095 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 17:37:20 +00:00
ngeoffray@google.com 567a719b08 Remive uses of "void operator[]() => ..." in the html library and enable return type checks for all returns.
Review URL: https://codereview.chromium.org//11417060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15093 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 17:31:05 +00:00
ngeoffray@google.com 5c8fe43e9f Fix host-checked mode failures.
Review URL: https://codereview.chromium.org//11414062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15090 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 16:16:36 +00:00
ngeoffray@google.com 68dd220bfc Fix a crash in the compiler where an ssa instruction was using itself.
Review URL: https://codereview.chromium.org//11420060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15089 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 16:15:03 +00:00
ngeoffray@google.com c5a7fb75b0 Add JSNumber, JSInt and JSDouble for the new interceptor scheme.
Review URL: https://codereview.chromium.org//11348129

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15085 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 14:53:14 +00:00
ngeoffray@google.com c2c0427204 Fix bug in dart2js where the return type in a bailout version was not registered.
Review URL: https://codereview.chromium.org//11414057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15079 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:53:22 +00:00
ngeoffray@google.com d92cacb40e Move more methods to the new interceptor scheme, and support having the same method in two intercepted classes.
Review URL: https://codereview.chromium.org//11280034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15078 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:34:16 +00:00
lrn@google.com 3450798a1d Make Exception a class, not an interface, and remove the const constructor.
We should consider removing the constructor entirely, there is never a good excuse for throwing a non-descript Exception. If you do, it should likely be an Error instead.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15077 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:23:23 +00:00
sgjesse@google.com 6e09071a58 Make HTTP server close sockets when closed in idle state
If a connection was in the idle state and the socket was closed by the
client the server did close the connection. This caused the server to
quickly run out of resources. There was a state check missing after a
state change.

Added a COSING state as well and a way to get the number of
connections if various states.

R=ager@google.com, ajohnsen@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15069 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 11:11:00 +00:00
lrn@google.com 0c8dce77f1 Revert "Remove NullPointerException."
Crashes in the x64 VM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15065 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:59:59 +00:00
lrn@google.com e211c2f0ee Remove NullPointerException.
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15061 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 08:51:49 +00:00
ngeoffray@google.com 9ae8f3b4e1 Forgot to change the condition to be true in a do/while loop that has phi updates: the condition has already been evaluated.
Review URL: https://codereview.chromium.org//11419056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15059 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 07:32:26 +00:00
sra@google.com 28ba86d96e Remove _NodeListWrapper, make NodeList less special.
Review URL: https://codereview.chromium.org//11413053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15054 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-18 22:44:22 +00:00
dgrove@google.com ed80b0a2fb Change Element -> E, remove warnings when running dart2js.
Review URL: https://codereview.chromium.org//11280046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15051 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 16:26:52 +00:00
efortuna@google.com 88d677a766 Fixes that dart2js analyze-all found.
BUG=6691

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15049 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 02:51:04 +00:00
efortuna@google.com a9d1cb16db Add constructors for SVG elements and remove static factory providers for html
elements with fix for optional parameters.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15045 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 23:31:26 +00:00
floitsch@google.com f6fa33d28b Add List.first.
BUG=http://dartbug.com/1790

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15040 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:58:01 +00:00
floitsch@google.com 7382cc8756 Revert "Add List.first."
This reverts commit r15036.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15038 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:33:49 +00:00
floitsch@google.com 7f5ac55b45 Add List.first.
BUG=http://dartbug.com/1790

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15036 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:15:02 +00:00
ngeoffray@google.com d4e84b1d01 At SSA build-time, change the block information that we attach to loop with aborting bodies.
Review URL: https://codereview.chromium.org//11414029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15031 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 19:25:33 +00:00
blois@google.com e60a29db83 Updating CSS styles.
This is just re-running the css_code_generator script to update the list of CSS styles.

I'm not sure why the parameters were var rather than String, but they call setProperty which is typed to a string, so it seems that String is correct.

BUG=3828

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15028 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:53:20 +00:00
jmesserly@google.com fa37636797 "Reverting 15020"
Review URL: https://codereview.chromium.org//11412042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15025 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:34:08 +00:00
amouravski@google.com 99127ef9e4 Added top level definition to Window.
Review URL: https://codereview.chromium.org//11416028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15022 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:06:24 +00:00
blois@google.com 32ea129cc1 Removing the unused AttributeMap class.
BUG=6749

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15021 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:01:56 +00:00
efortuna@google.com 2c8a8888e6 Add constructors for SVG elements and remove static Factory providers for Html
elements.
Review URL: https://codereview.chromium.org//11293292

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15020 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:57:03 +00:00
blois@google.com b7825954e6 Making Element abstract.
BUG=6747

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15018 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:47:17 +00:00
ngeoffray@google.com c01dd5753a Avoid critical edge on do/while, and do not make handleLoopInfo return conditionnaly false: block based and dominator based traversal in codegen don't compose. Therefore have the block based visit handle the phi updates.
Review URL: https://codereview.chromium.org//11299011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15017 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:10:16 +00:00
ngeoffray@google.com 503c71cdd5 Use the constant system to do a subtype type in the compile time constant handler. This is needed because of how we treat int and double specially.
Review URL: https://codereview.chromium.org//11419037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15014 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 16:36:14 +00:00
ager@google.com 3fb41705e5 Rename File.readAsText to File.readAsString. There is no Text type in Dart
and the methods return Strings.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15011 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:10:15 +00:00
ager@google.com 927aa5670c Include command in ProcessException.
R=sgjesse@google.com
BUG=dartbug.com/4060

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15010 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:03:29 +00:00
ngeoffray@google.com e6b804fb6c Add a new interceptor class JsArray, and support intercepting some list methods with the new interceptor scheme.
Review URL: https://codereview.chromium.org//11275316

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15009 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 12:32:57 +00:00
ngeoffray@google.com dd9ff17708 Fix this longstanding bug that luckily did not bite us yet: Use Class.prototype.foo$bailout.call(this, ...) to call a bailout method instead of this.foo$bailout to avoid executing the bailout method of a subclass.
Review URL: https://codereview.chromium.org//11416007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15008 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 11:56:18 +00:00
ahe@google.com f5c804380f Reject deprecated language features.
Or rather, provide the following options which do:

  --reject-deprecated-language-features
    Reject deprecated language features.  Without this option, the
    compiler will accept language features that are no longer valid
    according to The Dart Programming Language Specification, version
    0.12, M1.

  --report-sdk-use-of-deprecated-language-features
    Report use of deprecated features in Dart platform libraries.
    Without this option, the compiler will silently accept use of
    deprecated language features from these libraries.  The option
    --reject-deprecated-language-features controls if these usages are
    reported as errors or warnings.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15007 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 11:41:05 +00:00
erikcorry@google.com fe0c55a728 Rename classes, methods and fields when minifying
This is a retry of a change that was reverted due to test failures.  The
difference to last time you saw this is:

diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 9de758e..19fb966 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -689,9 +689,9 @@ class JavaScriptBackend extends Backend {
   }

   static Namer determineNamer(Compiler compiler) {
-    // TODO(erikcorry): Use the MinifyNamer depending on
-    // compiler.enableMinification.
-    return new Namer(compiler);
+    return compiler.enableMinification ?
+        new MinifyNamer(compiler) :
+        new Namer(compiler);
   }

   Element get cyclicThrowHelper {
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 9056858..9485bc1 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -795,7 +795,7 @@ function(prototype, staticName, fieldName, getterName, lazyValue) {
       additionalArgument = ", '${namer.operatorIs(type.element)}'";
     }
     String setterName =
-        namer.setterName(member.getLibrary(), new SourceString(accessorName));
+        namer.publicSetterName(new SourceString(accessorName));
     buffer.add("$setterName: function(v) { "
         "this.$fieldName = $helperName(v$additionalArgument); }");
   }
@@ -1348,11 +1348,14 @@ $classesCollector.$mangledName = {'':
       }
       String internalName = namer.instanceMethodInvocationName(
           selector.library, new SourceString(methodName), selector);
+      Element createInvocationMirror =
+          compiler.findHelper(const SourceString('createInvocationMirror'));
       CodeBuffer buffer = new CodeBuffer();
       buffer.add('function($args) {\n');
       buffer.add('  return this.$noSuchMethodName('
-                     '\$.createInvocationMirror("$methodName", "$internalName",'
-                     ' $type, [$args], [$argNames]));\n');
+                        '${namer.isolateAccess(createInvocationMirror)}('
+                            '"$methodName", "$internalName",'
+                            '$type, [$args], [$argNames]));\n');
       buffer.add(' }');
       return buffer;
     }
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
index 4ca0554..cd0529f 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
@@ -16,7 +16,14 @@ class MinifyNamer extends Namer {
   const ALPHANUMERIC_CHARACTERS = 62;  // a-zA-Z0-9.

   String getFreshName(String proposedName, Set<String> usedNames) {
-    var freshName = _getUnusedName(proposedName, usedNames);
+    var freshName;
+    if (proposedName.startsWith(r'call$')) {
+      // We don't mangle the closure invoking function name because it is
+      // generated in applyFunction.
+      freshName = proposedName;
+    } else {
+      freshName = _getUnusedName(proposedName, usedNames);
+    }
     usedNames.add(freshName);
     return freshName;
   }
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index c8522a0..9f5b65d 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -211,6 +211,13 @@ class Namer {
     return 'get\$$fieldName';
   }

+  String publicSetterName(SourceString name) {
+    // We dynamically create setter from the field-name. The setter name must
+    // therefore be derived from the instance field-name.
+    String fieldName = name.slowToString();
+    return 'set\$$fieldName';
+  }
+
   String getMappedGlobalName(String proposedName) {
     var newName = globalNameMap[proposedName];
     if (newName == null) {
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
index 1c9d772..1d50aa4 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
@@ -188,9 +188,9 @@ class _Manager {
   }

   void _nativeDetectEnvironment() {
-    JS("void", r"#.isWorker = $isWorker", this);
-    JS("void", r"#.supportsWorkers = $supportsWorkers", this);
-    JS("void", r"#.fromCommandLine = typeof(window) == 'undefined'", this);
+    JS("void", r"# = $isWorker", isWorker);
+    JS("void", r"# = $supportsWorkers", supportsWorkers);
+    JS("void", r"# = typeof(window) == 'undefined'", fromCommandLine);
   }

   void _nativeInitWorkerMessageHandler() {

R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15005 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 10:41:07 +00:00
sgjesse@google.com 8d0d1e87f8 Added file missing file from previous commit
TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15003 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:45:20 +00:00
sgjesse@google.com cf01064d80 Refactor the HTTP parser to collect headers
The headers are now collected directly in the HTTP parser instead of
it emitting events for each header line parsed. One event (request or
response) is now emitted when the full header is parsed.

Had to move the HTTP header object implementation for this change.

Also included a changing the request/response state constants to
static constants instead of final fields.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15002 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:42:36 +00:00
karlklose@google.com 8d3a51e422 Use abstract classes instead of interfaces in dart2js.
Review URL: https://codereview.chromium.org//11368080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15001 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:06:39 +00:00
karlklose@google.com cdbf6e2a0a Do not canonicalize Type instances.
Review URL: https://codereview.chromium.org//11417005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15000 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 08:33:35 +00:00
blois@google.com 3372f679b8 Unmerging HTMLDocument from Document, moving appropriate methods from Document to HTMLDocument, fixing issues around Document not being correctly wrapped for some XMLDocuments.
BUG=6453,3420,2977,5526

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14996 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 01:17:27 +00:00
blois@google.com a018b07729 Revert "Dart generation changes for splitting apart resolvers."
This reverts commit 11316020.

This broke dartium because of some deps issues with the generated file.

TBR=antonm
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14994 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:58:55 +00:00
blois@google.com 6f7058fde0 Dart generation changes for splitting apart resolvers.
BUG=6722

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14991 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:25:03 +00:00
amouravski@google.com 61af45da19 Removed DivElement align property as it is obsolete.
Review URL: https://codereview.chromium.org//11416023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14986 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 23:10:19 +00:00
sra@google.com fb18d73b92 Add NativeEnqueuer to work with the Enqueuer.
Review URL: https://codereview.chromium.org//11304021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14977 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 21:00:11 +00:00
vsm@google.com 1358f7ab02 Added raytracer to gl samples.
Review URL: https://codereview.chromium.org//11362256

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14974 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 20:22:27 +00:00
blois@google.com 98b389c642 Adding missing 'part of html' statements.
BUG=6572

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14969 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 17:36:32 +00:00
ager@google.com f90b55ac7b Do not use StringBuffer to create strings from individual char
codes in the HTTP parser.

This was simple to do but we really should fix the performance of the
string buffer for this case.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14967 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 15:24:44 +00:00
sgjesse@google.com 35d8203588 Collect the HTTP header in a byte buffer and send it all at once.
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14965 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 14:40:23 +00:00
ager@google.com b8ebc6f96c Avoid repeated lower-casing of the same string when adding HTTP
headers.

R=sgjesse@google.com,ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14956 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 12:19:02 +00:00
lrn@google.com cadc7c565e Reapply "Exception no longer an interface."
Review URL: https://codereview.chromium.org//11415006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14954 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 11:49:35 +00:00
ager@google.com 7d834933c3 Don't copy Int8Arrays when passing them in as lists of bytes and don't
call from C to Dart to get the values either.

Just copying the values over as is will behave the same as it does
now and will be a lot faster.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14951 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 11:03:02 +00:00
ahe@google.com a0d271a22c Clean up operator names.
Review URL: https://chromiumcodereview.appspot.com//10905211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14942 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 07:41:51 +00:00
ahe@google.com 6e6a322f4f Track the origin element of inlined arguments to super constructor.
Review URL: https://codereview.chromium.org//11364212

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14941 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 07:02:25 +00:00
ahe@google.com e004d21e19 Fix a couple of bugs in handling of factory redirections.
Review URL: https://codereview.chromium.org//11312245

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14940 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 06:34:50 +00:00
blois@google.com 9249b571ab Removing the Window.clientInformation property as it's an IE legacy version of Window.navigator.
BUG=5865

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14931 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 00:17:19 +00:00
blois@google.com 45244eec70 Removing all remaining abstract method modifiers from dart:html.
BUG=6188

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14930 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 23:57:09 +00:00
blois@google.com 31d0dce12e Fixing SVGElement.classes.
BUG=5008

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14929 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 23:38:38 +00:00
blois@google.com e3fc690bbd Un-hiding Node.nodeType.
BUG=4754

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14923 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 22:31:33 +00:00
blois@google.com 7df8d41e84 Removing window.prompt.
BUG=1366

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14922 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 22:08:02 +00:00
efortuna@google.com 6dc3ba672a Rename addHTML to addHtml.
Review URL: https://codereview.chromium.org//11409003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14921 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 21:55:27 +00:00
blois@google.com cb048257a6 Removing Event.srcElement.
Event.srcElement is a non-standard legacy API, not supported on Firefox.

Bug 5206 requests that the return type be changed to Element, but IE types it as an Object and Opera as  Node. I think we should just remove it.

BUG=5206

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14909 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 17:59:40 +00:00
blois@google.com 961adb86f2 Fixing location APIs in checked mode. On Firefox, these setters are returning the String value which was set and causing errors.
BUG=6664

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14904 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 17:30:02 +00:00
ngeoffray@google.com 39e4908846 Move JsString into its own file.
Review URL: https://codereview.chromium.org//11275313

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14899 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 16:21:28 +00:00
floitsch@google.com 3e2f323981 Dynamic -> dynamic.
Review URL: https://codereview.chromium.org//11312237

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14898 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 15:33:25 +00:00
whesse@google.com 05d8c37c1d Add tls_socket.dart to sdk/lib/io/io.dart.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14895 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 14:00:48 +00:00
whesse@google.com 9dfdb4850c Add a TlsSocket class to dart:io, that implements secure client sockets using TLS (SSL).
This uses the NSS (Network Security Services) libraries from Mozilla, which is a cross-platform library for SSL and TLS sockets.  We use the patched version from the Chromium repository, which is checked into third_party by the DEPS file.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14893 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:38:32 +00:00
ahe@google.com d5aab7542d Reword an error message, and test that the error is produced.
Review URL: https://codereview.chromium.org//11377155

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14889 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:16:03 +00:00
ahe@google.com 36e966024d Document --analyze-all option.
Review URL: https://codereview.chromium.org//11363240

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14886 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:48:27 +00:00
lrn@google.com 929970a95c Change <T> to <E> in Sequence<T> and subclasses.
One T was an error, and should already be E.

BUG=6690

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14884 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:25:26 +00:00
ngeoffray@google.com b8b04e8a56 Support corelib tests in checked mode.
Review URL: https://codereview.chromium.org//11361257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14882 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:09:22 +00:00
ngeoffray@google.com c51c9d54c5 Move some string methods in the interceptor, and support for optional parameters in intercepted methods.
Review URL: https://codereview.chromium.org//11366224

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14881 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:03:59 +00:00
antonm@google.com fff76e072a Fix incorrect names.
R=podivilov@chromium.org
BUG=6644

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14879 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 10:31:01 +00:00
ahe@google.com 5b2656ec44 Implement --analyze-all option.
Review URL: https://codereview.chromium.org//11293244

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14878 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 09:47:58 +00:00
ngeoffray@google.com 476bd57a69 Add a getter interceptor to the new interceptor scheme. Also cleanup the "this" that turns into a receiver hack, so that a method in an intercepted class can call another method of itself.
Review URL: https://codereview.chromium.org//11358217

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14876 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 09:16:34 +00:00
ajohnsen@google.com b7b3bb5919 Make ReceivePort an abstract class.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14849 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 14:05:43 +00:00
lrn@google.com 87eec0ef1f Revert "Exception no longer an interface."
Broke more than expected.

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14848 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 14:04:19 +00:00
lrn@google.com def3ee60a5 Exception no longer an interface.
Some tests disabled due to dartbug.com/6697

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14847 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 13:42:51 +00:00
ngeoffray@google.com a742983dd5 Start new design for interceptors and implement String.charCodeAt with it.
Review URL: https://codereview.chromium.org//11365170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14845 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 12:59:53 +00:00
lrn@google.com 4a18bbf916 Remove deprecated exception classes.
Review URL: https://codereview.chromium.org//11360224

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14843 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 12:22:54 +00:00
sgjesse@google.com c27bd8bb28 Refactoring of the HTTP library
Better state handling: On both server and client the state of the
connection is tracked. This goes for both the HTTP
request/response state (idle, active, done) and the socket
state (open, read closed, write closed).

Simplified the socket event handling: All socket onData, onClosed
and onError events go directly to the HTTP parser. The HTTP
connection only receives events from the HTTP parser now.

Better close handling: A close queue have been added where
sockets which should be closed are added. When in the close queue
the socket will be closed when either all data from the output
stream are written or an error occours.

Changed the HTTP parser to parse either requests or responses.

Removed the null-checks in the HTTP parser for whether the
callbacks where set. The HTTP parser is only used internally and
we always set all callbacks.

Whether it fixes the bugs listed below still needs to be verified
through thorough testing on all platforms. However the code should be
in much better shape from this refactoring.

R=ager@google.com

BUG=dart:6393, dart:6521, dart:6594

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14840 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 11:19:59 +00:00
ajohnsen@google.com 970cc5ba68 Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl.
After this cleanup, RegExp no longer have a const constructor. Use 'new
RegExp(...)' from now on.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14838 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:41:37 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com 1daf6eb5ee Correctly pass constructor arguments to _HMAC.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14836 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:05:55 +00:00
ajohnsen@google.com 8e10088843 Make interfaces into abstract classes in 'dart:crypto'.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14835 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 09:48:14 +00:00
sgjesse@google.com dc7d5fa7cf Byte array documentation fix
R=cshapiro@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14834 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 08:25:41 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 0dbc2e6eaa Two more files with const RegExp.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14832 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:11:19 +00:00
ajohnsen@google.com 1e471c2c5e Fix const RegExp -> final RegExp in a dartdoc file.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14831 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:05:07 +00:00
ajohnsen@google.com 2b4fb1a50f Change const Regexp -> new RegExp in a few HTML files.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14830 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:58:53 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
blois@google.com ed44b9285d Splitting SVG types out of dart:html.
Beyond this CL I need to remove the SVG prefix for most of the classes, but this is an additional chunk of work.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14808 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 21:15:06 +00:00
efortuna@google.com b52d834a31 Add generated files.
Review URL: https://codereview.chromium.org//11365209

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14806 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 20:26:48 +00:00
hausner@google.com b2cbdba375 Remove named function literals from library and tests
Start eliminating old-style function literals, i.e. remove
return type and function names.

Enforcing new style function literal syntax can be turned
on with the vm flag --strict_function_literals.
Review URL: https://codereview.chromium.org//11377102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14805 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 19:55:11 +00:00
efortuna@google.com 23c2d17930 Make KeyCode constants const.
Review URL: https://codereview.chromium.org//11362207

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14804 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 19:39:05 +00:00
blois@google.com 50cbd0fcaa Fixing an issue where optional parameters were having their types dropped.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14799 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 18:32:26 +00:00
floitsch@google.com 8e6f238f86 a === b -> identical(a, b)
Replace === null with == null.

BUG=http://dartbug.com/6380

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14794 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 17:19:58 +00:00
ahe@google.com e44285367c Remove dependency on dart:json.
Review URL: https://codereview.chromium.org//11364025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14790 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:59:24 +00:00
antonm@google.com df55ddbbb6 Introduce missing arguments in HTMLSelectElement.remove.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14788 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:31:50 +00:00
ngeoffray@google.com ddca63f78e Update get$hashCode to not use JS for most uses. Also fix issue 6522 where the hashCode of a String was always 0.
Review URL: https://codereview.chromium.org//11369181

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14785 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:10:11 +00:00
kustermann@google.com b7781fb10d dart2js: Added support for writing dependency information into a file.
Having a way to detect if a dart application was modified is
very useful. In particular the test infrastructure can use it
to reduce redundant dart2js compilations. In order to do that,
the dependencies of the dart application are needed.

The added code will write the dependency information to a '*.js.deps' file.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14780 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 08:37:51 +00:00
lrn@google.com 1555c1db26 Convert String to a class.
Remove the StringImplementation class.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14779 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 08:16:59 +00:00
johnniwinther@google.com 5cacad7264 Report errors on duplicate export.
Review URL: https://chromiumcodereview.appspot.com//11360149

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14737 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 12:32:58 +00:00
ngeoffray@google.com 7ae2e0231b Use the work element instead of the current element to satisfy unit tests.
Review URL: https://codereview.chromium.org//11364176

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14734 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:37:26 +00:00
karlklose@google.com 785c53ecf9 Fix warnings in mirror implementation's diagnostic listener.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14733 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:28:32 +00:00
ngeoffray@google.com e87c6c8922 Cleanup how we query for interceptors.
Review URL: https://codereview.chromium.org//11364175

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14732 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:22:03 +00:00
sgjesse@google.com df4eaf9944 Fix multiple onRequest callbacks during redirect.
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14727 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:45:49 +00:00
ngeoffray@google.com 04678c224a Fix for issue 6628: no need to use an interceptor if the send was resolved.
Review URL: https://codereview.chromium.org//11368162

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14725 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:07:48 +00:00
sra@google.com de8550459a Changes to allow more precise inference of live native classes.
Review URL: https://codereview.chromium.org//11369128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14722 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 03:26:30 +00:00
blois@google.com f89aca9976 Removing Element.rect.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14720 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 01:29:09 +00:00
vsm@google.com 4580ca3f51 Type unconverted window and event targets correctly
Take #2, after talking to sra.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14708 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 21:45:23 +00:00
blois@google.com d5f9483f40 Cleaning up dart:html generation after interface/implementation merge.
Basically without the interface generation, I moved most of the code-gen into the common base class of dartium and dart2js generation.

I also removed the interface generation files which are no longer being used.

There shouldn't be any changes to the generated files, but the dartium files just got some merged members re-ordered as a by-product of a minor refactoring.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14691 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:33:30 +00:00
blois@google.com 0a014a8592 Adding 'part of html' to all files which are used by dart:html.
This came up during the code review of merging interfaces and implementations, that some of the files were missing the 'part of html' statements.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14690 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:07:24 +00:00
amouravski@google.com 0f2eb4e3c5 Updated relative paths since they broke after the recent library move.
Review URL: https://codereview.chromium.org//11360138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14689 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 16:06:33 +00:00
polux@google.com 329bd77c3f Handle compound operators.
Review URL: https://codereview.chromium.org//11272032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14682 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 14:18:02 +00:00
sgjesse@google.com 6ea71bec75 Remove a state variable from the HTTP library
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14681 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 13:58:48 +00:00
sgjesse@google.com cce280a37d Use Socket.read instead of Socket.readList in HTTP
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14677 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 09:56:22 +00:00
gram@google.com 80ae89cff6 Update library syntax.
Review URL: https://codereview.chromium.org//11377035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14671 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 01:28:34 +00:00
sra@google.com 045cf96f6e Some changes to improve precision of types in dart:html
Review URL: https://codereview.chromium.org//11358135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14656 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 22:12:38 +00:00
blois@google.com 149c90bc1d Making Dartium merged classes private.
Since SVG derives from Element and not Element_Merged, there's no reason to have Element_Merged public. If we happen to need it public in the future then we should work to eliminate it completely.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14649 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 20:16:22 +00:00
johnniwinther@google.com d6185f99d5 Revert "Report errors on duplicate export."
This reverts commit r14641.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14644 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:02:43 +00:00
johnniwinther@google.com 092397ccc3 Report errors on duplicate export.
Review URL: https://codereview.chromium.org//11293148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14641 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:50:12 +00:00
rnystrom@google.com d55ee43c0e Don't crash when decoding astral plane UTF-8.
Review URL: https://codereview.chromium.org//11364115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14639 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:27:33 +00:00
johnniwinther@google.com 383419e4b0 Merge of ErroneousElement and ErroneousFunctionElement
Review URL: https://codereview.chromium.org//11275188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14634 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:01:25 +00:00
ahe@google.com 03ebf05e22 Implement redirecting constructors.
Review URL: https://codereview.chromium.org//11365108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14630 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 15:32:39 +00:00
ngeoffray@google.com c2162f1300 Fix the build: we must still not mangle parameter names of native methods.
Review URL: https://codereview.chromium.org//11365132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14629 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 15:29:43 +00:00
ngeoffray@google.com 9e1127632b Do not always error-out when evaluating a map that is not a compile time constant.
Review URL: https://codereview.chromium.org//11358141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14627 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:51:02 +00:00
ngeoffray@google.com ea12ccdb74 Clean up the codegen by not re-computing parameter names.
Review URL: https://codereview.chromium.org//11275189

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14626 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:50:44 +00:00
ngeoffray@google.com 108c770ea9 This assert was obsolete after our type propagation rewrite, and it is now hit by some tests in host-check + checked mode.
Review URL: https://codereview.chromium.org//11358140

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14625 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:47:24 +00:00
sgjesse@google.com 94c3dabf84 Refactor HTTP parser to hold current buffer
The HTTP parser now stores the current buffer internally. This change
is to prepare for stopping the parser when a request have been
received and resuming parsing when this response have been fully
processed.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14623 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 13:58:24 +00:00
johnniwinther@google.com 4018f851ce Introduce AmbiguousElement
Review URL: https://codereview.chromium.org//11361124

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14622 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 13:48:45 +00:00
ager@google.com 2796ab99c2 Do *not* report connection reset by peer as an error on an http server
when no request is in progress.

Instead treat it as a normal close of the connection. This error was
introduced yesterday when getting rid of the connection memory
leak. Handling the connection errors as a normal close still makes
sure to clean up so we do not leak memory.

R=sgjesse@google.com
BUG=dartbug.com/6585

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14617 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 11:01:49 +00:00
ngeoffray@google.com 62582cb880 Fix for do/while: if there are phi copies after the condition, emit the non-pretty while loop.
Review URL: https://codereview.chromium.org//11363119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14616 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 10:16:42 +00:00
blois@google.com 4fc5d3a686 Merging dart:html interfaces and implementations.
This CL leaves a lot of the infrastructure around for the interfaces (and also renames them to _IInterfaceName), but the interfaces are not in the generated files. I'll continue to clean this up in future CLs.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14612 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 01:58:00 +00:00
jmesserly@google.com 4b94059996 fix stringToCodePoints on VM
http://dartbug.com/6476

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14585 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 18:41:17 +00:00
ahe@google.com 9ee9f1d9a6 Fix bad type annotation to unbreak host-checked mode.
Review URL: https://codereview.chromium.org//11360104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14580 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 16:02:53 +00:00
ager@google.com 78d2d09f94 Fix memory growth in simple http server.
The issue was that connections were not always removed from the list
of active connections in the http server.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14575 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 15:38:54 +00:00
ager@google.com b61bebe636 Allow Directory.create to create all missing path components.
Unified Directory.create/list/delete to take a named 'recursive'
argument.

Fixed bug in Path implementation on Windows.

R=sgjesse@google.com
BUG=dartbug.com/6024

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14572 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 15:00:54 +00:00
johnniwinther@google.com 144ec6b849 Change Dart2JsMethodMirror constructor to factory
Review URL: https://codereview.chromium.org//11361123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14570 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 14:25:06 +00:00
ngeoffray@google.com bc416ee9e1 Remove hackAroundPossiblyAbortingBody.
Review URL: https://codereview.chromium.org//11363103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14568 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:33:42 +00:00
floitsch@google.com 36e78a2177 Make hasNext a getter.
Review URL: https://codereview.chromium.org//11361064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14567 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:29:00 +00:00
karlklose@google.com e7a57dddfe Reapply "Issue 11361118: Use new library/import syntax in dart2js."
TBR=erikcorry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14566 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:16:06 +00:00
karlklose@google.com 01049430d5 Revert "Use new library/import syntax in dart2js."
This reverts commit r14564.

TBR=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14565 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:34:22 +00:00
karlklose@google.com aa5f626785 Use new library/import syntax in dart2js.
Review URL: https://codereview.chromium.org//11361118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14564 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:24:48 +00:00
ngeoffray@google.com 71834a916c Do not use hack around aborting loop body for a do/while.
Review URL: https://codereview.chromium.org//11359068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14563 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:21:00 +00:00
johnniwinther@google.com 07e6f0d876 Handle (missing) trailing slash in dartdoc
Review URL: https://codereview.chromium.org//11369092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14561 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 11:54:40 +00:00
sgjesse@google.com d83354b83d Keep track of the request and response state in the HTTP client connection
In a HTTP client connection it is possible for the response to end
before the request has been fully sent. This situation was not handled
correctly. Now the HTTP client connection keeps track of the state of
both request and response and doen not end the client connection
before both are done.

R=ager@google.com

BUG=dart:6521

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14559 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 11:28:19 +00:00
ahe@google.com c1cf8d357d Resolve redirecting factories.
Review URL: https://codereview.chromium.org//11230007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14558 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:55:23 +00:00
johnniwinther@google.com 1e96528cc1 Fix move errors.
Review URL: https://codereview.chromium.org//11359059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14557 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:19:56 +00:00
johnniwinther@google.com b6262464d3 Move mirrors from dartdoc to dart2js
Review URL: https://codereview.chromium.org//11363083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14556 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:17:40 +00:00
ngeoffray@google.com 456e3a18a8 Remove hack around aborting loop body in the case of for loops and while loops.
Review URL: https://codereview.chromium.org//11361100

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14555 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 09:28:31 +00:00
ngeoffray@google.com f70e9142d9 Fix control flow graph in the presence of aborting instructions in a try/catch/finally.
Review URL: https://codereview.chromium.org//11366085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14554 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 08:51:27 +00:00
efortuna@google.com 763dcbb20a Forgot to add file to previous commit.
TBR
Review URL: https://codereview.chromium.org//11312097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14551 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 01:56:04 +00:00
efortuna@google.com dc03ca7d97 Rename DOMURL to ObjectUrl.
Review URL: https://codereview.chromium.org//11312091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14550 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 01:25:02 +00:00
johnniwinther@google.com b3f4c99af6 Revert "Handle (missing) trailing slash in dartdoc"
This reverts commit r14536.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14537 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:37:53 +00:00
johnniwinther@google.com b861fa6566 Handle (missing) trailing slash in dartdoc
BUG=2311

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14536 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:29:36 +00:00
ngeoffray@google.com 04d43e8dd8 Do not type check return values that come from JS. See issue 6534.
Review URL: https://codereview.chromium.org//11363082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14533 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 15:34:11 +00:00
ngeoffray@google.com ff6fdba75e Add a check for issue 6530, so that we don't report errors in checked mode on a void return type.
Review URL: https://codereview.chromium.org//11361098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14531 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:32:15 +00:00
karlklose@google.com fa7af65dec Remove abstract modifier from methods in dart2js.
Review URL: https://codereview.chromium.org//11368077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14529 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:22:05 +00:00
ajohnsen@google.com 5a42ca5be6 Fix identical test in hash-set.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14528 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:19:25 +00:00
karlklose@google.com ffcc96540e Fix a wrong type annotation.
Review URL: https://codereview.chromium.org//11367092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14526 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:49:16 +00:00
ajohnsen@google.com 97b775fc74 Move HashMapImplementation, LinkedHashMapImplementation and HashSetImplementation to core as private classes.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14525 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:47:11 +00:00
ngeoffray@google.com d123a51aeb Fix return type in isolate library.
Review URL: https://codereview.chromium.org//11364071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14523 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 12:33:09 +00:00
ngeoffray@google.com 83887273c3 Address Peter's comments in https://codereview.chromium.org/11361059, and fix a host-checked mode bug.
Review URL: https://codereview.chromium.org//11361093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14522 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 11:40:26 +00:00
ngeoffray@google.com 2c78b21acb Fix checked mode failures.
Review URL: https://codereview.chromium.org//11365086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14520 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:57:38 +00:00
ngeoffray@google.com 6eb5463f93 Support checked mode for return type.
Review URL: https://codereview.chromium.org//11361060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14518 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:35:19 +00:00
floitsch@google.com 7d39042086 Fix bad mangling of environment parameters.
Review URL: https://codereview.chromium.org//11186048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14517 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:29:50 +00:00
johnniwinther@google.com c731ae99fa Add isParameter, change isField to isVariable on MemberMirror
Review URL: https://codereview.chromium.org//11363076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14516 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:25:21 +00:00
karlklose@google.com 323d8f6a9c Support class and typedef literals as expressions.
For a class C, the expression 'C' returns the canonicalized instance of Type for this class. If C has type variables, they are instantiated with 'dynamic'.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14515 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:29:51 +00:00
ajohnsen@google.com 796e4b3400 Changed DARTSESSID's httpOnly property to true by default.
BUG=6516

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14514 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:23:55 +00:00
ager@google.com 536d97a520 Add example of how to get a DirectoryLister to documentation.
R=sgjesse@google.com
BUG=dartbug.com/4729

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14513 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:22:04 +00:00
erikcorry@google.com 076e2564b8 Enable minifier for parameters and locals (disabled for native methods).
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14508 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-03 08:09:48 +00:00
efortuna@google.com 358e4c092b Reapply Keycode enumeration from 14504.
Review URL: https://codereview.chromium.org//11312077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14506 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 23:06:43 +00:00
efortuna@google.com ddf72c66cf Revert r14504.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14505 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 22:54:25 +00:00
efortuna@google.com d15f684911 Add KeyCode enumeration in Dart and fix path of html lib script after sdk move.
Review URL: https://codereview.chromium.org//11362065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14504 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 22:49:07 +00:00
dgrove@google.com 961e24641f Update paths to reflect new lib structure.
Review URL: https://codereview.chromium.org//11293062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14474 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 15:17:53 +00:00
dgrove@google.com 037b2f8c60 svn add sdk
svn mv lib/sdk
svn mv lib/sdk/compiler sdk/lib/_internal
svn mv pkg/dartdoc sdk/lib/_internal

(cannot gcl upload due to .png's in dartdoc)

TBR=iposva
  


git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14473 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 14:53:15 +00:00