Commit Graph

3219 Commits

Author SHA1 Message Date
hausner@google.com f8807278b3 Maybe fix dart2js
Review URL: https://chromiumcodereview.appspot.com//10442121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8178 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 22:50:21 +00:00
hausner@google.com f6c776dcbe Eliminate unary plus with hex literals
The spec says unary + is only allowed with integer and floating point literals, not with hex literals. Somebody noticed that the VM accepted
+0x10 as well.

Consequently, the Math.parseInt(str) library function should fail with
a BadNumberFormatException if it is called with a hex number that is preceded by a +.

Fixes issue 1540.

This change exposed that the dart2js core library implementation is
falsely accepting +0xNNN hex numbers. I filed issue 3333.
Review URL: https://chromiumcodereview.appspot.com//10456060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8177 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 22:35:29 +00:00
regis@google.com 395d3ba587 Insert closure calls in conditional expression of assert (issue 1584).
Review URL: https://chromiumcodereview.appspot.com//10446102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8164 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 15:57:06 +00:00
regis@google.com 31180a540e Check upper bounds of factory class type parameters when instantiating an
interface (issue 1380).
Review URL: https://chromiumcodereview.appspot.com//10441115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8162 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 15:51:36 +00:00
sgjesse@google.com 4f039adb15 Update dart2js status after V8 update
Two co19 RegExp tests now pass.

R=ager@google.com

BUG=none
TEST=LibTest/core/RegExp/Pattern_semantics/firstMatch_CharacterClassEscape_A03_t01, LibTest/core/RegExp/Pattern_semantics/firstMatch_CharacterClassEscape_A04_t01

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8155 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 13:44:22 +00:00
ahe@google.com 0d38d52170 Implement super read.
Review URL: https://chromiumcodereview.appspot.com//10442107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8140 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 05:51:46 +00:00
brianwilkerson@google.com 232c54a90a Fix for issue 2407
Review URL: https://chromiumcodereview.appspot.com//10453083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8128 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 21:45:07 +00:00
ngeoffray@google.com 3c29a44d83 Add a browser configuration to avoid repeating (runtime == 'ff' || runtime == 'ie' || ...).
Review URL: https://chromiumcodereview.appspot.com//10451062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8035 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 07:39:36 +00:00
regis@google.com c0940e641d Triage VM failures in co19 tests.
Review URL: https://chromiumcodereview.appspot.com//10452017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7958 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 18:23:16 +00:00
regis@google.com b0593c8af4 Disallow repeated formal parameters (issue 2240).
Review URL: https://chromiumcodereview.appspot.com//10434005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7925 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 21:47:05 +00:00
regis@google.com 5fe23d1497 Disallow repeated type parameters (issues 2239 & 2240).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10426002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7922 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 20:05:40 +00:00
floitsch@google.com a88e304d29 Deprecate use of timezones.
Review URL: https://chromiumcodereview.appspot.com//10411057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7911 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 16:07:35 +00:00
regis@google.com 249d1d7811 Fix bad language tests.
Re-enable previously timing out tests.
Review URL: https://chromiumcodereview.appspot.com//10408077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7889 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 00:48:27 +00:00
regis@google.com b3c4682a81 Remove compile-time error for unresolved factory names (issue 3079).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10332276

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7822 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 20:42:34 +00:00
regis@google.com 6fb0a9b281 Default parameter values are now allowed in interface methods and in abstract
methods, but not in function type aliases.
Made a negative test positive.
Disabled erroneous co19 tests (new co19 issue 123).
Review URL: https://chromiumcodereview.appspot.com//10392175

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7782 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:59:59 +00:00
hausner@google.com 8f098a4ffa Mark co19 tests that use String +
Mark them as pass or fail until tests are fixed.

TBR
Review URL: https://chromiumcodereview.appspot.com//10332261

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7775 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:06:31 +00:00
regis@google.com f5076a5857 Reapply this reverted change:
Implement updated method overriding rules (issue 2943).
Review URL: https://chromiumcodereview.appspot.com//10387186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7749 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 16:19:39 +00:00
regis@google.com 599ab6e3ca Revert r7729 until Dartium fixes its method override errors.
Review URL: https://chromiumcodereview.appspot.com//10399080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7730 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 01:04:34 +00:00
regis@google.com 2b00b92ab9 Implement updated method overriding rules (issue 2943).
Add language test.
Review URL: https://chromiumcodereview.appspot.com//10388189

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7729 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 00:28:57 +00:00
floitsch@google.com fd81cf6ad5 Convert double to integer and update status file.
Review URL: https://chromiumcodereview.appspot.com//10382170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7649 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 11:45:46 +00:00
cshapiro@google.com 3c1eaa5277 Implement a getter for pattern to complete the Match interface.
BUG=3003

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7570 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 22:06:14 +00:00
srdjan@google.com 92eb96c913 Fix issue 2939, revert previous change that accepted null as excpetion objects:
throw null throws NullPointerException as per latest spec.
Review URL: https://chromiumcodereview.appspot.com//10392016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7475 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 22:27:12 +00:00
ngeoffray@google.com aba0ced437 Start creating a MemberSet abstraction, and use it to fold getters/setters into field accesses.
Review URL: https://chromiumcodereview.appspot.com//10383065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7451 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 11:51:46 +00:00
floitsch@google.com aa545f175e More status updates.
Review URL: https://chromiumcodereview.appspot.com//10321006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7284 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:55:14 +00:00
floitsch@google.com c61a00cf7c Another status file update.
Review URL: https://chromiumcodereview.appspot.com//10331012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7283 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:33:57 +00:00
karlklose@google.com 8fa9bf1317 Implement simple dynamic type check.
The generated code for the test is:
(before)
 $.isTrue(typeof x === 'object' && !!x.is$Hest, (void 0));
 $.isFalse(typeof x === 'object' && !!x.is$Hest, (void 0));
