Commit Graph

79322 Commits

Author SHA1 Message Date
jbrosenberg@google.com bd9e090862 Fix libraryDepsVisitor to properly track prefixed library references
Review URL: http://codereview.chromium.org//8359002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@585 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 17:15:03 +00:00
antonm@google.com 1342107b1a Do not mark test as successful in callbackDone if test is
still running.
Review URL: http://codereview.chromium.org//8344084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@584 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 16:58:59 +00:00
codefu@google.com b145d2784b Cleanup the build for perf script
R=mmendez
BUG=
TEST=

Review URL: http://codereview.chromium.org//8344083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@579 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 14:22:41 +00:00
srdjan@google.com e7b8e8d0ee Add more tests for classes which may not be subclassed.
Review URL: http://codereview.chromium.org//8355001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@577 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 06:55:45 +00:00
iposva@google.com 73d6d0de54 - Make sure to test all combinations of getters.
Review URL: http://codereview.chromium.org//8355014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@573 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 21:34:28 +00:00
danrubel@google.com e24169a7d7 Recommitting http://codereview.chromium.org/8310016/
Review URL: http://codereview.chromium.org//8342051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@571 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 20:58:03 +00:00
turnidge@google.com 966fb86442 Minimal change to get win32 build working again.
Review URL: http://codereview.chromium.org//8352014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@568 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 19:13:55 +00:00
antonm@google.com c7f5c5e073 Allow callbackDone while test is executed by runTest.
Review URL: http://codereview.chromium.org//8354006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@567 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 19:05:55 +00:00
turnidge@google.com 368f37895f Use the distinguished class, ApiFailure, to signal when a Dart_Result is
invalid.

We eventually plan to drop the Dart_Result type entirely, but this change allows us to try out the functionality before we munge the user-visible api.
Review URL: http://codereview.chromium.org//8334009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@566 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 18:41:33 +00:00
nweiz@google.com 260693a55e Rename cloneNode to clone and move it into the Node interface.
Review URL: http://codereview.chromium.org//8330003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@563 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 18:03:24 +00:00
antonm@google.com 9b8e11cb61 Setup necessary zones.
Review URL: http://codereview.chromium.org//8342039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@558 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 16:40:50 +00:00
iposva@google.com 4906ccd1db - Remove the remaining Array interface.
Review URL: http://codereview.chromium.org//8348025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@556 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 15:44:55 +00:00
iposva@google.com 481305a9c7 - Fix which headers are included.
Review URL: http://codereview.chromium.org//8347023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@555 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 15:44:40 +00:00
zundel@google.com 85a0fa161b Migrate --expose_core_impl flag from DartRunner to DartCompiler.
R=ngeoffray
BUG=527517

Review URL: http://codereview.chromium.org//8333016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@553 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 14:36:07 +00:00
jrgfogh@google.com 8c680b64ba Disabled failing tests.
Review URL: http://codereview.chromium.org//8357002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@552 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 14:26:14 +00:00
antonm@google.com a9b27ee662 Introducing common DOM sources.
As currently we cannot properly bundle libs, just produce two files: dom.dart for common parts in
dart:dom and domimpl.dart for dart:domimpl.

Review URL: https://chromereviews.googleplex.com/3573024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@551 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 13:26:41 +00:00
ngeoffray@google.com 418539495b Add a test for testing evaluation order of getters.
Review URL: http://codereview.chromium.org//8347035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@550 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 13:04:03 +00:00
jrgfogh@google.com 9da32a390f Moved Timer tests to the right directory.
Review URL: http://codereview.chromium.org//8353004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@549 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 12:04:27 +00:00
ahe@google.com 80e2bb4bd2 Filter-out dart:... sources
Review URL: http://codereview.chromium.org//8329026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@548 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 10:05:03 +00:00
jrgfogh@google.com 999a62bd68 Fixed NullPointerException in Timer.
Review URL: http://codereview.chromium.org//8346030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@547 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 10:00:19 +00:00
srdjan@google.com bb6a85d69c Wrong condition caused repeated deoptimizations and performance degradation especially on Meteor.
Review URL: http://codereview.chromium.org//8343024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@546 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 08:27:39 +00:00
rnystrom@google.com c12aed2171 Refactor Total tests to not use UnitTestSuite.
Review URL: http://codereview.chromium.org//8347024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@545 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 01:14:49 +00:00
iposva@google.com cf982eb4c5 - Remove remaining Array interface.
Review URL: http://codereview.chromium.org//8346022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@544 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 00:50:39 +00:00
johnlenz@google.com 226701b6ab Insure that isolate specific methods are generated after "inherits". Fixes isolates in Internet Explorer.
Review URL: http://codereview.chromium.org//8346018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@542 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 23:31:47 +00:00
rnystrom@google.com 32736341bb Clean up swarm tests to new API.
Review URL: http://codereview.chromium.org//8345023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@541 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 23:15:58 +00:00
cshapiro@google.com aa427ff3dd Use the narrowest character width possible for substrings.
Review URL: http://codereview.chromium.org//8346014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@540 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 22:36:16 +00:00
rnystrom@google.com 8543310c81 Clean up observable tests to new API.
Review URL: http://codereview.chromium.org//8348016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@539 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 22:24:12 +00:00
sra@google.com 6ae8d1a4a7 Remove createXMLHttpRequest and other 'factory' constructors.
These are now available with 'new' syntax (i.e. from genuine factory
constructors.)

BUG=5464478
TEST=

