Commit Graph

3016 Commits

Author SHA1 Message Date
antonm@google.com 3b1061c5e4 Revert "Emit static IDL members."
TBR=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12797 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 18:51:18 +00:00
antonm@google.com 5bec20abdc Emit static IDL members.
R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12795 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 18:36:12 +00:00
regis@google.com 61297238fb Support redirecting factory constructors in the VM (issue 3969).
Add test (negative tests still missing).
Some more work is needed regarding when to throw a dynamic error and when to
report a compile-time error. Some questions are not answered by the spec.
Review URL: https://codereview.chromium.org//10964058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12791 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 17:28:37 +00:00
ahe@google.com 90a09ec254 Update co19 status for dart2js --checked
Review URL: https://codereview.chromium.org//10958076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12789 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 17:16:55 +00:00
ahe@google.com 4843338481 Address comment from CL 10970070.
Review URL: https://codereview.chromium.org//10967074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12788 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 17:10:37 +00:00
ahe@google.com 06de3c8ee6 Fix bad diagnostic positions when inlining super constructors.
Review URL: https://codereview.chromium.org//10970070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12787 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 16:57:09 +00:00
antonm@google.com b7cae637a7 Support Dynamic type with a prefix.
R=smok@google.com
BUG=5398

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12786 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 16:20:41 +00:00
podivilov@google.com d1dec7ce67 Attach positions to methods with interceptors.
R=ahe@google.com
BUG=5331

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12782 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 15:04:17 +00:00
antonm@google.com bb79663a70 Update dart2dart expectations after co19 roll.
TBR=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12781 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 14:02:47 +00:00
ahe@google.com fb7c33538a Mark some co19 floating point tests as failing on Windows.
Review URL: https://codereview.chromium.org//10965062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12780 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 13:49:41 +00:00
ahe@google.com 5666edf502 Update co19 status for dartc.
Review URL: https://codereview.chromium.org//10961077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12779 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 13:43:24 +00:00
ahe@google.com d6ca10a62e Update co19 to r343.
Review URL: https://codereview.chromium.org//10972007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12774 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 12:37:43 +00:00
vegorov@google.com 6560f5c84b Fix convergence issues in range analysis.
Split it into three phases: initialization, widening and narrowing.

During widening and narrowing phi-ranges change according to classical widening and narrowing operators defined as:

Widening:
  [_|_, _|_] v [a, b] = [a, b]
  [a, b] v [c, d] = [c < a ? -inf : a, d > b ? +inf : b]

Narrowing:
  [a, b] ^ [c, d] = [(a == -inf) ? c : min(a, c), (b == +inf) ? d : max(b, d)]

R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12772 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 12:00:19 +00:00
antonm@google.com a46994da15 Triage dart2dart tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12767 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 10:27:24 +00:00
antonm@google.com e71177f89d Properly process dart:core classes if dart:core is imported with prefix.
In this case we force prefix omission.  However, there is a twist: when
visit prefix.name form in send visitor later, we cannot tell it from
dynamic invocation and hence to play safe we add platform libs class name
to the set of forbidden names.

Also, most probably we need a proper support for top-level from dart:core.

R=smok@google.com
BUG=5345

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12766 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 10:09:45 +00:00
sgjesse@google.com a2d32838da Add an internal flag to the dart2js compiler to enable/diable inlining
Use this to run the type inference tests both with and wihtout inlining.

R=ahe@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12757 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 07:32:43 +00:00
scheglov@google.com 082dd8cc31 Issue 5302. Type alias type parameters should not conflict with formal parameters
http://code.google.com/p/dart/issues/detail?id=5302

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12752 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 18:56:40 +00:00
scheglov@google.com 018d23bb22 Issue 5295. Reference to undefined static setter should be a warning not an error
http://code.google.com/p/dart/issues/detail?id=5295

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12751 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 18:54:38 +00:00
ahe@google.com c74ffeffeb Mark failing test as such
Review URL: https://codereview.chromium.org//10969056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12745 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 08:48:45 +00:00
vegorov@google.com 17907d32de Implement range analysis for smi values.
And use it to eliminate overflow checks on + and - operations.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12733 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 20:06:31 +00:00
blois@google.com 3ebafe7947 Fixing up measurement test.
The test was trying to validate that postMessage is called back before setTimeout(0), but there is no guarantee of this by the browsers and the behavior is inconsistent (even within the context of a single browser).

BUG=1940

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12723 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 16:59:39 +00:00
brianwilkerson@google.com 48b5aa8f60 Allow static fields without types (issue 5149)
Review URL: https://codereview.chromium.org//10957040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12720 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 16:14:27 +00:00
scheglov@google.com c0a0b5db5e Issue 5293. Invocation of an undefined static method should be a warning, not an error
http://code.google.com/p/dart/issues/detail?id=5293

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12716 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 15:06:21 +00:00
zerny@google.com 2f549da394 Use the inner deoptimization frame when setting incoming arguments.
This fixes issue 5318 where deoptimization of an inlined call resulted in an
incorrect value being set in the deoptimized frames.

