Commit Graph

3737 Commits

Author SHA1 Message Date
regis@google.com f955de9bc0 Throw a type error in production mode when the type of the type test is not
declared (issue 2571).
Add test.
Delete bad negative test now covered by new test.
Update status files of different compilers.
Review URL: https://chromiumcodereview.appspot.com//10035058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6754 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 17:01:28 +00:00
vsm@google.com 3e370fe74e Enable html_dartium to be built as part of dartium build
Review URL: https://chromiumcodereview.appspot.com//10126002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6752 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:52:46 +00:00
ngeoffray@google.com e1b2e12850 Give an argument to the List constructor: the List is non extandable.
Review URL: https://chromiumcodereview.appspot.com//10113011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6751 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:46:41 +00:00
ngeoffray@google.com 14de207c4e A generative consutructor on an interface can default to a factory constructor.
Review URL: https://chromiumcodereview.appspot.com//10127011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6750 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:34:31 +00:00
efortuna@google.com 70f02af5ce Set flaky test to skip because it actually times out instead of pass/fail.
Review URL: https://chromiumcodereview.appspot.com//10121008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6749 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:28:02 +00:00
ngeoffray@google.com 4001dc59ea We must use the original element and not the default implementation element when checking if the constructor is the List constructor.
Review URL: https://chromiumcodereview.appspot.com//10113007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6748 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 16:17:58 +00:00
ngeoffray@google.com 73c33f3770 Special case mangling for a variable named 't'.
Review URL: https://chromiumcodereview.appspot.com//10035059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6747 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 15:56:51 +00:00
ngeoffray@google.com 5834118e29 New shot at mangling: try cleaning this up a bit.
Review URL: https://chromiumcodereview.appspot.com//10127010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6746 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 15:48:18 +00:00
ngeoffray@google.com fc58ad3555 Fix mangling of local variables when their name conflict with Dart2JS's temporaries.
Review URL: https://chromiumcodereview.appspot.com//10123009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6742 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:34:28 +00:00
lrn@google.com 036b16afd7 Better detection of logical and/or inlining opportunities.
Now allows the conditions to be moved by code motion or global-value numbering.
Also allow sequences of empty blocks with gotos between the branch and the
negation of an || construct.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6741 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:18:48 +00:00
ngeoffray@google.com 914220315e Remove dead code.
Review URL: https://chromiumcodereview.appspot.com//10126006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6740 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:10:50 +00:00
floitsch@google.com a24a4ae2d7 Fix typo.
Review URL: https://chromiumcodereview.appspot.com//10025036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6739 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 13:00:48 +00:00
floitsch@google.com fc4b954a84 Fix some type warnings.
Review URL: https://chromiumcodereview.appspot.com//10122005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6738 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 12:47:43 +00:00
floitsch@google.com af87074ea0 Improve tracer output for bailouts.
Review URL: https://chromiumcodereview.appspot.com//10041033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6737 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 12:06:57 +00:00
podivilov@google.com 2899757ad2 Move custom to dart conversion logic to IDLTypeInfo implementations.
This change is the first step towards removing overloaded toDartValue.

R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6736 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:45:31 +00:00
podivilov@google.com d80b32703f Introduce CompositeIDLTypeInfo and clean up the code that deals with sequences.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6735 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 11:26:22 +00:00
whesse@google.com 9dbb88f2bb Fix flaky standalone/io/TestRunnerTest, a unit test of the testing framework.
BUG=dart:1947
TEST=standalone/io/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6734 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 10:39:36 +00:00
ahe@google.com fa5ca85074 Remove unused 'variables' section.
Review URL: https://chromiumcodereview.appspot.com//9985009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6733 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 10:03:49 +00:00
ngeoffray@google.com 226f9ae1b3 Don't forget to add the HStatic to the graph.
Review URL: https://chromiumcodereview.appspot.com//10078010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6732 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 09:27:06 +00:00
sgjesse@google.com 41cc58affa Fix a number of editor errors and warnings in io tests
R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6731 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 09:17:14 +00:00
ngeoffray@google.com 614537ab80 Fix folding of == when a type defines operator=.
Review URL: https://chromiumcodereview.appspot.com//10078008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6730 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 08:57:11 +00:00
ngeoffray@google.com c516e990de VM just changed: access to a static from a super class must be qualified.
Review URL: https://chromiumcodereview.appspot.com//10126003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6729 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 08:33:51 +00:00
ngeoffray@google.com fc16e635d6 Start propagating non-primitive types in the backend, and fold instructions that know about the type of their receiver.
Review URL: https://chromiumcodereview.appspot.com//10119010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6728 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 08:23:42 +00:00
ngeoffray@google.com 35d7b79fcc Give a sourceElement to SSA instructions so that if they end up being 'define' in the codegen (ie needing a variable), they can use one related to the original source.
Review URL: https://chromiumcodereview.appspot.com//10035032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6727 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 07:15:30 +00:00
asiva@google.com a61ffc6210 Fix a pretty blatant GC bug (was the cause of all the weird crashes on windows).
Review URL: https://chromiumcodereview.appspot.com//10025033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6726 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 05:30:30 +00:00
sra@google.com ab7afcc0bc Revert "Test for IDBKeyRange"
This reverts commit 7664403fb4ddb16b79ae89163a427dfcfd505686.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6724 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 03:26:15 +00:00
sra@google.com 935e36ed5d Test for IDBKeyRange
Review URL: https://chromiumcodereview.appspot.com//10095026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6723 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 03:06:50 +00:00
efortuna@google.com d2f2f746ee fix crash in VM type checked mode
Review URL: https://chromiumcodereview.appspot.com//10124002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6721 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:16:00 +00:00
efortuna@google.com 12570483ec Skip flaky HttpServerEarlyClientCloseTest on Windows until source of flakiness
has been fixed.
Review URL: https://chromiumcodereview.appspot.com//10113002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6720 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:15:50 +00:00
scheglov@google.com 42c3daeb88 Issue 2639. Resolve implicit super() constructor invocation.
http://code.google.com/p/dart/issues/detail?id=2639

