Commit Graph

5559 Commits

Author SHA1 Message Date
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
lrn@google.com 766f8bdbfa Update language/invocation_mirror_test.
It's been clarified that (a.b)() is not the same as a.b().
Also, unary minus is actually named "unary-".

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14728 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:51:33 +00:00
ngeoffray@google.com 4bc071070d Fix bad type annotation and add header.
Review URL: https://codereview.chromium.org//11358172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14726 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:31:56 +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
iposva@google.com 7f21031d52 - Make sure that we can actually use the class with the conflicting
name.
Review URL: https://codereview.chromium.org//11363159

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14721 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 01:37:11 +00:00
hausner@google.com 51850fd3d2 Fix issue 3638
Review URL: https://codereview.chromium.org//11368157

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14719 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 01:02:24 +00:00
hausner@google.com be175c758e Implement const expressions for local variables
Review URL: https://codereview.chromium.org//11265047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14716 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 00:19:43 +00:00
fschneider@google.com f0fc1605a6 Temporarily skip arithmetic_test for dart2js.
There is a bug in left-shift by 0.

TBR=ngeoffray@google.com, 

BUG=dart:6627
TEST=tests/language/arithmetic_test.dart
Review URL: https://codereview.chromium.org//11362172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14713 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 23:43:42 +00:00
fschneider@google.com 0f251088ec Improve smi shift operations and avoid repeated deoptimizations.
Smi left shifts do not contain a call now. Only after deoptimizing
at a smi operation we we generate mint code or a generic call to
avoid repeated deoptimization.

Added a test case for the code that was not covered by existing tests.
Review URL: https://codereview.chromium.org//11363141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14709 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 22:03:47 +00:00
scheglov@google.com 322c76d6a9 Issue 6560. Report error when generative constructor calls factory constructor.
http://code.google.com/p/dart/issues/detail?id=6560

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14685 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 15:49:38 +00:00
floitsch@google.com 6e371518ad Update status files.
Review URL: https://codereview.chromium.org//11362143

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14648 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 19:31:53 +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
ahe@google.com 8b9009efe7 Update status files
Review URL: https://codereview.chromium.org//11369118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14631 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 16:18:03 +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 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 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
hausner@google.com 8c10c259e3 Fix dart2dart status
Review URL: https://codereview.chromium.org//11362129

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14610 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 01:18:00 +00:00
hausner@google.com 977c20e407 Fix dart2js status
Review URL: https://codereview.chromium.org//11359080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14608 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 00:54:35 +00:00
hausner@google.com c062b5c391 Introduce static warning test for static/instance mismatch
TBR=ahe
Review URL: https://codereview.chromium.org//11275179

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14606 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 00:34:12 +00:00
hausner@google.com 323c735040 Make sure setter does not conflict with method
Review URL: https://codereview.chromium.org//11312109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14600 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 22:51:01 +00:00
hausner@google.com 7dbd63a6af Eliminate faulty override test
Fix issue 3859
Review URL: https://codereview.chromium.org//11359070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14587 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 18:57:34 +00:00
hausner@google.com 99c505e9b3 Fix various inheritance bugs
Fields can be overridden by subclasses
A setter does not conflict with a method
Eliminate outdated tests

Fixes issue 6482
Review URL: https://codereview.chromium.org//11312095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14583 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 17:54:27 +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
scheglov@google.com 1d310ff72c Report error for deprecated #library #import #source
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14535 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:21:20 +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 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
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
hausner@google.com 95c79712da Make library, import, export, part pseudo-keywords
Resubmit cl 14446 after Ivan's keyword table fix.
Review URL: https://codereview.chromium.org//11367069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14500 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 20:30:08 +00:00
lrn@google.com 2208fcd208 Change NotImplementedException to UnimplementedError.
Retain a NotImplementedException type for backwards compatibility.
This class will be removed soon.
The constructor of UnimplementedError is currently const in order to
support the NotImplementedException. That will be fixed too.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14467 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 13:18:37 +00:00
ngeoffray@google.com aa640ef141 Fix issue 6472 that exhibited a few crashing bugs in dart2js.
Review URL: https://codereview.chromium.org//11361059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14461 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 11:50:53 +00:00
ahe@google.com d6f3970988 Remove Windows/Firefox exceptions; tests aren't wrapped anymore.
Review URL: https://codereview.chromium.org//11365060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14457 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 09:07:06 +00:00
johnniwinther@google.com a66f99c71e Revert instance inlining.
Review URL: https://codereview.chromium.org//11361036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14455 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 08:25:40 +00:00
hausner@google.com e4880d6698 Revert cl 14446
Review URL: https://codereview.chromium.org//11293054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14448 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 00:19:48 +00:00
hausner@google.com 4c6b490ab8 Make library, import, export, part built-in identifiers
Review URL: https://codereview.chromium.org//11360051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14446 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:47:25 +00:00
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00
fschneider@google.com 85a2dca687 Inline native String.charCodeAt in optimized code and fix a bounds-check bug.
Introduce a new IL instruction that does charCodeAt from
1- and 2-byte character strings. The existing CheckArrayBound
instructions is extended to be used for string bounds checking.

