Commit Graph

79322 Commits

Author SHA1 Message Date
sra@google.com 9552d0e337 Regenerate frog dom
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4368 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 19:56:19 +00:00
dcarlson@google.com 7c1ae41e25 restructure string decoding to support iterable use and include benchmarks for UTF-8 decoding.
R=jat@google.com,ahe@google.com,sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4366 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 19:00:19 +00:00
floitsch@google.com b91e9347a8 Allow to invoke fields as if they were methods.
Example:
var f;

main() {
  f = () => 499;
  print(f());
}

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4365 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:28:42 +00:00
ahe@google.com 98d8d8f5cd Only warn that const expressions are not implemented.
Review URL: https://chromiumcodereview.appspot.com//9395043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4364 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:24:23 +00:00
efortuna@google.com ac9b48b436 Retry DRT if we crash with core dump.
Review URL: https://chromiumcodereview.appspot.com//9426001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4362 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:11:23 +00:00
scheglov@google.com cf869318e9 Issue 1606/1108. The 'native' keyword is supposed to only be allowed in core libraries.
http://code.google.com/p/dart/issues/detail?id=1606
http://code.google.com/p/dart/issues/detail?id=1108

R=codefu@google.com,zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4361 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:07:07 +00:00
scheglov@google.com 5fdd279826 Issue 1475. Report warning for non-unique Map literal keys.
http://code.google.com/p/dart/issues/detail?id=1475

R=codefu@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4360 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 17:55:29 +00:00
ahe@google.com a552e40ff1 Mock up all remaining core library implementation classes.
Review URL: https://chromiumcodereview.appspot.com//9417031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4358 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 16:52:11 +00:00
ahe@google.com a5e2d6e486 Use shared implementation of Stopwatch.
Alos, mock up an implementation of interface constructors.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4357 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 15:54:43 +00:00
podivilov@google.com 57fcdcfa53 WebSocketTest now passes in dartium.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4355 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 15:38:04 +00:00
floitsch@google.com 786e679742 Allow method-calls to getters (assuming they contain closures).
Example:
class A {
  var f;
}

main() {
  var a = new A();
  a.f = () => 499;
  print(a.f());  // <== method call to a.f.
}

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4351 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 13:27:09 +00:00
karlklose@google.com 920b97fd4f Resolve class element of Object, even if no objects are used.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4350 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 12:00:14 +00:00
sgjesse@google.com 373074784d Fix Windows build error
R=ricow@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4349 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 07:54:51 +00:00
sgjesse@google.com 2df1d80a02 Add API function Dart_ZoneAllocate
This provides the embedder with the option for allocating temporary C
objects in the current ApiZone.

Zone allocation is especially useful when building a graph of
Dart_CObject structures for posting using Dart_PostCObject.

R=iposva@google.com, turnidge@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4348 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 07:43:24 +00:00
kasperl@google.com c34ec0121c Revert "Wrote functions to convert collections and maps to strings and invoked"
This reverts r4345.

R=jjb@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4347 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 06:36:06 +00:00
jjb@google.com b4db1d6cc0 Wrote functions to convert collections and maps to strings and invoked
these functions from the toString methods of all built-in Collection
and Map implementations. Wrote smoke tests and basher tests.

BUG=4466785
Review URL: https://chromiumcodereview.appspot.com//9320028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4345 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 01:34:00 +00:00
scheglov@google.com d6e272b8e1 Issue 1548. If URI can not be parsed, return null.
http://code.google.com/p/dart/issues/detail?id=1548

This is also specified in JavaDoc for this method.

R=danrubel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4341 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 21:26:25 +00:00
jmesserly@google.com 3a1a261452 don't retry if the browser is dumprendertree
Review URL: https://chromiumcodereview.appspot.com//9416033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4340 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 21:20:16 +00:00
iposva@google.com 9dc3d0f49d - Add dart:json, dart:uri and dart:utf8 to the known and builtin libraries.
- Unify and simplify the building of the creation of the source file.
Review URL: https://chromiumcodereview.appspot.com//9417012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4336 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 19:59:19 +00:00
scheglov@google.com 74ab781eab Issue 1551. Report error for new-line in single-line raw string.
http://code.google.com/p/dart/issues/detail?id=1551