Review URL: http://codereview.chromium.org//8344019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@537 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:46:37 +00:00
turnidge@google.com 4271315779 Fix more races in MessageQueue_WaitNotify. My notifies could show up
before my waits, and I would timeout.
Review URL: http://codereview.chromium.org//8347013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@536 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:41:43 +00:00
turnidge@google.com 804becb850 Deleting the wrong message in FlushAll...
Review URL: http://codereview.chromium.org//8347010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@535 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:23:06 +00:00
turnidge@google.com 002eacd251 Fix race.
Review URL: http://codereview.chromium.org//8344017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@534 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:19:27 +00:00
johnlenz@google.com efa0f8eb42 Improve location information for some warnings/errors.
Fixes issue 82
Review URL: http://codereview.chromium.org//8348015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@533 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:13:24 +00:00
rnystrom@google.com da8b9a6766 Clean up UnitTestSuite a bit.
Review URL: http://codereview.chromium.org//8343009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@532 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:07:54 +00:00
regis@google.com 715f9a9700 Address review comments of previously submitted cl 8329005.
Review URL: http://codereview.chromium.org//8347008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@531 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:07:44 +00:00
rchandia@google.com 055ff3f630 Flush stdout on calls to PrintString
R=iposva@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8345009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@530 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:06:01 +00:00
rnystrom@google.com 487c4f689d Get touch tests working at all, and with new API.
Review URL: http://codereview.chromium.org//8341003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@529 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 21:03:14 +00:00
turnidge@google.com 44720be924 Mark MessageQueue_WaitNotify flaky again.
Review URL: http://codereview.chromium.org//8349014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@528 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 20:55:54 +00:00
turnidge@google.com c20b9d4183 Add a sleep at the end of MessageQueue_WaitNotify to give the spawned
thread time to properly exit.
Review URL: http://codereview.chromium.org//8345013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@526 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 20:38:36 +00:00
turnidge@google.com bbedbbbc49 Turn the MessageQueue_WaitNotify test back on.
My expectation is that this will turn the mac release tests red.  I
will then follow up with a possible fix.

Can't reproduce the problem locally, so using the buildbot as my testbed :-/.
Review URL: http://codereview.chromium.org//8344014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@524 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 20:18:06 +00:00
rnystrom@google.com e10d67a9bd Move layout tests to new API.
Review URL: http://codereview.chromium.org//8337004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@522 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:44:41 +00:00
mmendez@google.com c7b078560a Adds static type checking to the foreach loop.
Notice that the specification only states that the object being iterated over needs to implement Iterator<T> iterator() so this patch adheres to that.

BUG=http://code.google.com/p/dart/issues/detail?id=78 -

Review URL: http://codereview.chromium.org//8322014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@521 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:36:34 +00:00
iposva@google.com ed7a54dc74 - Flaky on all architectures.
Review URL: http://codereview.chromium.org//8345005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@520 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:26:21 +00:00
iposva@google.com d4e000eda7 - Update vm.status file while we figure out crashes.
Review URL: http://codereview.chromium.org//8342005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@518 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:20:15 +00:00
johnlenz@google.com c3cb970918 Fixed alignment of named parameters in the presents of captured scopes
Review URL: http://codereview.chromium.org//8347002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@517 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:00:04 +00:00
turnidge@google.com 0e98d4ae64 Allow embedders to provide custom message delivery for an isolate.
==============

Added Dart_SetPostMessageCallback and Dart_SetClosePortCallback.
These allow the embedder to provide custom message/port behavior
for their application. The vm provides standard implementations
that work with the standard run loop.

Added Dart_HandleMessage, which processes one message on the
current isolate. Embedders can use this to write their own
message processing loops. Rewrote code to use this internally.

Added Isolate::StandardRunLoop() to share code between
Dart_RunLoop and lib/isolate.cc

Changed the interface to PortMap::PostMessage. PostMessage is
now agnostic to message delivery mechanism. Note that PortMap is
now out of the "ReceiveMessage" business entirely. Moved
MessageQueue and friends out to message_queue.cc/h.

Moved the monitor from the Isolate into the MessageQueue. No
need for outsiders to mess. Added MessageQueue::Wait. Moved
monitor locking from PortMap into MessageQueue itself, which was
easier for me to reason about. Wrote some tests.

Removed PortMessage::Handle. The code turned into Dart_HandleMessage.

Regularized the nomenclature around ports. Type is now always
Dart_Port instead of intptr_t. Variables end in _port instead of
_id. Use the term "dest" instead of "target" or "send".

Added a family of new tests to port_test.

Added EXPECT_NE to the test framework.
Review URL: http://codereview.chromium.org//8297004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@516 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 17:54:07 +00:00
antonm@google.com 27823d8ac2 Add a support for layout tests.
Review URL: http://codereview.chromium.org//8337020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@514 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 17:27:46 +00:00
johnlenz@google.com 0880d2fec3 Fix build now that the test passes.
Review URL: http://codereview.chromium.org//8347001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@512 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 17:13:07 +00:00
johnlenz@google.com 7af448f4fe By pass object boxing for all js primitives.
Review URL: http://codereview.chromium.org//8323001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@510 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 16:18:12 +00:00
ngeoffray@google.com c0665b7f29 Remove print from MathVMTest and update status file to refer to dom 'print' bug.
Review URL: http://codereview.chromium.org//8339018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@509 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 15:10:03 +00:00
ngeoffray@google.com ac91a5a8da Fix build failures due to forgotten change in the Array -> List transition.
Review URL: http://codereview.chromium.org//8333017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@508 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 10:54:45 +00:00