Commit Graph

189 Commits

Author SHA1 Message Date
efortuna@google.com 742e1ffcbe Rename XMLHttpRequest to HttpRequest.
Review URL: https://chromiumcodereview.appspot.com//10823352

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
antonm@google.com b919b0c4ae Remove semicolon.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11048 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:11:56 +00:00
antonm@google.com 689c8a2fc5 Split to dart conversion and argument expression logic.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11043 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:53:12 +00:00
antonm@google.com f220c80640 Preparing Chrome roll.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10940 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 11:05:47 +00:00
sra@google.com 1d36a8f5a5 Remove old feature for generating canned native bodies.
It is obsolete - it was used only for the deprecated dom library.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10937 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-19 02:25:39 +00:00
antonm@google.com fbca909095 Autogenerate typed array toDart methods.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10830 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:30:55 +00:00
sra@google.com fa28528dca Enable (HTML)DataListElement
Add test and convenience constructor.
Fixes Issue 4474.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10786 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 02:30:15 +00:00
antonm@google.com 8a68bcf033 Proper dispatch in the presence of optional arguments.
Formerly for the methods like foo([Optional] x, [Opional] y), the following
dispatcher was emitted:

foo([x = _null, y = _null]) {
  if (y === _null) {
    return _foo_1(x);  // WRONG!
  }
  if (x === _null) {
    return _foo_2();
  }
  return _foo_3(x, y);
}

Now correct code is emitted:

foo([x = _null, y = _null]) {
  if (y !== _null) {
    return _foo_1(x, y);
  }
  if (x !== _null) {
    return _foo_2(x);
  }
  return _foo_3();
}

TBR=podivilov@chromium.org
BUG=4487

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10661 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 18:14:57 +00:00
antonm@google.com 71a4066af9 Allow static modifier for attributes.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10554 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 08:25:55 +00:00
antonm@google.com 946ae9f792 Support typed arrays constructor templates.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10501 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:55:21 +00:00
antonm@google.com 0bb4674052 Allow spaces in ext attr values.
TBR=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10331 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 11:44:28 +00:00
sra@google.com c4a7f117c2 Make more native DOM array-like objects known to compiler.
This improves Dromaeo traversal benchmarks up from ~100 to ~160. (They still need more work - target is ~400.)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10158 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 10:26:36 +00:00
vsm@google.com 7de22f0c61 Roll IDL to multivm@733
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10104 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 01:15:12 +00:00
antonm@google.com f697b7f0b3 Minor refactoring to streamline the logic.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9959 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 19:20:57 +00:00
antonm@google.com c42f43099e Reapply the fix.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9942 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 15:28:48 +00:00
antonm@google.com bc4831e99f Unify null treatment.
Always use WithNullCheck suffix instead of a special flag.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9940 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:59:48 +00:00
antonm@google.com da56474cea Quick fix to make bbs green.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9938 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:48:26 +00:00
antonm@google.com 537abe2e71 Unify processing of the cases when argument is declared optional in IDLs and is not optional in WebKit.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9937 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:16:02 +00:00
antonm@google.com 243aab2472 Add new event names.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9932 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 10:58:06 +00:00
antonm@google.com c8e6b41aa3 Minor rework of argument emission.
Inline the method and minor cosmetics.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9894 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 17:14:20 +00:00
antonm@google.com 088d5937cb Autogenerate additional arguments for fanky methods.
Methods with CallWith=ScriptArguments|CallStack are declared
w/o last argument in WebKit IDLs.  Formerly this last argument
was manually injected via dart.idl, but it's not robust in the
presence of IDL modifications.