(with patch)
 $.setRuntimeTypeInfo(x, ({X: 'int'}));
 var t0 = $.getRuntimeTypeInfo(x);
 $.isTrue(typeof x === 'object' && !!x.is$Hest && typeof t0 === 'object' && t0.X === 'int', (void 0));
 var t1 = $.getRuntimeTypeInfo(x);
 $.isFalse(typeof x === 'object' && !!x.is$Hest && typeof t1 === 'object' && t1.X === 'String', (void 0));

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7184 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 11:26:59 +00:00
regis@google.com 4df04fc808 Re-enable previously timing out co19 tests.
Review URL: https://chromiumcodereview.appspot.com//10247003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7106 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 22:07:25 +00:00
regis@google.com c2f823d92b Support cyclic types and F-bounded quantification (issue 439).
Added tests for F-bounded quantification.
Review URL: https://chromiumcodereview.appspot.com//10243001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7047 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 22:39:27 +00:00
brianwilkerson@google.com 0c72e4194e Fix a bug that caused private names from an imported library to be included in the name scope of the importing library (issue 2651)
Review URL: https://chromiumcodereview.appspot.com//10134035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6908 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 18:47:33 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
scheglov@google.com 8b0805f08e Support for same prefix for multiple imports.
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6819 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-21 01:35:40 +00:00
kasperl@google.com 334003b9c4 Hack around issue with is checks against type variables.
R=floitsch@google.com,karlklose@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6791 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 12:08:07 +00:00
ahe@google.com 0ddf6a02a6 Make frog.py --leg work on Windows.
Review URL: https://chromiumcodereview.appspot.com//10123013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6782 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 08:03:20 +00:00
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
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
karlklose@google.com 038964d52c Check number of type arguments.
Review URL: https://chromiumcodereview.appspot.com//10105031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6675 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 10:27:32 +00:00
hausner@google.com 69d33b8d8d Fix bug 1991, variable resolution in string interpolation
Check to make sure string interpolation expressions cannot
contain type parameter names.
Review URL: https://chromiumcodereview.appspot.com//10108020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6645 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:10:35 +00:00
hausner@google.com 02661e6905 Accept keyword abstract in front of a class declaration
We can just ignore it. The VM has nothing to do for abstract
classes.
Review URL: https://chromiumcodereview.appspot.com//10103014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6612 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:46:55 +00:00
hausner@google.com 475fbca314 Implement implicit interfaces
Amazingly, this small change is all it seems to take to implement
implicit interfaces.
Review URL: https://chromiumcodereview.appspot.com//10103009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6607 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:21:54 +00:00
karlklose@google.com 3fb96bb8f8 Recommit 'Implement interface types'.
Reviewed as https://chromiumcodereview.appspot.com/9431029

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6586 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:23:41 +00:00
floitsch@google.com f6a66f3878 Allow all different string-literals in map literals.
Before spec. v0.8 only const strings were allowed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6521 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:39:43 +00:00
karlklose@google.com 955e04bf65 Revert "Implement interface types."
This reverts commit r6514.

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6515 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:01:29 +00:00
karlklose@google.com edb70a0cb5 Implement interface types.
Review URL: https://chromiumcodereview.appspot.com//9431029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6514 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:42:13 +00:00
asiva@google.com 8ac0839364 Fix status of co19/Language/10_Expressions/01_Constants_A16_t02 to Pass or Crash as it seems to work correctly on windows.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6496 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 01:31:50 +00:00
asiva@google.com a3918b126f Language/10_Expressions/01_Constants_A16_t02.dart
Should result in OOM exception but is crashing, needs investigation.
Review URL: https://chromiumcodereview.appspot.com//10066037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6495 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 01:26:58 +00:00
floitsch@google.com 645ae182e0 Look up the correct constructor for default classes.
Review URL: https://chromiumcodereview.appspot.com//9980004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6402 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 11:41:13 +00:00
floitsch@google.com 3695be92d7 Make constant lists immutable.
Review URL: https://chromiumcodereview.appspot.com//9965047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6360 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 15:19:46 +00:00
floitsch@google.com 51c03baebe Update status file.
Review URL: https://chromiumcodereview.appspot.com//9961003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6358 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 14:42:23 +00:00
asiva@google.com 93abcffa1b Update test status file.
Review URL: https://chromiumcodereview.appspot.com//9967012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6342 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 21:51:03 +00:00
zundel@google.com 6db104c832 More co19 bug triage.
Every line in the file now has an issue number or other note.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6322 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-09 14:41:16 +00:00