Commit Graph

79322 Commits

Author SHA1 Message Date
hausner@google.com e1d0b0619b Debugger API: get local variables of an activation frame
Also add a test case where the evaluation of a field name results in an error during the evaluation of the field.
Review URL: https://chromiumcodereview.appspot.com//9264058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3738 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 18:10:08 +00:00
ngeoffray@google.com ee23e68aea Support named arguments for statically resolved calls.
Review URL: https://chromiumcodereview.appspot.com//9301038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3735 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 16:49:01 +00:00
dgrove@google.com aaa33a0658 Move all samples but swarm from client/samples/ to samples/ .
Review URL: http://codereview.chromium.org//9303020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3733 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 16:26:19 +00:00
ahe@google.com ed8314bb14 Update test expectations for utils/UriTest.
Review URL: https://chromiumcodereview.appspot.com//9301039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3729 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 14:33:39 +00:00
whesse@google.com 0fc415a002 Add flag to tools/test.dart. Add utils test suite to list of default suites.
Optional --drt= flag specifies non-standard location of DumpRenderTree for browser tests.

BUG=
TEST=tools/test.dart -cdartium --drt=client/tests/drt/DumpRenderTree

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3728 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 14:10:53 +00:00
kasperl@google.com f9b91f056e Improve frog error reporting when providing too few or too many arguments.
This is a partial re-landing of r3720, but without getting rid of the
duplicate errors and warnings.

R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3727 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 14:02:19 +00:00
ahe@google.com 3ddd2d6b03 Two different classes may have the same *name*.
Review URL: https://chromiumcodereview.appspot.com//9303033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3725 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 13:31:17 +00:00
ahe@google.com 26d232679d Create a URI class in utils/ (based on client/util/).
Review URL: https://chromiumcodereview.appspot.com//9295043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3722 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 12:11:10 +00:00
ager@google.com 821d6c1dfe Enable test.dart on Mac after fixing flakiness caused by signal handlers.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3714 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 09:26:41 +00:00
ager@google.com 37af08b705 Move actual work out of the SIGCHLD signal handler for the dart:io
process library.

Use the self-pipe trick to signal a dedicated thread when a SIGCHLD
signal is received. The dedicated thread will perform the actual work
of extracting the exit code and posting it back to Dart.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3711 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 09:10:24 +00:00
kasperl@google.com 15d4af7cbf Update test expectations for browser tests.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3710 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 08:24:39 +00:00
lrn@google.com 34c4562857 Refactoring of string literals. Implement static string addition.
QuotedString has become DartString, and it represents the actual Dart
string value (i.e., iterating over it provides character codes after
interpreting escape sequences). Quoting is now only used during parsing,
after that a DartString is just its content.
Static string addition (both as optimization and as required for
compile time constant expressions) is implemented by creating a ConsDartString
object that represents the concatenation, without flattening the string
unnecessarily.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3709 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 07:28:57 +00:00
sra@google.com fad369ec83 Fix dart_client break
JSCompiler chokes on 'Uint8ClampedArray'.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3708 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 05:02:04 +00:00
regis@google.com 5efeb28010 Fix build breakage.
Review URL: https://chromiumcodereview.appspot.com//9302025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3707 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 03:44:01 +00:00
sra@google.com 048acd5190 Refresh dart:dom libraries from WebKit
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3706 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 03:13:32 +00:00
efortuna@google.com 95498e8e50 Prevent browser windows from staying open.
Review URL: https://chromiumcodereview.appspot.com//9303019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3705 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 01:47:41 +00:00
efortuna@google.com 5a44035961 Changing to recommended way to fix console.log in IE by Kasper.
Plus some updates to the test.stats files for IE results.
Review URL: https://chromiumcodereview.appspot.com//9302012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3704 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 00:51:43 +00:00
regis@google.com 980cbf9c74 Store resolved library prefix in unresolved class object in order not to repeat
unnecessary library prefix resolution.
Remove redundant Type::NewParameterizedType() helper.
Simplify parsing of qualified identifiers.
Cleanup parsing of factory methods.
Fix resolution of imported types (add tests).
Review URL: https://chromiumcodereview.appspot.com//9233039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3703 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 00:07:07 +00:00
sra@google.com 6d5e6cb1fa Implement WebKit IDL 'module' feature [Supplemental=Foo]
interface [Supplemental=DOMWindow] DOMWindowWebAudio { ... }

defines the members of DOMWindow that come from the WebAudio module.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3701 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 23:16:56 +00:00
sra@google.com 2b5dec6c58 IDL syntax - permit zero extended attributes.
This is used in the latest WebKit IDL change.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3698 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 19:56:26 +00:00
zundel@google.com 354915ee05 Total has moved, get rid of .status file exclusions
Review URL: https://chromiumcodereview.appspot.com//9302002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3696 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 18:40:51 +00:00
scheglov@google.com 2ae9b5fcaf Issue 1251. Check for getter existence.
http://code.google.com/p/dart/issues/detail?id=1251

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3693 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 17:36:42 +00:00
ahe@google.com f1de6231e5 Copy dart/client/util/Uri.dart to dart/utils/uri/uri.dart
Review URL: https://chromiumcodereview.appspot.com//9159032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3692 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 17:03:38 +00:00
sgjesse@google.com 1b6dcca246 Change friend declaration
Visual Studio requires the friend declaration for the actual class using a private method. GCC lives with a friend declaration for a sub-class.

TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3683 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 08:53:11 +00:00
sgjesse@google.com f50fb7546e Implementation of message reader for converting a message snapshot into a C structure
It currently supports a limited number of types null, boolean, smi,
double, one byte string and arrays of these.

