Commit Graph

3711 Commits

Author SHA1 Message Date
ahe@google.com 4efea1420e Update dart2js_foreign suite as we now validate annotations.
Review URL: https://codereview.chromium.org//11293272

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14885 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:29:40 +00:00
ngeoffray@google.com e4e6eed36c Fix status file. Test fails in non-checked mode too.
Review URL: https://codereview.chromium.org//11293273

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14883 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:25:16 +00:00
ngeoffray@google.com b8b04e8a56 Support corelib tests in checked mode.
Review URL: https://codereview.chromium.org//11361257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14882 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:09:22 +00:00
ahe@google.com 5b2656ec44 Implement --analyze-all option.
Review URL: https://codereview.chromium.org//11293244

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14878 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 09:47:58 +00:00
regis@google.com 7614e956dc Check result type of redirecting factory in checked mode.
Review URL: https://codereview.chromium.org//11369219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14862 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 19:02:08 +00:00
ager@google.com b9438f9a1c Update status file for dart2js
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14854 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 15:39:09 +00:00
ager@google.com 31d840a267 D'oh! Add the last suppression as well.
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14853 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 15:25:38 +00:00
ager@google.com 1764a9fd2c Add failures to status files
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14852 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 15:22:14 +00:00
ager@google.com 28b43144e5 Update dart:io to convert strings between UTF8 and current code page
when interacting with the system.

What we get from and need to hand to the VM is utf8. What we
get from and need to hand to the system is in the current
code page.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14851 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 15:03:23 +00:00
lrn@google.com 87eec0ef1f Revert "Exception no longer an interface."
Broke more than expected.

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14848 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 14:04:19 +00:00
lrn@google.com def3ee60a5 Exception no longer an interface.
Some tests disabled due to dartbug.com/6697

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14847 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 13:42:51 +00:00
ngeoffray@google.com 7e53cbe71e Update test expectations for dart2dart and drt.
Review URL: https://codereview.chromium.org//11366219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14846 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 13:18:50 +00:00
ngeoffray@google.com a742983dd5 Start new design for interceptors and implement String.charCodeAt with it.
Review URL: https://codereview.chromium.org//11365170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14845 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 12:59:53 +00:00
lrn@google.com 7e10a8ab58 Fix analyzer test expectations
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14844 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 12:40:49 +00:00
lrn@google.com 4a18bbf916 Remove deprecated exception classes.
Review URL: https://codereview.chromium.org//11360224

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14843 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 12:22:54 +00:00
sgjesse@google.com c27bd8bb28 Refactoring of the HTTP library
Better state handling: On both server and client the state of the
connection is tracked. This goes for both the HTTP
request/response state (idle, active, done) and the socket
state (open, read closed, write closed).

Simplified the socket event handling: All socket onData, onClosed
and onError events go directly to the HTTP parser. The HTTP
connection only receives events from the HTTP parser now.

Better close handling: A close queue have been added where
sockets which should be closed are added. When in the close queue
the socket will be closed when either all data from the output
stream are written or an error occours.

Changed the HTTP parser to parse either requests or responses.

Removed the null-checks in the HTTP parser for whether the
callbacks where set. The HTTP parser is only used internally and
we always set all callbacks.

Whether it fixes the bugs listed below still needs to be verified
through thorough testing on all platforms. However the code should be
in much better shape from this refactoring.

R=ager@google.com

BUG=dart:6393, dart:6521, dart:6594

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14840 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 11:19:59 +00:00
ajohnsen@google.com 970cc5ba68 Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl.
After this cleanup, RegExp no longer have a const constructor. Use 'new
RegExp(...)' from now on.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14838 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:41:37 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
hausner@google.com 4ca0c72fd5 Enforce proper library/import syntax
Review URL: https://codereview.chromium.org//11312197

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14828 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 01:06:48 +00:00
vegorov@google.com f46860b868 Eradicate CallSiteInliner::next_ssa_temp_index_.
It should always be equal to the max SSA temp index stored on the caller graph itself. Thus it is redundant and dangerous to store it in two places.

R=kmillikin@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14827 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 00:50:57 +00:00
gram@google.com da4fb40152 Fix sort test status for dartc.
Review URL: https://codereview.chromium.org//11312199

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14826 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 00:44:18 +00:00
gram@google.com 0140f9bcb6 Revert the changes to co19; I didn't realize that I couldn't change these
tests.
Review URL: https://codereview.chromium.org//11365211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14824 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 00:24:46 +00:00
gram@google.com d29a06aff6 Fix import in test.
Review URL: https://codereview.chromium.org//11366206

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14819 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 23:15:29 +00:00
hausner@google.com 959f9ab4c4 More function literal changes in tests.
Review URL: https://codereview.chromium.org//11363206

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14816 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 22:57:39 +00:00
gram@google.com cdb7da543b Library syntax updates. Covers all remaining files in ~/tests aprt from ~/tests/language and ~/tests/standalone.
Review URL: https://codereview.chromium.org//11358203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14815 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 22:45:18 +00:00
fschneider@google.com 8aa175b9e6 Restrict immediate operands to smi where only smis are supported.
Re-enable redundant phi elimination.