R=devoncarew@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6719 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:02:10 +00:00
srdjan@google.com 344aba1e75 Assign ids to incoming arguments (to be used in checked mode).
Review URL: https://chromiumcodereview.appspot.com//10115053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6718 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 00:04:47 +00:00
vsm@google.com 0bcfad872a Update fremontcut with current chrome feature defines
This will bring dart2js / html up to date with Chrome generated dom.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6714 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 22:19:12 +00:00
regis@google.com 75de3a8cc2 Move type check elimination from backend to graph builder in new compiler.
Review URL: https://chromiumcodereview.appspot.com//10021070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6713 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 21:58:46 +00:00
danrubel@google.com 847ab391c5 Move 'revision' file creation from upload_sdk into create_sdk
Review URL: https://chromiumcodereview.appspot.com//10117031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6712 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 21:55:14 +00:00
asiva@google.com d807f2a7dd Initialize tags back to 0 before using it.
Review URL: https://chromiumcodereview.appspot.com//10021046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6711 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 21:50:15 +00:00
hausner@google.com be32f37af7 Fix dartc status
Mark GettersSettersTest as fail until it's fixed.
Review URL: https://chromiumcodereview.appspot.com//10117029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6706 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 18:34:43 +00:00
turnidge@google.com a70b90933a Add a missing arity check for top-level methods in Dart_Invoke.
Add a new EXPECT_ERROR macro to make it easier to verify meaningful
error messages in tests.
Review URL: https://chromiumcodereview.appspot.com//10115034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6705 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 18:11:55 +00:00
vsm@google.com 2a115d4420 Roll WebCore IDL to multivm@418
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6704 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:56:36 +00:00
floitsch@google.com 83cc399204 Don't rely on any speculative type in the bailout version.
Review URL: https://chromiumcodereview.appspot.com//10116023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6702 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:38:51 +00:00
efortuna@google.com 0d589f65f9 Fix issue 2625.
Review URL: https://chromiumcodereview.appspot.com//10041031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6699 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 17:16:25 +00:00
hausner@google.com e74cd5fc3a Static members are not visible in subclasses
Fix for issue 1598.

Lexical scope comes before inherited names. Also, Static members
are not inherited and are not visible in subclasses.
Code in the subclass (or any other code for that matter) has to
qualify the names of these members with the class name.

We had a few tests that were wrong and only passed in the VM because
this was not implemented correctly.

Also had to fix code in frog and dartdoc.

I hope I ran enough tests. I built an all.deps tree using tools/build.py from the root directory, which brought up the frog and dartdoc issues.

Tested:
tools/test.py --compiler=dart2js --runtime=drt
tools/test.py -c none -r drt
tools/test.py -c frog -r drt
tools/test.py -r vm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6698 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 16:09:22 +00:00
srdjan@google.com 953daeaf89 Add more timing information.
Review URL: https://chromiumcodereview.appspot.com//10116012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6697 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 15:53:20 +00:00
vsm@google.com 253597427c Add Dartium to browser_perf tests
Review URL: https://chromiumcodereview.appspot.com//10095016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6696 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 15:46:31 +00:00
iposva@google.com 74201ff9fd Fix issue 2621:
- Properly restore long_jump_base when returning early.
Review URL: https://chromiumcodereview.appspot.com//10083046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6693 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 15:08:59 +00:00
sgjesse@google.com 83ce0024ef Skip flaky test on Mac OS until resolved
TBR=ngeoffray@google.com

BUG=dart:2637
TEST=tests/standalone/src/io/HttpServerHandlerTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6692 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 15:03:57 +00:00
podivilov@google.com 1bce834627 Generate proper wrapper types for ActiveDOMObjects.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6688 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 14:17:47 +00:00
kasperl@google.com 639792f3b8 Update status file.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6686 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:38:52 +00:00
ngeoffray@google.com 71df4c89bb Remove restriction when computing instructions that can be generate at use site.
Review URL: https://chromiumcodereview.appspot.com//10119006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6685 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:26:13 +00:00
lrn@google.com 54cab43f3a Reapply "Refactoring if block-information."
Fix error in conditional expression handling.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6684 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:16:27 +00:00
sgjesse@google.com a18d4a2f87 Add HTTP handler registration to the HTTP server
NOTE: This is a breaking change.

The onRequest callback on the HTTP server have been removed in favor
of the ability to register handlers. A handler can be either a
function or an instance of a class which implements a specific
interface. Each handler registration has a regular expression which is
matched against the request path.

There is also a default handler which can be set to handle all
requests which is not matched by any of the registered patterns. If
there is no default handler explicitly set there is a builtin one
which will just return 404 status.

Currently the method is not considered in the matching.

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

BUG=none
TEST=tests/standalone/src/io/HttpServerHandlerTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6683 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:03:43 +00:00