R=vegorov@google.com
BUG=5318

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12715 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 14:58:30 +00:00
scheglov@google.com d6a06d9070 Issue 5240. Using a non-type in a const object expression is an error, not a warning
http://code.google.com/p/dart/issues/detail?id=5240

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12711 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 14:14:03 +00:00
johnniwinther@google.com 2a82f822b9 Import scope rules updated.
BUG=2946

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12706 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 14:02:25 +00:00
ahe@google.com d71bc06273 Implement Object.hashCode()
Review URL: https://codereview.chromium.org//10965034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12704 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 13:34:57 +00:00
ahe@google.com 0e87e95d1d Update status.
I fixed a crash with my changes to ElementListener.handleQualified in CL 10911298.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12702 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 13:14:32 +00:00
ngeoffray@google.com d6c843ab07 Make dartc happy.
Review URL: https://codereview.chromium.org//10969033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12699 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 13:01:15 +00:00
ngeoffray@google.com 701caab5de Correctly handle const constructors with type parameters.
Review URL: https://codereview.chromium.org//10970006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12697 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 12:45:51 +00:00
antonm@google.com 354e68432a Remove suppression for fixed issue.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12695 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 12:08:34 +00:00
ahe@google.com b2950833dd Update test status after implementing library syntax.
Review URL: https://codereview.chromium.org//10970036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12694 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 11:44:02 +00:00
ager@google.com 6236cd51a5 Use native fields for process pid and fix bug that allowed killing
a process before it was started.

We should make the change to make Process.start return a future that
does not complete unless the process is actually started. That would
have avoided this issue as well.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12691 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 11:07:36 +00:00
antonm@google.com d79a04e63e Suppress a test which started to fail after the roll.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12690 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 10:41:52 +00:00
antonm@google.com 7aa87c0e60 Update dart2dart expectations after r12686 "Parse new library syntax."
TBR=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12689 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 10:39:59 +00:00
ahe@google.com fcc9f5f0ff Parse new library syntax.
Committed: https://code.google.com/p/dart/source/detail?r=12386
But reverted in: https://code.google.com/p/dart/source/detail?r=12387

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12686 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 09:08:12 +00:00
ngeoffray@google.com f3c7f44a0e Avoid generating duplicate stubs. Fixes issue 3184.
Review URL: https://codereview.chromium.org//10967013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12682 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 07:13:45 +00:00
ricow@google.com cc679ae9de Mark html/window_open_test flaky.
This is reappearing, see issue 5151
Review URL: https://codereview.chromium.org//10963022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12681 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 06:51:28 +00:00
ricow@google.com f9a8195533 Suppress Dart2Dart error in language/import_core_prefix_test
This started happening after revision 12673, I filed issue 5345 to track this
Review URL: https://codereview.chromium.org//10970032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12680 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 06:17:27 +00:00
asiva@google.com 51aa46ef86 Fix status file for Dartium.
Review URL: https://codereview.chromium.org//10967031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12678 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:28:22 +00:00
iposva@google.com 4b8db6cdf1 - Fix test.
Review URL: https://codereview.chromium.org//10970027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12676 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:09:23 +00:00
asiva@google.com 4140ed9d5b Fix for issue 5223 : Import 'dart:core' implicitly only if it has not been
already explicitly imported in the script.
Review URL: https://codereview.chromium.org//10949028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12673 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:43:08 +00:00
iposva@google.com 7fa25c974d - Fix checked mode test: Map still expects Hashable.
Review URL: https://codereview.chromium.org//10963017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12672 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:41:10 +00:00
iposva@google.com eee4bbc1ef - Add definition of "int hashCode()" to Object.
- Implement hashCode in the VM.
- Mark hashCode as unimplemented in dart2js.
- Update test using the identity hashcode.
Review URL: https://codereview.chromium.org//10956026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12669 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:32:58 +00:00
gram@google.com 231a94ed03 Move unit test init to start of main in window open test.
Review URL: https://codereview.chromium.org//10967023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12663 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 23:25:06 +00:00
blois@google.com 46c4f39719 Fixing up Table.createTBody et al.
BUG=4342

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12662 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 22:53:57 +00:00
rnystrom@google.com b81b2cd656 If transformException() returns a future, act like chain().
Review URL: https://codereview.chromium.org//10958021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12661 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 22:35:04 +00:00
scheglov@google.com 3c4080aff2 Issue 5163. Constructor/member name conflict should be error
http://code.google.com/p/dart/issues/detail?id=5163

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12660 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 21:31:09 +00:00
iposva@google.com b9327e0236 - Make the VM understand the --checked flag to be aligned with dart2js.
- Adjust some of the checked mode tests to pass --checked and --enable-checked-mode.
Review URL: https://codereview.chromium.org//10962013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12651 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 18:19:06 +00:00
antonm@google.com 079b52d5d2 Force a space after empty list literal.
We can be more clever about it later like verifying next token.  And there is
a chance that will be correct Dart too.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12636 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 13:39:02 +00:00