blois@google.com
d1da6affdd
Deprecating Element.elements for Element.children.
...
BUG=3584
Review URL: https://codereview.chromium.org//11413071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15118 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 23:01:13 +00:00
blois@google.com
759bece562
Dartifying SVG library class names.
...
This CL is based on my previous CL to split out the SVG library.
Basically it renames most classes, but because of some name conflicts around Element and Document, I've skipped those. Renaming those classes will require some sizable changes to the generation code to emit library prefixes when referencing types across libs.
BUG=
Review URL: https://codereview.chromium.org//11364186
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15107 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 20:38:13 +00:00
blois@google.com
a2e26e1daf
Dart generation changes for splitting apart resolvers.
...
patch from issue 11316020
BUG=6722
Review URL: https://codereview.chromium.org//11348093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15099 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 18:47:57 +00:00
amouravski@google.com
b528266e14
Fix for triple-slash dartdocs
...
They had been ignoring multiline markdown such as code samples.
More information available at:
http://japhr.blogspot.com/2012/11/troubleshooting-triple-slash-dartdocs.html
This also includes a new test file, though I am unsure if the
paths are correct.
BUG=
Review URL: https://codereview.chromium.org//11358134
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15095 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 17:37:20 +00:00
ngeoffray@google.com
567a719b08
Remive uses of "void operator[]() => ..." in the html library and enable return type checks for all returns.
...
Review URL: https://codereview.chromium.org//11417060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15093 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 17:31:05 +00:00
ngeoffray@google.com
5c8fe43e9f
Fix host-checked mode failures.
...
Review URL: https://codereview.chromium.org//11414062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15090 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 16:16:36 +00:00
ngeoffray@google.com
68dd220bfc
Fix a crash in the compiler where an ssa instruction was using itself.
...
Review URL: https://codereview.chromium.org//11420060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15089 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 16:15:03 +00:00
ngeoffray@google.com
c5a7fb75b0
Add JSNumber, JSInt and JSDouble for the new interceptor scheme.
...
Review URL: https://codereview.chromium.org//11348129
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15085 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 14:53:14 +00:00
ngeoffray@google.com
c2c0427204
Fix bug in dart2js where the return type in a bailout version was not registered.
...
Review URL: https://codereview.chromium.org//11414057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15079 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:53:22 +00:00
ngeoffray@google.com
d92cacb40e
Move more methods to the new interceptor scheme, and support having the same method in two intercepted classes.
...
Review URL: https://codereview.chromium.org//11280034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15078 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:34:16 +00:00
lrn@google.com
3450798a1d
Make Exception a class, not an interface, and remove the const constructor.
...
We should consider removing the constructor entirely, there is never a good excuse for throwing a non-descript Exception. If you do, it should likely be an Error instead.
Review URL: https://codereview.chromium.org//11369243
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15077 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:23:23 +00:00
sgjesse@google.com
6e09071a58
Make HTTP server close sockets when closed in idle state
...
If a connection was in the idle state and the socket was closed by the
client the server did close the connection. This caused the server to
quickly run out of resources. There was a state check missing after a
state change.
Added a COSING state as well and a way to get the number of
connections if various states.
R=ager@google.com , ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//11348127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15069 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 11:11:00 +00:00
lrn@google.com
0c8dce77f1
Revert "Remove NullPointerException."
...
Crashes in the x64 VM.
Review URL: https://codereview.chromium.org//11417058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15065 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:59:59 +00:00
lrn@google.com
e211c2f0ee
Remove NullPointerException.
...
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).
Review URL: https://codereview.chromium.org//11415028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15061 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 08:51:49 +00:00
ngeoffray@google.com
9ae8f3b4e1
Forgot to change the condition to be true in a do/while loop that has phi updates: the condition has already been evaluated.
...
Review URL: https://codereview.chromium.org//11419056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15059 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 07:32:26 +00:00
sra@google.com
28ba86d96e
Remove _NodeListWrapper, make NodeList less special.
...
Review URL: https://codereview.chromium.org//11413053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15054 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-18 22:44:22 +00:00
dgrove@google.com
ed80b0a2fb
Change Element -> E, remove warnings when running dart2js.
...
Review URL: https://codereview.chromium.org//11280046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15051 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 16:26:52 +00:00
efortuna@google.com
88d677a766
Fixes that dart2js analyze-all found.
...
BUG=6691
Review URL: https://codereview.chromium.org//11316064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15049 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 02:51:04 +00:00
efortuna@google.com
a9d1cb16db
Add constructors for SVG elements and remove static factory providers for html
...
elements with fix for optional parameters.
BUG=
Review URL: https://codereview.chromium.org//11299047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15045 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 23:31:26 +00:00
floitsch@google.com
f6fa33d28b
Add List.first.
...
BUG=http://dartbug.com/1790
Committed: https://code.google.com/p/dart/source/detail?r=15036
Review URL: https://codereview.chromium.org//11316059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15040 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:58:01 +00:00
floitsch@google.com
7382cc8756
Revert "Add List.first."
...
This reverts commit r15036.
Review URL: https://codereview.chromium.org//11299048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15038 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:33:49 +00:00
floitsch@google.com
7f5ac55b45
Add List.first.
...
BUG=http://dartbug.com/1790
Review URL: https://codereview.chromium.org//11316059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15036 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:15:02 +00:00
ngeoffray@google.com
d4e84b1d01
At SSA build-time, change the block information that we attach to loop with aborting bodies.
...
Review URL: https://codereview.chromium.org//11414029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15031 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 19:25:33 +00:00
blois@google.com
e60a29db83
Updating CSS styles.
...
This is just re-running the css_code_generator script to update the list of CSS styles.
I'm not sure why the parameters were var rather than String, but they call setProperty which is typed to a string, so it seems that String is correct.
BUG=3828
Review URL: https://codereview.chromium.org//11360257
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15028 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:53:20 +00:00
jmesserly@google.com
fa37636797
"Reverting 15020"
...
Review URL: https://codereview.chromium.org//11412042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15025 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:34:08 +00:00
amouravski@google.com
99127ef9e4
Added top level definition to Window.
...
Review URL: https://codereview.chromium.org//11416028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15022 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:06:24 +00:00
blois@google.com
32ea129cc1
Removing the unused AttributeMap class.
...
BUG=6749
Review URL: https://codereview.chromium.org//11419029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15021 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 18:01:56 +00:00
efortuna@google.com
2c8a8888e6
Add constructors for SVG elements and remove static Factory providers for Html
...
elements.
Review URL: https://codereview.chromium.org//11293292
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15020 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:57:03 +00:00
blois@google.com
b7825954e6
Making Element abstract.
...
BUG=6747
Review URL: https://codereview.chromium.org//11348082
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15018 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:47:17 +00:00
ngeoffray@google.com
c01dd5753a
Avoid critical edge on do/while, and do not make handleLoopInfo return conditionnaly false: block based and dominator based traversal in codegen don't compose. Therefore have the block based visit handle the phi updates.
...
Review URL: https://codereview.chromium.org//11299011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15017 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 17:10:16 +00:00
ngeoffray@google.com
503c71cdd5
Use the constant system to do a subtype type in the compile time constant handler. This is needed because of how we treat int and double specially.
...
Review URL: https://codereview.chromium.org//11419037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15014 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 16:36:14 +00:00
ager@google.com
3fb41705e5
Rename File.readAsText to File.readAsString. There is no Text type in Dart
...
and the methods return Strings.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11412033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15011 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:10:15 +00:00
ager@google.com
927aa5670c
Include command in ProcessException.
...
R=sgjesse@google.com
BUG=dartbug.com/4060
Review URL: https://codereview.chromium.org//11417028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15010 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:03:29 +00:00
ngeoffray@google.com
e6b804fb6c
Add a new interceptor class JsArray, and support intercepting some list methods with the new interceptor scheme.
...
Review URL: https://codereview.chromium.org//11275316
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15009 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 12:32:57 +00:00
ngeoffray@google.com
dd9ff17708
Fix this longstanding bug that luckily did not bite us yet: Use Class.prototype.foo$bailout.call(this, ...) to call a bailout method instead of this.foo$bailout to avoid executing the bailout method of a subclass.
...
Review URL: https://codereview.chromium.org//11416007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15008 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 11:56:18 +00:00
ahe@google.com
f5c804380f
Reject deprecated language features.
...
Or rather, provide the following options which do:
--reject-deprecated-language-features
Reject deprecated language features. Without this option, the
compiler will accept language features that are no longer valid
according to The Dart Programming Language Specification, version
0.12, M1.
--report-sdk-use-of-deprecated-language-features
Report use of deprecated features in Dart platform libraries.
Without this option, the compiler will silently accept use of
deprecated language features from these libraries. The option
--reject-deprecated-language-features controls if these usages are
reported as errors or warnings.
Review URL: https://codereview.chromium.org//11416004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15007 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 11:41:05 +00:00
erikcorry@google.com
fe0c55a728
Rename classes, methods and fields when minifying
...
This is a retry of a change that was reverted due to test failures. The
difference to last time you saw this is:
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 9de758e..19fb966 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -689,9 +689,9 @@ class JavaScriptBackend extends Backend {
}
static Namer determineNamer(Compiler compiler) {
- // TODO(erikcorry): Use the MinifyNamer depending on
- // compiler.enableMinification.
- return new Namer(compiler);
+ return compiler.enableMinification ?
+ new MinifyNamer(compiler) :
+ new Namer(compiler);
}
Element get cyclicThrowHelper {
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 9056858..9485bc1 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -795,7 +795,7 @@ function(prototype, staticName, fieldName, getterName, lazyValue) {
additionalArgument = ", '${namer.operatorIs(type.element)}'";
}
String setterName =
- namer.setterName(member.getLibrary(), new SourceString(accessorName));
+ namer.publicSetterName(new SourceString(accessorName));
buffer.add("$setterName: function(v) { "
"this.$fieldName = $helperName(v$additionalArgument); }");
}
@@ -1348,11 +1348,14 @@ $classesCollector.$mangledName = {'':
}
String internalName = namer.instanceMethodInvocationName(
selector.library, new SourceString(methodName), selector);
+ Element createInvocationMirror =
+ compiler.findHelper(const SourceString('createInvocationMirror'));
CodeBuffer buffer = new CodeBuffer();
buffer.add('function($args) {\n');
buffer.add(' return this.$noSuchMethodName('
- '\$.createInvocationMirror("$methodName", "$internalName",'
- ' $type, [$args], [$argNames]));\n');
+ '${namer.isolateAccess(createInvocationMirror)}('
+ '"$methodName", "$internalName",'
+ '$type, [$args], [$argNames]));\n');
buffer.add(' }');
return buffer;
}
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
index 4ca0554..cd0529f 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
@@ -16,7 +16,14 @@ class MinifyNamer extends Namer {
const ALPHANUMERIC_CHARACTERS = 62; // a-zA-Z0-9.
String getFreshName(String proposedName, Set<String> usedNames) {
- var freshName = _getUnusedName(proposedName, usedNames);
+ var freshName;
+ if (proposedName.startsWith(r'call$')) {
+ // We don't mangle the closure invoking function name because it is
+ // generated in applyFunction.
+ freshName = proposedName;
+ } else {
+ freshName = _getUnusedName(proposedName, usedNames);
+ }
usedNames.add(freshName);
return freshName;
}
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index c8522a0..9f5b65d 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -211,6 +211,13 @@ class Namer {
return 'get\$$fieldName';
}
+ String publicSetterName(SourceString name) {
+ // We dynamically create setter from the field-name. The setter name must
+ // therefore be derived from the instance field-name.
+ String fieldName = name.slowToString();
+ return 'set\$$fieldName';
+ }
+
String getMappedGlobalName(String proposedName) {
var newName = globalNameMap[proposedName];
if (newName == null) {
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
index 1c9d772..1d50aa4 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
@@ -188,9 +188,9 @@ class _Manager {
}
void _nativeDetectEnvironment() {
- JS("void", r"#.isWorker = $isWorker", this);
- JS("void", r"#.supportsWorkers = $supportsWorkers", this);
- JS("void", r"#.fromCommandLine = typeof(window) == 'undefined'", this);
+ JS("void", r"# = $isWorker", isWorker);
+ JS("void", r"# = $supportsWorkers", supportsWorkers);
+ JS("void", r"# = typeof(window) == 'undefined'", fromCommandLine);
}
void _nativeInitWorkerMessageHandler() {
R=floitsch@google.com
BUG=
Review URL: https://codereview.chromium.org//11364213
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15005 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 10:41:07 +00:00
sgjesse@google.com
8d0d1e87f8
Added file missing file from previous commit
...
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11316044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15003 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:45:20 +00:00
sgjesse@google.com
cf01064d80
Refactor the HTTP parser to collect headers
...
The headers are now collected directly in the HTTP parser instead of
it emitting events for each header line parsed. One event (request or
response) is now emitted when the full header is parsed.
Had to move the HTTP header object implementation for this change.
Also included a changing the request/response state constants to
static constants instead of final fields.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11415027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15002 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:42:36 +00:00
karlklose@google.com
8d3a51e422
Use abstract classes instead of interfaces in dart2js.
...
Review URL: https://codereview.chromium.org//11368080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15001 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 09:06:39 +00:00
karlklose@google.com
cdbf6e2a0a
Do not canonicalize Type instances.
...
Review URL: https://codereview.chromium.org//11417005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15000 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 08:33:35 +00:00
blois@google.com
3372f679b8
Unmerging HTMLDocument from Document, moving appropriate methods from Document to HTMLDocument, fixing issues around Document not being correctly wrapped for some XMLDocuments.
...
BUG=6453,3420,2977,5526
Review URL: https://codereview.chromium.org//11365203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14996 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 01:17:27 +00:00
blois@google.com
a018b07729
Revert "Dart generation changes for splitting apart resolvers."
...
This reverts commit 11316020.
This broke dartium because of some deps issues with the generated file.
TBR=antonm
BUG=
Review URL: https://codereview.chromium.org//11413028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14994 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:58:55 +00:00
blois@google.com
6f7058fde0
Dart generation changes for splitting apart resolvers.
...
BUG=6722
Review URL: https://codereview.chromium.org//11316020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14991 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:25:03 +00:00
amouravski@google.com
61af45da19
Removed DivElement align property as it is obsolete.
...
Review URL: https://codereview.chromium.org//11416023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14986 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 23:10:19 +00:00
sra@google.com
fb18d73b92
Add NativeEnqueuer to work with the Enqueuer.
...
Review URL: https://codereview.chromium.org//11304021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14977 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 21:00:11 +00:00
vsm@google.com
1358f7ab02
Added raytracer to gl samples.
...
Review URL: https://codereview.chromium.org//11362256
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14974 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 20:22:27 +00:00
blois@google.com
98b389c642
Adding missing 'part of html' statements.
...
BUG=6572
Review URL: https://codereview.chromium.org//11361272
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14969 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 17:36:32 +00:00
ager@google.com
f90b55ac7b
Do not use StringBuffer to create strings from individual char
...
codes in the HTTP parser.
This was simple to do but we really should fix the performance of the
string buffer for this case.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11418010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14967 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 15:24:44 +00:00
sgjesse@google.com
35d8203588
Collect the HTTP header in a byte buffer and send it all at once.
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11413010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14965 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 14:40:23 +00:00
ager@google.com
b8ebc6f96c
Avoid repeated lower-casing of the same string when adding HTTP
...
headers.
R=sgjesse@google.com ,ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//11299005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14956 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 12:19:02 +00:00
lrn@google.com
cadc7c565e
Reapply "Exception no longer an interface."
...
Review URL: https://codereview.chromium.org//11415006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14954 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 11:49:35 +00:00
ager@google.com
7d834933c3
Don't copy Int8Arrays when passing them in as lists of bytes and don't
...
call from C to Dart to get the values either.
Just copying the values over as is will behave the same as it does
now and will be a lot faster.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11418004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14951 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 11:03:02 +00:00
ahe@google.com
a0d271a22c
Clean up operator names.
...
Review URL: https://chromiumcodereview.appspot.com//10905211
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14942 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 07:41:51 +00:00
ahe@google.com
6e6a322f4f
Track the origin element of inlined arguments to super constructor.
...
Review URL: https://codereview.chromium.org//11364212
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14941 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 07:02:25 +00:00
ahe@google.com
e004d21e19
Fix a couple of bugs in handling of factory redirections.
...
Review URL: https://codereview.chromium.org//11312245
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14940 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 06:34:50 +00:00
blois@google.com
9249b571ab
Removing the Window.clientInformation property as it's an IE legacy version of Window.navigator.
...
BUG=5865
Review URL: https://codereview.chromium.org//11358253
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14931 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 00:17:19 +00:00
blois@google.com
45244eec70
Removing all remaining abstract method modifiers from dart:html.
...
BUG=6188
Review URL: https://codereview.chromium.org//11369248
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14930 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 23:57:09 +00:00
blois@google.com
31d0dce12e
Fixing SVGElement.classes.
...
BUG=5008
Review URL: https://codereview.chromium.org//11358249
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14929 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 23:38:38 +00:00
blois@google.com
e3fc690bbd
Un-hiding Node.nodeType.
...
BUG=4754
Review URL: https://codereview.chromium.org//11365270
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14923 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 22:31:33 +00:00
blois@google.com
7df8d41e84
Removing window.prompt.
...
BUG=1366
Review URL: https://codereview.chromium.org//11362257
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14922 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 22:08:02 +00:00
efortuna@google.com
6dc3ba672a
Rename addHTML to addHtml.
...
Review URL: https://codereview.chromium.org//11409003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14921 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 21:55:27 +00:00
blois@google.com
cb048257a6
Removing Event.srcElement.
...
Event.srcElement is a non-standard legacy API, not supported on Firefox.
Bug 5206 requests that the return type be changed to Element, but IE types it as an Object and Opera as Node. I think we should just remove it.
BUG=5206
Review URL: https://codereview.chromium.org//11359169
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14909 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 17:59:40 +00:00
blois@google.com
961adb86f2
Fixing location APIs in checked mode. On Firefox, these setters are returning the String value which was set and causing errors.
...
BUG=6664
Review URL: https://codereview.chromium.org//11363199
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14904 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 17:30:02 +00:00
ngeoffray@google.com
39e4908846
Move JsString into its own file.
...
Review URL: https://codereview.chromium.org//11275313
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14899 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 16:21:28 +00:00
floitsch@google.com
3e2f323981
Dynamic -> dynamic.
...
Review URL: https://codereview.chromium.org//11312237
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14898 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 15:33:25 +00:00
whesse@google.com
05d8c37c1d
Add tls_socket.dart to sdk/lib/io/io.dart.
...
BUG=
Review URL: https://codereview.chromium.org//11275314
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14895 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 14:00:48 +00:00
whesse@google.com
9dfdb4850c
Add a TlsSocket class to dart:io, that implements secure client sockets using TLS (SSL).
...
This uses the NSS (Network Security Services) libraries from Mozilla, which is a cross-platform library for SSL and TLS sockets. We use the patched version from the Chromium repository, which is checked into third_party by the DEPS file.
Review URL: https://codereview.chromium.org//10916081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14893 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:38:32 +00:00
ahe@google.com
d5aab7542d
Reword an error message, and test that the error is produced.
...
Review URL: https://codereview.chromium.org//11377155
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14889 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:16:03 +00:00
ahe@google.com
36e966024d
Document --analyze-all option.
...
Review URL: https://codereview.chromium.org//11363240
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14886 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:48:27 +00:00
lrn@google.com
929970a95c
Change <T> to <E> in Sequence<T> and subclasses.
...
One T was an error, and should already be E.
BUG=6690
Review URL: https://codereview.chromium.org//11275312
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14884 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:25:26 +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
ngeoffray@google.com
c51c9d54c5
Move some string methods in the interceptor, and support for optional parameters in intercepted methods.
...
Review URL: https://codereview.chromium.org//11366224
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14881 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 12:03:59 +00:00
antonm@google.com
fff76e072a
Fix incorrect names.
...
R=podivilov@chromium.org
BUG=6644
Review URL: https://codereview.chromium.org//11275311
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14879 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 10:31:01 +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
ngeoffray@google.com
476bd57a69
Add a getter interceptor to the new interceptor scheme. Also cleanup the "this" that turns into a receiver hack, so that a method in an intercepted class can call another method of itself.
...
Review URL: https://codereview.chromium.org//11358217
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14876 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 09:16:34 +00:00
ajohnsen@google.com
b7b3bb5919
Make ReceivePort an abstract class.
...
BUG=
Review URL: https://codereview.chromium.org//11275280
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14849 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 14:05:43 +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
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
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
1daf6eb5ee
Correctly pass constructor arguments to _HMAC.
...
BUG=
Review URL: https://codereview.chromium.org//11410064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14836 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:05:55 +00:00
ajohnsen@google.com
8e10088843
Make interfaces into abstract classes in 'dart:crypto'.
...
BUG=
Review URL: https://codereview.chromium.org//11293245
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14835 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 09:48:14 +00:00
sgjesse@google.com
dc7d5fa7cf
Byte array documentation fix
...
R=cshapiro@google.com
BUG=
Review URL: https://codereview.chromium.org//11366034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14834 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 08:25:41 +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
0dbc2e6eaa
Two more files with const RegExp.
...
BUG=
Review URL: https://codereview.chromium.org//11377126
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14832 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:11:19 +00:00
ajohnsen@google.com
1e471c2c5e
Fix const RegExp -> final RegExp in a dartdoc file.
...
BUG=
Review URL: https://codereview.chromium.org//11362219
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14831 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:05:07 +00:00
ajohnsen@google.com
2b4fb1a50f
Change const Regexp -> new RegExp in a few HTML files.
...
BUG=
Review URL: https://codereview.chromium.org//11410063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14830 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:58:53 +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
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
efortuna@google.com
b52d834a31
Add generated files.
...
Review URL: https://codereview.chromium.org//11365209
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14806 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 20:26:48 +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
efortuna@google.com
23c2d17930
Make KeyCode constants const.
...
Review URL: https://codereview.chromium.org//11362207
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14804 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 19:39:05 +00:00
blois@google.com
50cbd0fcaa
Fixing an issue where optional parameters were having their types dropped.
...
BUG=
Review URL: https://codereview.chromium.org//11359142
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14799 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 18:32:26 +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
ahe@google.com
e44285367c
Remove dependency on dart:json.
...
Review URL: https://codereview.chromium.org//11364025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14790 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:59:24 +00:00
antonm@google.com
df55ddbbb6
Introduce missing arguments in HTMLSelectElement.remove.
...
R=podivilov@chromium.org
Review URL: https://codereview.chromium.org//11275257
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14788 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 13:31:50 +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
kustermann@google.com
b7781fb10d
dart2js: Added support for writing dependency information into a file.
...
Having a way to detect if a dart application was modified is
very useful. In particular the test infrastructure can use it
to reduce redundant dart2js compilations. In order to do that,
the dependencies of the dart application are needed.
The added code will write the dependency information to a '*.js.deps' file.
Review URL: https://codereview.chromium.org//11275227
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14780 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 08:37:51 +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
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
ngeoffray@google.com
7ae2e0231b
Use the work element instead of the current element to satisfy unit tests.
...
Review URL: https://codereview.chromium.org//11364176
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14734 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:37:26 +00:00
karlklose@google.com
785c53ecf9
Fix warnings in mirror implementation's diagnostic listener.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//11293197
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14733 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:28:32 +00:00
ngeoffray@google.com
e87c6c8922
Cleanup how we query for interceptors.
...
Review URL: https://codereview.chromium.org//11364175
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14732 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 11:22:03 +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
ngeoffray@google.com
04678c224a
Fix for issue 6628: no need to use an interceptor if the send was resolved.
...
Review URL: https://codereview.chromium.org//11368162
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14725 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 09:07:48 +00:00
sra@google.com
de8550459a
Changes to allow more precise inference of live native classes.
...
Review URL: https://codereview.chromium.org//11369128
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14722 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 03:26:30 +00:00
blois@google.com
f89aca9976
Removing Element.rect.
...
BUG=
Review URL: https://codereview.chromium.org//11367040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14720 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 01:29:09 +00:00
vsm@google.com
4580ca3f51
Type unconverted window and event targets correctly
...
Take #2 , after talking to sra.
Review URL: https://codereview.chromium.org//11332006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14708 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 21:45:23 +00:00
blois@google.com
d5f9483f40
Cleaning up dart:html generation after interface/implementation merge.
...
Basically without the interface generation, I moved most of the code-gen into the common base class of dartium and dart2js generation.
I also removed the interface generation files which are no longer being used.
There shouldn't be any changes to the generated files, but the dartium files just got some merged members re-ordered as a by-product of a minor refactoring.
BUG=
Review URL: https://codereview.chromium.org//11363130
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14691 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:33:30 +00:00
blois@google.com
0a014a8592
Adding 'part of html' to all files which are used by dart:html.
...
This came up during the code review of merging interfaces and implementations, that some of the files were missing the 'part of html' statements.
BUG=
Review URL: https://codereview.chromium.org//11407002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14690 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:07:24 +00:00
amouravski@google.com
0f2eb4e3c5
Updated relative paths since they broke after the recent library move.
...
Review URL: https://codereview.chromium.org//11360138
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14689 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 16:06:33 +00:00
polux@google.com
329bd77c3f
Handle compound operators.
...
Review URL: https://codereview.chromium.org//11272032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14682 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 14:18:02 +00:00
sgjesse@google.com
6ea71bec75
Remove a state variable from the HTTP library
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11368139
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14681 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 13:58:48 +00:00
sgjesse@google.com
cce280a37d
Use Socket.read instead of Socket.readList in HTTP
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11359101
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14677 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 09:56:22 +00:00
gram@google.com
80ae89cff6
Update library syntax.
...
Review URL: https://codereview.chromium.org//11377035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14671 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 01:28:34 +00:00
sra@google.com
045cf96f6e
Some changes to improve precision of types in dart:html
...
Review URL: https://codereview.chromium.org//11358135
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14656 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 22:12:38 +00:00
blois@google.com
149c90bc1d
Making Dartium merged classes private.
...
Since SVG derives from Element and not Element_Merged, there's no reason to have Element_Merged public. If we happen to need it public in the future then we should work to eliminate it completely.
BUG=
Review URL: https://codereview.chromium.org//11362137
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14649 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 20:16:22 +00:00
johnniwinther@google.com
d6185f99d5
Revert "Report errors on duplicate export."
...
This reverts commit r14641.
BUG=
Review URL: https://codereview.chromium.org//11275196
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14644 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:02:43 +00:00
johnniwinther@google.com
092397ccc3
Report errors on duplicate export.
...
Review URL: https://codereview.chromium.org//11293148
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14641 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:50:12 +00:00
rnystrom@google.com
d55ee43c0e
Don't crash when decoding astral plane UTF-8.
...
Review URL: https://codereview.chromium.org//11364115
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14639 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:27:33 +00:00
johnniwinther@google.com
383419e4b0
Merge of ErroneousElement and ErroneousFunctionElement
...
Review URL: https://codereview.chromium.org//11275188
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14634 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 17:01:25 +00:00
ahe@google.com
03ebf05e22
Implement redirecting constructors.
...
Review URL: https://codereview.chromium.org//11365108
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14630 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 15:32:39 +00:00
ngeoffray@google.com
c2162f1300
Fix the build: we must still not mangle parameter names of native methods.
...
Review URL: https://codereview.chromium.org//11365132
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14629 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 15:29:43 +00:00
ngeoffray@google.com
9e1127632b
Do not always error-out when evaluating a map that is not a compile time constant.
...
Review URL: https://codereview.chromium.org//11358141
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14627 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:51:02 +00:00
ngeoffray@google.com
ea12ccdb74
Clean up the codegen by not re-computing parameter names.
...
Review URL: https://codereview.chromium.org//11275189
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14626 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:50:44 +00:00
ngeoffray@google.com
108c770ea9
This assert was obsolete after our type propagation rewrite, and it is now hit by some tests in host-check + checked mode.
...
Review URL: https://codereview.chromium.org//11358140
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14625 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 14:47:24 +00:00
sgjesse@google.com
94c3dabf84
Refactor HTTP parser to hold current buffer
...
The HTTP parser now stores the current buffer internally. This change
is to prepare for stopping the parser when a request have been
received and resuming parsing when this response have been fully
processed.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11359085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14623 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 13:58:24 +00:00
johnniwinther@google.com
4018f851ce
Introduce AmbiguousElement
...
Review URL: https://codereview.chromium.org//11361124
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14622 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 13:48:45 +00:00
ager@google.com
2796ab99c2
Do *not* report connection reset by peer as an error on an http server
...
when no request is in progress.
Instead treat it as a normal close of the connection. This error was
introduced yesterday when getting rid of the connection memory
leak. Handling the connection errors as a normal close still makes
sure to clean up so we do not leak memory.
R=sgjesse@google.com
BUG=dartbug.com/6585
Review URL: https://codereview.chromium.org//11364122
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14617 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 11:01:49 +00:00
ngeoffray@google.com
62582cb880
Fix for do/while: if there are phi copies after the condition, emit the non-pretty while loop.
...
Review URL: https://codereview.chromium.org//11363119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14616 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 10:16:42 +00:00
blois@google.com
4fc5d3a686
Merging dart:html interfaces and implementations.
...
This CL leaves a lot of the infrastructure around for the interfaces (and also renames them to _IInterfaceName), but the interfaces are not in the generated files. I'll continue to clean this up in future CLs.
BUG=
Review URL: https://codereview.chromium.org//11365019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14612 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 01:58:00 +00:00
jmesserly@google.com
4b94059996
fix stringToCodePoints on VM
...
http://dartbug.com/6476
Review URL: https://codereview.chromium.org//11293080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14585 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 18:41:17 +00:00
ahe@google.com
9ee9f1d9a6
Fix bad type annotation to unbreak host-checked mode.
...
Review URL: https://codereview.chromium.org//11360104
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14580 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 16:02:53 +00:00
ager@google.com
78d2d09f94
Fix memory growth in simple http server.
...
The issue was that connections were not always removed from the list
of active connections in the http server.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11358116
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14575 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 15:38:54 +00:00
ager@google.com
b61bebe636
Allow Directory.create to create all missing path components.
...
Unified Directory.create/list/delete to take a named 'recursive'
argument.
Fixed bug in Path implementation on Windows.
R=sgjesse@google.com
BUG=dartbug.com/6024
Review URL: https://codereview.chromium.org//11364097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14572 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 15:00:54 +00:00
johnniwinther@google.com
144ec6b849
Change Dart2JsMethodMirror constructor to factory
...
Review URL: https://codereview.chromium.org//11361123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14570 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 14:25:06 +00:00
ngeoffray@google.com
bc416ee9e1
Remove hackAroundPossiblyAbortingBody.
...
Review URL: https://codereview.chromium.org//11363103
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14568 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:33:42 +00:00
floitsch@google.com
36e78a2177
Make hasNext a getter.
...
Review URL: https://codereview.chromium.org//11361064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14567 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:29:00 +00:00
karlklose@google.com
e7a57dddfe
Reapply "Issue 11361118: Use new library/import syntax in dart2js."
...
TBR=erikcorry@google.com
Review URL: https://codereview.chromium.org//11368099
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14566 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 13:16:06 +00:00
karlklose@google.com
01049430d5
Revert "Use new library/import syntax in dart2js."
...
This reverts commit r14564.
TBR=johnniwinther@google.com
Review URL: https://codereview.chromium.org//11362113
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14565 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:34:22 +00:00
karlklose@google.com
aa5f626785
Use new library/import syntax in dart2js.
...
Review URL: https://codereview.chromium.org//11361118
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14564 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:24:48 +00:00
ngeoffray@google.com
71834a916c
Do not use hack around aborting loop body for a do/while.
...
Review URL: https://codereview.chromium.org//11359068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14563 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 12:21:00 +00:00
johnniwinther@google.com
07e6f0d876
Handle (missing) trailing slash in dartdoc
...
Review URL: https://codereview.chromium.org//11369092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14561 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 11:54:40 +00:00
sgjesse@google.com
d83354b83d
Keep track of the request and response state in the HTTP client connection
...
In a HTTP client connection it is possible for the response to end
before the request has been fully sent. This situation was not handled
correctly. Now the HTTP client connection keeps track of the state of
both request and response and doen not end the client connection
before both are done.
R=ager@google.com
BUG=dart:6521
Review URL: https://codereview.chromium.org//11361119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14559 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 11:28:19 +00:00
ahe@google.com
c1cf8d357d
Resolve redirecting factories.
...
Review URL: https://codereview.chromium.org//11230007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14558 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:55:23 +00:00
johnniwinther@google.com
1e96528cc1
Fix move errors.
...
Review URL: https://codereview.chromium.org//11359059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14557 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:19:56 +00:00
johnniwinther@google.com
b6262464d3
Move mirrors from dartdoc to dart2js
...
Review URL: https://codereview.chromium.org//11363083
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14556 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 10:17:40 +00:00
ngeoffray@google.com
456e3a18a8
Remove hack around aborting loop body in the case of for loops and while loops.
...
Review URL: https://codereview.chromium.org//11361100
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14555 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 09:28:31 +00:00
ngeoffray@google.com
f70e9142d9
Fix control flow graph in the presence of aborting instructions in a try/catch/finally.
...
Review URL: https://codereview.chromium.org//11366085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14554 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 08:51:27 +00:00
efortuna@google.com
763dcbb20a
Forgot to add file to previous commit.
...
TBR
Review URL: https://codereview.chromium.org//11312097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14551 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 01:56:04 +00:00
efortuna@google.com
dc03ca7d97
Rename DOMURL to ObjectUrl.
...
Review URL: https://codereview.chromium.org//11312091
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14550 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 01:25:02 +00:00
johnniwinther@google.com
b3f4c99af6
Revert "Handle (missing) trailing slash in dartdoc"
...
This reverts commit r14536.
Review URL: https://codereview.chromium.org//11369076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14537 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:37:53 +00:00
johnniwinther@google.com
b861fa6566
Handle (missing) trailing slash in dartdoc
...
BUG=2311
Review URL: https://codereview.chromium.org//11369074
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14536 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:29:36 +00:00
ngeoffray@google.com
04d43e8dd8
Do not type check return values that come from JS. See issue 6534.
...
Review URL: https://codereview.chromium.org//11363082
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14533 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 15:34:11 +00:00
ngeoffray@google.com
ff6fdba75e
Add a check for issue 6530, so that we don't report errors in checked mode on a void return type.
...
Review URL: https://codereview.chromium.org//11361098
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14531 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:32:15 +00:00
karlklose@google.com
fa7af65dec
Remove abstract modifier from methods in dart2js.
...
Review URL: https://codereview.chromium.org//11368077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14529 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:22:05 +00:00
ajohnsen@google.com
5a42ca5be6
Fix identical test in hash-set.
...
BUG=
Review URL: https://codereview.chromium.org//11363081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14528 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 14:19:25 +00:00
karlklose@google.com
ffcc96540e
Fix a wrong type annotation.
...
Review URL: https://codereview.chromium.org//11367092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14526 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:49:16 +00:00
ajohnsen@google.com
97b775fc74
Move HashMapImplementation, LinkedHashMapImplementation and HashSetImplementation to core as private classes.
...
BUG=
Review URL: https://codereview.chromium.org//11361094
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14525 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:47:11 +00:00
ngeoffray@google.com
d123a51aeb
Fix return type in isolate library.
...
Review URL: https://codereview.chromium.org//11364071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14523 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 12:33:09 +00:00
ngeoffray@google.com
83887273c3
Address Peter's comments in https://codereview.chromium.org/11361059 , and fix a host-checked mode bug.
...
Review URL: https://codereview.chromium.org//11361093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14522 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 11:40:26 +00:00
ngeoffray@google.com
2c78b21acb
Fix checked mode failures.
...
Review URL: https://codereview.chromium.org//11365086
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14520 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:57:38 +00:00
ngeoffray@google.com
6eb5463f93
Support checked mode for return type.
...
Review URL: https://codereview.chromium.org//11361060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14518 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:35:19 +00:00
floitsch@google.com
7d39042086
Fix bad mangling of environment parameters.
...
Review URL: https://codereview.chromium.org//11186048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14517 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:29:50 +00:00
johnniwinther@google.com
c731ae99fa
Add isParameter, change isField to isVariable on MemberMirror
...
Review URL: https://codereview.chromium.org//11363076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14516 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 10:25:21 +00:00
karlklose@google.com
323d8f6a9c
Support class and typedef literals as expressions.
...
For a class C, the expression 'C' returns the canonicalized instance of Type for this class. If C has type variables, they are instantiated with 'dynamic'.
Review URL: https://codereview.chromium.org//10942028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14515 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:29:51 +00:00
ajohnsen@google.com
796e4b3400
Changed DARTSESSID's httpOnly property to true by default.
...
BUG=6516
Review URL: https://codereview.chromium.org//11361090
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14514 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:23:55 +00:00
ager@google.com
536d97a520
Add example of how to get a DirectoryLister to documentation.
...
R=sgjesse@google.com
BUG=dartbug.com/4729
Review URL: https://codereview.chromium.org//11362084
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14513 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 09:22:04 +00:00
erikcorry@google.com
076e2564b8
Enable minifier for parameters and locals (disabled for native methods).
...
R=floitsch@google.com
BUG=
Review URL: https://codereview.chromium.org//11275127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14508 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-03 08:09:48 +00:00
efortuna@google.com
358e4c092b
Reapply Keycode enumeration from 14504.
...
Review URL: https://codereview.chromium.org//11312077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14506 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 23:06:43 +00:00
efortuna@google.com
ddf72c66cf
Revert r14504.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14505 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 22:54:25 +00:00
efortuna@google.com
d15f684911
Add KeyCode enumeration in Dart and fix path of html lib script after sdk move.
...
Review URL: https://codereview.chromium.org//11362065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14504 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 22:49:07 +00:00
dgrove@google.com
961e24641f
Update paths to reflect new lib structure.
...
Review URL: https://codereview.chromium.org//11293062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14474 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 15:17:53 +00:00
dgrove@google.com
037b2f8c60
svn add sdk
...
svn mv lib/sdk
svn mv lib/sdk/compiler sdk/lib/_internal
svn mv pkg/dartdoc sdk/lib/_internal
(cannot gcl upload due to .png's in dartdoc)
TBR=iposva
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14473 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 14:53:15 +00:00