R=codefu@google.com,zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4332 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 19:19:20 +00:00
sigmund@google.com 4b92ac85ba fix .status of co19 tests using Promise
Review URL: https://chromiumcodereview.appspot.com//9418012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4330 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 18:42:18 +00:00
sigmund@google.com 3606f4c98e vmbot: fix vm bot config
Review URL: https://chromiumcodereview.appspot.com//9414014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4329 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 18:27:05 +00:00
sigmund@google.com 427d5e5ead remove promise:
- removes promise from corelib (use future instead)
 - move tests that depend on promises and proxies into samples/proxy/
 - remove dependence on promise from the rest of the system and tests

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4328 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 18:20:41 +00:00
podivilov@google.com ff1ca30b8d Update DOM scripts after recent webkit merge.
TBR=antonm@google.com,sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4322 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 16:03:17 +00:00
antonm@google.com 30eab6bdd7 Support constructor generation for XSLTProcessor.
BUG=1642
TEST=client/tests/client/dom/XSLTProcessorTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4318 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 15:39:04 +00:00
floitsch@google.com ac72832f08 Remove bad line.
Review URL: https://chromiumcodereview.appspot.com//9416013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4314 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 14:17:24 +00:00
floitsch@google.com b9bf91ca1f Mark Stopwatch test as flaky.
co19 issue 4.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4313 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 14:05:31 +00:00
floitsch@google.com ce51c0ee32 Support implicitly bound closures (aka. tear-off closures).
Review URL: https://chromiumcodereview.appspot.com//9415005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4312 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 13:43:19 +00:00
floitsch@google.com a31a1535ea Update status file.
Review URL: https://chromiumcodereview.appspot.com//9417005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4311 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 13:40:46 +00:00
ahe@google.com 6cea9c7604 Enable co19 tests of Stopwatch.
Review URL: https://chromiumcodereview.appspot.com//9416010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4309 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 12:05:27 +00:00
ahe@google.com 01984b9204 Handle imports of dart:core and dart:coreimpl
Review URL: https://chromiumcodereview.appspot.com//9413006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4307 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 11:30:29 +00:00
podivilov@google.com 35c98f9e9f Remove unused dom/common files.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4306 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 10:38:54 +00:00
ahe@google.com 14c86613a7 Various mocks and tweaks to reduce cancels in Leg.
Review URL: https://chromiumcodereview.appspot.com//9420001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4305 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 10:26:17 +00:00
karlklose@google.com 316bd2ed04 Mark co19 test Expect/listEquals_A01_t03 as passing.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4304 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 09:28:04 +00:00
srdjan@google.com 29da5d04f9 Fix rethrow by allowing exception object to be Null Object.
Review URL: https://chromiumcodereview.appspot.com//9416006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4303 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 09:07:32 +00:00
srdjan@google.com edfe6db83f Fix crash in assembler when tracing function (must be zone handle). Fixes bug 1709.
Review URL: https://chromiumcodereview.appspot.com//9415002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4302 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 08:42:00 +00:00
karlklose@google.com 1165672c79 Allow named parameters in const constructor invocations.
The compile time constant analyzer visited the name of the parameter as identifier, which was not resolved. This resulted in an element of kind NONE, which was classified as non-constant.

