Files
sdk/lib/dom/scripts
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
..
2012-08-01 01:15:12 +00:00
2012-07-26 14:59:48 +00:00
2012-07-24 22:45:59 +00:00
2012-07-12 21:45:22 +00:00
2012-07-12 21:45:22 +00:00