TBR=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9890 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:48:35 +00:00
antonm@google.com dc479ea389 Automatically support fancy Console methods.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9887 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:29:14 +00:00
antonm@google.com b2c06f655d Use nested emitter idiom.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9886 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 14:08:30 +00:00
antonm@google.com 318574c80a Refactor invocation emission.
Now cpp_arguments are built inside a single method and invocation
is emitted in the main mega-method.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9885 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:41:50 +00:00
antonm@google.com a8daaa9d6a Emit parameters directly, w/o auxilary emitter.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9884 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:09:51 +00:00
antonm@google.com 43c4f2d2cd Minor refactoring.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9883 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:56:46 +00:00
antonm@google.com 64cc3e0925 Refactor callback emission.
Move most of the logic into common part.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9882 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:43:07 +00:00
antonm@google.com 000fb5ed2c Communication optionality of priority in CSSStyleDeclaration.setProperty via dart.idl.
R=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9877 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 10:21:49 +00:00
dgrove@google.com 89dd99fdd0 Convert DOM and HTML frog to dart2js.
Review URL: https://chromiumcodereview.appspot.com//10800104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9871 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 22:45:59 +00:00
vsm@google.com 9997255c59 Roll IDL to multivm@713
Added quota and gamepad modules.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9814 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 15:50:59 +00:00
antonm@google.com a924800b14 WebKit recently has been changed to pass context as 1st argument.
Review URL: https://chromiumcodereview.appspot.com//10810055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9803 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 09:25:07 +00:00
sra@google.com 7b24c8ac90 Add MutationObserver constructor
Add custom MutationObserver.observe method

The observe method supports configuration by dictionary and optional arguments:

observer.observe(node, {'subtree': true});
observer.observe(node, subtree: true);

If both are given, they are merged.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9752 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 02:16:09 +00:00
podivilov@google.com e79091fc3b Do not treat callbacks with no handlers as interfaces.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9734 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 10:45:06 +00:00
podivilov@google.com ba33c7f62a Support proper emission of V8Scope handles.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9732 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 10:35:47 +00:00
podivilov@google.com 6b19d0e60a Properly generate MutationCallback in dart:html.
* add support for custom callbacks (MutationCallback.handleEvent is custom)
* add MutationRecordArray to type registry, so MutationCallback.handleEvent
is not removed because of unknown parameter type

R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9713 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 17:30:18 +00:00
sra@google.com d462048a9b Revert "Handle all registered types, not just 'Primitive' ones."
Review URL: https://chromiumcodereview.appspot.com//10779024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9689 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 23:56:02 +00:00
sra@google.com 26df219473 Handle all registered types, not just 'Primitive' ones.
This change preserves the name through to the generated C++ code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9688 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 23:14:57 +00:00
sra@google.com 3225b5b1bd Fix dom generation after renamer refactoring.
Review URL: https://chromiumcodereview.appspot.com//10704238

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9685 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 22:11:07 +00:00
antonm@google.com f1c0c9e09c Simplify head emission a bit.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9666 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 15:46:42 +00:00
antonm@google.com 2a49674b9c Make runtime_check arg not optional.
Review URL: https://chromiumcodereview.appspot.com//10783019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9665 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 15:39:57 +00:00
podivilov@google.com 29f943e1af Extract interfaces and members renaming logic to a new HtmlRenamer class.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9660 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 13:02:27 +00:00
podivilov@google.com 23cf5e33c2 Stop passing HtmlSystemShared around and move html renaming to IDLTypeInfo.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9636 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 16:28:43 +00:00
podivilov@google.com f7cc41b276 Introduce TypeRegistry class.
This is needed to optionally associate additional state like html renames
map with IDLTypeInfo instances.

R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9634 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 16:16:17 +00:00
sra@google.com fc20e9356e Add template comments.
Lines starting with //$ are removed during preprocessing of the template.
This allows comments in the templates that are not copied to the generated text.

Update copyright in template file in anticipation of new uses.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9616 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 21:45:22 +00:00
podivilov@google.com 80d8de3dda Replace 'NativeTraits' typedef with 'isNode', 'isActive', and 'isEventTarget' static boolean fields.
'isEventTarget' field is needed to implement proper GC semantics for non-node event target listeners.
'isNode'+'isActive' is a direct replacement of 'NativeTraits' typedef.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9501 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 10:51:46 +00:00
vsm@google.com 8231039baa Roll IDL to multivm@683
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9479 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 19:42:19 +00:00
podivilov@google.com 25f88de46d _html_library_custom members are only custom in frog.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9444 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 16:18:44 +00:00
antonm@google.com 8bb6f341f9 Support parsing of constructs like T[]?.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9442 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 16:04:10 +00:00
podivilov@google.com fb4ba0921a Cleanup attributes generation in dart:html.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9436 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 11:41:20 +00:00
podivilov@google.com f266bcbc9e Split backend.AddMembers call into series of backend.AddAtribute/backend.AddOperation calls.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9425 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 07:38:07 +00:00