There is still no public function in the API to access this.

R=asiva@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3682 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 08:29:31 +00:00
ahe@google.com 1eaead81fd A test of super constructor calls.
Review URL: https://chromiumcodereview.appspot.com//9298048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3681 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-30 07:05:40 +00:00
vsm@google.com 66a783fc7a Update expectation with new test name
TBR=sigmund

TEST=client/dom/IsolateLightTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3677 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-28 00:33:17 +00:00
vsm@google.com 9f963fb24e Refactoring to migrate layout tests over.
I'll rename layout tests to end in Test.dart as I migrate them over.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3674 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 23:30:08 +00:00
hausner@google.com 8866540697 Fix listing of source scripts in debugger
The cache of loaded scripts must be initialized to null when loading
from a snapshot.

Fix for issue 1345.
Review URL: https://chromiumcodereview.appspot.com//9121060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3673 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 23:00:55 +00:00
zundel@google.com 8d897192ae Call operator shared test and parser updates for operator call in dartc.
http://code.google.com/p/dart/issues/detail?id=1355

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3671 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 22:32:00 +00:00
efortuna@google.com 825ee40c58 Add closing paren.
TBR=sigmund@google.com,
Review URL: https://chromiumcodereview.appspot.com//9232062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3670 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 21:35:37 +00:00
efortuna@google.com 9f58ccf764 Fix dartc tests, and second half of r3585 for Windows.
TBR=sigmund@google.com,
Review URL: https://chromiumcodereview.appspot.com//9298028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3669 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 21:29:34 +00:00
srdjan@google.com df94bc5fa5 Use inlined double temporary object for unary operation, add tests. Fix disassembler crash.
Review URL: https://chromiumcodereview.appspot.com//9297026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3666 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 21:04:12 +00:00
efortuna@google.com 02c2b89f37 Resubmitting first half of r3585 from issue http://chromiumcodereview.appspot.com/9146049/
This previously broke dartc tests.
Review URL: https://chromiumcodereview.appspot.com//9234078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3665 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 20:46:53 +00:00
zundel@google.com afeaa7ed81 DartToSourceVisitor was omitting type annotations on list/map literals
Review URL: https://chromiumcodereview.appspot.com//9295019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3664 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 19:57:28 +00:00
efortuna@google.com c4aea9a397 Add doctype to test html boilerplate so that IE 9 does not go into quirks mode.
Review URL: https://chromiumcodereview.appspot.com//9271083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3663 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 19:20:49 +00:00
scheglov@google.com 3964729a31 Issue 801. Use actual super constructor with all named or synthetic.
http://code.google.com/p/dart/issues/detail?id=801

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3661 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 17:12:43 +00:00
srdjan@google.com 71dbd99c77 Fix a perfrormance degradation in Mandelbrot: double comparison may have
left and right temporary objects.
Review URL: https://chromiumcodereview.appspot.com//9225008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3660 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 16:54:14 +00:00
ahe@google.com 7d3345a87e Update status for browser tests
Review URL: https://chromiumcodereview.appspot.com//9225026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3657 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 16:22:50 +00:00
scheglov@google.com 49e1adff6f Issue 962. Fix for crash in nested function parameters list code generation.
http://code.google.com/p/dart/issues/detail?id=962

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3655 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 14:58:22 +00:00
ager@google.com c3f89c46ec Fix race condition between signal handler and main thread.
The signal handler could unblock the main thread. The main thread
could delete the Process object the signal handler is holding a
pointer to. The signal handler could then close a file descriptor
it got from the deleted memory.

The whole process exit handling infrastructure is pretty fragile.
We should attempt to come up with something simpler.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3652 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 13:01:16 +00:00
antonm@google.com 8763b2b5e4 Skip only on Dartium.
Review URL: https://chromiumcodereview.appspot.com//9298007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3651 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 12:51:56 +00:00
lrn@google.com bae05a2e89 Inserted string validation as separate task in compiler.
A LiteralString that has been validated now has a QuotedString
on it that records extra information (string without quotes,
quoting style and string length). Later stages expect that
QuotedString to be there and the string to be valid.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3650 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 12:21:54 +00:00
ngeoffray@google.com 6cfb88c596 Implement support for user-defined operators.
Review URL: https://chromiumcodereview.appspot.com//9284022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3646 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:51:24 +00:00
ngeoffray@google.com 2e93523f08 Small changes to get code generation of getters and setters working. Resolution is not fully correct yet.
Review URL: https://chromiumcodereview.appspot.com//9223012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3644 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:23:31 +00:00
antonm@google.com 86c806b62d Skip language/StringEscape1NegativeTest on Dartium.
Review URL: https://chromiumcodereview.appspot.com//9232044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3643 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 10:06:52 +00:00
antonm@google.com 49caf361d5 Temporary suppress total tests.
Review URL: https://chromiumcodereview.appspot.com//9223013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3642 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 09:54:08 +00:00
ager@google.com 8a59838677 Fix the dart:builtin and dart:io parts of the SDK.
- Deal with the newly introduced io.dart library.
- Fix the handling of builtin_runtime.dart so it does not contain
  multiple #library tags.

R=dgrove@google.com,iposva@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3641 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 06:54:16 +00:00
nweiz@google.com 95c6a63093 Add some more tests for Element and Node.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3640 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 01:31:58 +00:00
srdjan@google.com 81698d0ad7 Allocate inlined temporary double objects only if the parent node supports it;
fixes bug http://b/issue?id=5903071
More optimizations can be added later.
Review URL: https://chromiumcodereview.appspot.com//9288086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3639 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-27 01:14:47 +00:00