Add x64 codegen templates and assembler instructions for immediate operands.

Fix x64 assembler for imull when using r8-r15.

Add x64 instruction for imulq(reg, imm).

Fix x64 disassembler printing of immediates.
Review URL: https://codereview.chromium.org//11362210

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14814 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 22:44:34 +00:00
blois@google.com ed44b9285d Splitting SVG types out of dart:html.
Beyond this CL I need to remove the SVG prefix for most of the classes, but this is an additional chunk of work.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14808 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 21:15:06 +00:00
hausner@google.com b2cbdba375 Remove named function literals from library and tests
Start eliminating old-style function literals, i.e. remove
return type and function names.

Enforcing new style function literal syntax can be turned
on with the vm flag --strict_function_literals.
Review URL: https://codereview.chromium.org//11377102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14805 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 19:55:11 +00:00
floitsch@google.com 8e6f238f86 a === b -> identical(a, b)
Replace === null with == null.

BUG=http://dartbug.com/6380

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14794 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 17:19:58 +00:00
ngeoffray@google.com 0212e929a0 Update status file.
Review URL: https://codereview.chromium.org//11312187

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14787 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:27:32 +00:00
ngeoffray@google.com ddca63f78e Update get$hashCode to not use JS for most uses. Also fix issue 6522 where the hashCode of a String was always 0.
Review URL: https://codereview.chromium.org//11369181

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14785 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:10:11 +00:00
lrn@google.com e6221b1278 Set VM language/gc_test to "Pass, Fail".
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14782 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 10:10:46 +00:00
ricow@google.com 5baa1e9c93 Add slow marker on dart2js/field_type_inferer_test until issue 6658 is fixed
Review URL: https://codereview.chromium.org//11360188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14781 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 08:46:54 +00:00
lrn@google.com 1555c1db26 Convert String to a class.
Remove the StringImplementation class.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14779 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 08:16:59 +00:00
scheglov@google.com d27580a5ca Issue 6578. Report warning, not error for static/instance getter/setter mismatch
http://code.google.com/p/dart/issues/detail?id=6578

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14772 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-10 00:43:05 +00:00
regis@google.com 1946c5d29e Disable new test in checked mode for dart2js.
Review URL: https://codereview.chromium.org//11361199

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14770 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-10 00:10:23 +00:00
regis@google.com 40276f8c30 Fix result type checking of factory constructors of generic classes in VM.
Add a language test.
Fix some language tests.
Fix runtime library.
Note: This does not yet fix result checking of redirecting factories.
Review URL: https://codereview.chromium.org//11369168

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14769 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 23:51:06 +00:00
fschneider@google.com b866c114d1 Correct test status of arithmetic_test for dart2dart.
It is only expected to fail with dart2js.

R=srdjan@google.com
Review URL: https://codereview.chromium.org//11410013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14759 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 21:22:36 +00:00
rnystrom@google.com f30fb024ce The goal here is to rearrange StandardTestSuite so that it's possible override some of its behavior for running package tests while still keeping the rest of the behavior.
This patch is just the refactoring. I'll do the actual pub stuff in a separate patch.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14757 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 20:56:59 +00:00
fschneider@google.com a42474ba37 Reland: Improve smi shift operations and avoid repeated deoptimizations.
This CL includes a bug fix where a NULL check of the pc was missing.

Also change the dart2js test status of arithmetic_test from Skip to Fail.
Review URL: https://codereview.chromium.org//11369158

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14755 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 19:54:55 +00:00
gram@google.com 696ab70006 Update library syntax (tests/html directory).
Review URL: https://codereview.chromium.org//11364181

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14754 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 19:45:02 +00:00
gram@google.com f0bcede0ba TBR: Fix library name cauisng build break.
Review URL: https://codereview.chromium.org//11358185

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14753 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 19:43:14 +00:00
gram@google.com 330ee1eb15 Updated tests/compiler/* to use new library syntax.
Review URL: https://codereview.chromium.org//11368150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14748 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 18:39:05 +00:00
smok@google.com 23c2fb6d7c [dart2dart] Triage co19 test failures.
Review URL: https://codereview.chromium.org//11312167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14742 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 15:26:42 +00:00
johnniwinther@google.com e4e50abc57 Library name added to test.
Review URL: https://codereview.chromium.org//11363165

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14739 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 13:15:00 +00:00
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
sgjesse@google.com df4eaf9944 Fix multiple onRequest callbacks during redirect.
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14727 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:45:49 +00:00