BUG=http://code.google.com/p/dart/issues/detail?id=1576
TEST=language/NamedArgumentInConstCreationTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4301 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 08:13:49 +00:00
ahe@google.com ee5ce5e5fd Enable co19 tests of Expect.
Review URL: https://chromiumcodereview.appspot.com//9418002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4300 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 07:41:56 +00:00
nweiz@google.com 548bc8e0b7 Fix a minor declaration issue in ElementWrappingImplementation.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4299 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 00:07:23 +00:00
asiva@google.com e4c879018f Fix build breakage by marking Prefix101Test as a failing test for leg.
TBR=hausner
Review URL: https://chromiumcodereview.appspot.com//9404030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4297 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 23:22:17 +00:00
cshapiro@google.com 44daee3e6c Ignore deleted handles when processing weak roots.
Previously, deleted weak persistent handles in live handle blocks were
always assumed live.  With this change, dead handles are always ignored.

When a handle is deleted NULL is stored into the raw object member. This
looks like a Smi encoded 0.  As the handle blocks do not otherwise encode
which elements are live in an allocated block, the garbage collector now
uses this signal to distinguish live handles from deleted handles.

BUG=1640

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4291 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 20:56:15 +00:00
asiva@google.com 592314871c - Add tests for the new prefix specifications.
- Change a negative test to a positive test as it is valid to now have the same prefix in multiple imports.
Review URL: https://chromiumcodereview.appspot.com//9398002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4290 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 20:53:37 +00:00
asiva@google.com 3983c61041 Implement capability to use the same library prefix for multiple library imports (currently this is flagged as an error).
e.g:

#import("mylib101.dart", prefix:"mylib");
#import("mylib102.dart", prefix:"mylib");
#import("mylib103.dart", prefix:"mylib");
Review URL: https://chromiumcodereview.appspot.com//9363048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4289 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 20:53:28 +00:00
eub@google.com 5699b5223e First exercise of spawnUri. Enabling the test needs issue 1666, but hand-running the test (copying and editing all necessary output files into the right structure) succeeds.
Review URL: https://chromiumcodereview.appspot.com//9386027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4287 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 20:00:55 +00:00
ahe@google.com bf4b8c91bd Use Expect from core library.
Review URL: https://chromiumcodereview.appspot.com//9404015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4285 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 19:39:17 +00:00
ahe@google.com 2db35adc8a Start supporting default classes.
Review URL: https://chromiumcodereview.appspot.com//9347045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4282 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 19:31:00 +00:00
turnidge@google.com 5c9dbe6a05 Revert my last change. Windows dislikes long strings...
Review URL: https://chromiumcodereview.appspot.com//9407017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4281 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 19:25:22 +00:00
turnidge@google.com 7177dce4e9 Make gen files more human-readable by using a string initializer
instead of an integer array initializer.

For example, the initializer in builtin_gen.cc now looks something like this:

const char Builtin::builtin_source_[] =
 
  // ----- bin/builtin.dart -----

  "// Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file\n"
  "// for details. All rights reserved. Use of this source code is governed by a\n"
  "// BSD-style license that can be found in the LICENSE file.\n"
  "\n"
  "#library(\"builtin\");\n"
  "#import(\"dart:nativewrappers\");\n"
  "#import(\"dart:coreimpl\");\n"
  "\n"
  "void print(arg) {\n"
  "  _Logger._printString(arg.toString());\n" /* L10 */
  "}\n"
  "\n"
  "void exit(int status) {\n"
  "  if (status is !int) {\n"
  "    throw new IllegalArgumentException(\"int status expected\");\n"
  "  }\n"
  "  _exit(status);\n"
  "}\n"
  "\n"
  "_exit(int status) native \"Exit\";\n" /* L20 */
  "\n"
  "class _Logger {\n"
  "  static void _printString(String s) native \"Logger_PrintString\";\n"
  "}\n"

;
Review URL: https://chromiumcodereview.appspot.com//9348112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4280 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 19:14:03 +00:00
mattsh@google.com 9d294a77df initial frogpad
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4275 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 17:46:32 +00:00
jwren@google.com f5d335800f This CL is part of a proposal to change the API of dartc's implementation of UrlSource.
Review URL: https://chromiumcodereview.appspot.com//9392017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4272 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 16:41:24 +00:00