Also fix a bug with a missing compile-time bounds-check on constant
arrays.

TEST=tests/language/optimized_string_charcodeat.dart,
tests/language/optimized_constant_array_string_access.dart
Review URL: https://codereview.chromium.org//11360033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14441 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 22:47:41 +00:00
gram@google.com 504b13a80e Fix test statuses of some tests that were marked as Fail but now pass as we
support new library syntax.
Review URL: https://codereview.chromium.org//11293048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14439 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 22:15:38 +00:00
ngeoffray@google.com d1d9854b96 Do not evaluate arguments of an instance send if that instance send is being inlined. The inliner will take care of evaluating them.
Review URL: https://codereview.chromium.org//11363037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14430 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 20:36:48 +00:00
scheglov@google.com be6aa334b0 Issue 5987. Report error if static const references instance const.
http://code.google.com/p/dart/issues/detail?id=5987

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14421 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 17:59:48 +00:00
ngeoffray@google.com eb4d4eeb89 Fix a LICM bug where we were loop hoisting an isntruction, even though that isntruction's inputs were changed before.
Review URL: https://codereview.chromium.org//11361035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14414 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 16:15:28 +00:00
lrn@google.com 7e6ae8ea09 Renaming IndexOutOfRangeException to RangeError.
It now extends ArgumentError.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14405 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 13:46:30 +00:00
lrn@google.com 762d2dc493 Fix analyzer test-expectations.
TBR=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14394 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 11:35:56 +00:00
lrn@google.com a4541ed59b Fix bug in another no_such_method test.
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14383 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 08:29:24 +00:00
lrn@google.com 3f316d8023 Fix bug in invocation_mirror_test wrt. setters.
A setter call will not evaluate to the return value of the noSuchMethod.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14382 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 08:14:42 +00:00
hausner@google.com 67d17227d1 Redirecting constructor may not have function body
Adding a test case and consolidating 3 other tests into the new one.

Issue 2030.
Review URL: https://codereview.chromium.org//11293020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14376 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 22:27:34 +00:00
hausner@google.com 29c1668cb9 Prevent mutation of final variables
Fixes issue 4328
Review URL: https://codereview.chromium.org//11363012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14366 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 19:43:44 +00:00
regis@google.com ec09038e82 Remove references to ObjectNotClosureException and ClosureArgumentMismatchException
from the VM (issue 6124).
These are replaced with NoSuchMethodError for now (work in progress).
Review URL: https://codereview.chromium.org//11312019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14362 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 18:13:12 +00:00
asiva@google.com ebbb7c4134 - Represent strings internally in UTF-16 format, this makes it
compatible with webkit and will allow for easy externalization of
  strings. One byte strings are retained for pure ASCII strings.
  (The language specification was changed recently to reflect this as
   follows "A string is a sequence of UTF-16 code units").
- Remove four byte string class and all references to it.
- Rename some of the string functions in Dart API to make them
  consistent and better describe the underlying functionality
  Dart_NewString => Dart_NewStringFromCString
  Dart_NewString8 => Dart_NewStringFromUTF8
  Dart_NewString16 => Dart_NewStringFromUTF16
  Dart_NewString32 => Dart_NewStringFromUTF32
  Dart_NewExternalString8 => Dart_NewExternalUTF8String
  Dart_NewExternalString16 => Dart_NewExternalUTF16String
  Dart_NewExternalString32 => Dart_NewExternalUTF32String
  Dart_StringGet8 => Dart_StringToUTF8
  Dart_StringGet16 => Dart_StringToUTF16
  Dart_StringToCString => Dart_StringToCString
  Dart_IsString8 => Removed
  Dart_IsString16 -> Removed
  Dart_StringToBytes -> Removed
  Dart_StringGet32 -> Removed
Review URL: https://codereview.chromium.org//11318018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14357 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 17:56:46 +00:00