Commit Graph

7988 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
gram@google.com 5a6ea1d275 Add missing method - this was added to html_config but not the enhanced config.
Review URL: https://codereview.chromium.org//10958080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12796 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 18:39:19 +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
dgrove@google.com 79ff4f313d Remove last references to frog from SDK.
Review URL: https://codereview.chromium.org//10970056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12792 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 17:38:57 +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
danrubel@google.com fea0ced904 Convert raw strings in compiler
Review URL: https://codereview.chromium.org//10970038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12783 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 15:22:07 +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
kmillikin@google.com c70bcfcfa3 Support constant folding of instructions with constant smi values.
In sparse conditional constant propagation, replace instructions with
constant smi values with their constant value.  Extend the analysis to
understant shift and bitwise binary operations.

R=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12778 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 13:14:54 +00:00
zerny@google.com 89bf06ab7f Remove caller arguments from nested deoptimization environments.
R=vegorov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12777 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 13:01:55 +00:00
kmillikin@google.com c6ef238b86 Check for a NULL value before passing it to a function that assumes non-NULL.
R=vegorov@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12776 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 12:56:25 +00:00
ahe@google.com 3a4d55f209 Create a wrapper around test.dart for running co19 tests.
Review URL: https://codereview.chromium.org//10973009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12775 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 12:52:53 +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
ager@google.com 9d93351ada Add documentation of double and int.
There is a bit of comment duplication in here, but I think it is worth
it to have all the methods documented on api.dartlang.org for all the
types.

R=lrn@google.com
BUG=dartbug.com/4668

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12773 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 12:28:10 +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
zerny@google.com b4ccb26cb6 Disable loop invariant code motion on deoptimized functions.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12771 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 11:28:51 +00:00
ager@google.com 02b566ee62 Add documentation to the Object class in the core library.
R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12770 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 11:07:34 +00:00
johnniwinther@google.com f82296500d Separate type for dynamic in mirrors.dart2js
Review URL: https://codereview.chromium.org//10961074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12769 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 10:58:21 +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
podivilov@google.com b5a251f42c Throw an exception when invalid source file location is encountered.
Currently, compiler is crashed in SourceMapBuilder with unhelpful stack trace.
Throwing an exception in ssa builder will help us to fix crashes that
occur in the wild.

R=ahe@google.com,kasperl@google.com
BUG=5184

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12765 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 09:43:53 +00:00
antonm@google.com aa6bab7910 Rewrite blocks of single operator into just a single operator.
There is an imporant exception, although somewhat artificial: if block
consists of variable definitions, we shouldn't do that not to break
scoping rules and violations.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12764 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 09:42:47 +00:00
ahe@google.com 034a66d17f Parameterize 'new Options().script'.
Review URL: https://codereview.chromium.org//10970060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12763 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 09:41:53 +00:00
ahe@google.com 8332173392 Use semicolon, not comma.
Review URL: https://codereview.chromium.org//10956066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12761 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 08:51:22 +00:00
ahe@google.com f5083a4db7 Use the VM under test, not the prebuilt binary
Review URL: https://codereview.chromium.org//10965060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12760 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 08:31:32 +00:00
smok@google.com e6aedf40c2 [dart2js] if --output-type=dart make output file out.dart and print correct info message.
Review URL: https://codereview.chromium.org//10961019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12758 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 08:03:30 +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
kmillikin@google.com 63fa392807 Reapply "A simpler scheme for garbage collection of ureachable phi inputs."
Fix two issues:

* Unreachable code elimination did not correctly identify all unreachable
  blocks.

* Loop detection in the register allocator relied on the block IDs.

R=vegorov@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12756 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 07:27:36 +00:00
ahe@google.com 970a4ee600 A library element should know its compilation units.
Review URL: https://codereview.chromium.org//10960033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12755 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 06:53:12 +00:00
danrubel@google.com 9b89419e88 migrate raw string to new syntax in pkg
Review URL: https://codereview.chromium.org//10961061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12754 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 19:41:42 +00:00
scheglov@google.com 1d60036e44 Issue 5327. Fix for invalid 'instantiation of a class with the inherited abstract members'
http://code.google.com/p/dart/issues/detail?id=5327

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12753 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 19:01:02 +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
danrubel@google.com e3ad38a535 migrate raw string to new syntax in core
Review URL: https://codereview.chromium.org//10964046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12747 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 14:53:11 +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
alanknight@google.com a9858d846c Also skip drt tests for http request
Review URL: https://codereview.chromium.org//10957049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12742 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 22:20:31 +00:00
jackpal@google.com 3e510176c2 Fix Android build breaks
Prevent Android's STLPort from undefining global functions from
math.h when cmath is included after math.h.

The Android STLPort does not provide std::assert or std::atexit. Use
the C versions of these functions on Android.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12741 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 22:04:37 +00:00
vegorov@google.com e5d132e2f8 Disable range analysis. Causes timeouts on dart2js buildbots.
TBR=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12740 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 21:51:40 +00:00
alanknight@google.com 7de9ec0812 Disable http request tests on Dartium until issues can be resolved
Review URL: https://codereview.chromium.org//10967051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12739 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 21:20:25 +00:00
vegorov@google.com 5cc5ab0e04 Do not collect smi values with no ssa index for range analysis.
TBR=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12738 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 21:08:32 +00:00
gram@google.com eb2a0fc533 Eliminate some of the flakiness in testing:
- errors in test_controller.js get posted to the Dart configs
- Dart configs will receive these and set uncaughtError
- Selenium driver will output the full HTML body, not just up to the first script tag (else the errors above could be lost).
Review URL: https://codereview.chromium.org//10968040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12735 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 20:21:32 +00:00
vegorov@google.com 5355309db1 Fix Mac build broken by r12733.
TBR=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12734 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 20:17:15 +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
alanknight@google.com 0225c4bbf6 Make invoking start_web_server use an absolute path to accomodate incremental dartium builds
Review URL: https://codereview.chromium.org//10957044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12730 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 18:50:55 +00:00