Communicate between deferred files and main files via hash.

Instead of generating a random identifer for the app, we compute the
sha1 of each deferred file, and let it store its initializer function in
the global __dart_deferred_initializers with the hash as a key.

Two apps would both use the same global, not collide because they
have different hashes for the deferred files.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//542053003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40010 260f80e4-7a28-3924-810f-c04153c831b5
Ensure that runtimetype representations are live when using MockCompiler.

BUG=
R=karlklose@google.com, johnniwinther@google.com

Review URL: https://codereview.chromium.org//552183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40011 260f80e4-7a28-3924-810f-c04153c831b5
Remove unused method.

Review URL: https://codereview.chromium.org//552213002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40012 260f80e4-7a28-3924-810f-c04153c831b5
Mark type_mask2_test as failing in unchecked mode.

BUG=
TBR-karlklose@google.com

Review URL: https://codereview.chromium.org//554743008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40013 260f80e4-7a28-3924-810f-c04153c831b5
Remove debug-print statements.

R=karlklose@google.com

Review URL: https://codereview.chromium.org//554193002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40014 260f80e4-7a28-3924-810f-c04153c831b5
Run full resolution when testing patches and selectors.

BUG=
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//552193002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40015 260f80e4-7a28-3924-810f-c04153c831b5
Only check for assertion in checked mode in type_mask2_test.

BUG= http://dartbug.com/20861
R=karlklose@google.com

Review URL: https://codereview.chromium.org//555773002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40016 260f80e4-7a28-3924-810f-c04153c831b5
Don't throw if diagnostic file isn't cached.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//543903003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40017 260f80e4-7a28-3924-810f-c04153c831b5
Normalize TypeMask to empty if it contains no live classes.

BUG=
R=karlklose@google.com, johnniwinther@google.com

Committed: https://code.google.com/p/dart/source/detail?r=39957

Reverted: https://code.google.com/p/dart/source/detail?r=39960

Review URL: https://codereview.chromium.org//550863004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40018 260f80e4-7a28-3924-810f-c04153c831b5
Prepare dart2js for use by analyzer2dart.

BUG=
R=sigurdm@google.com

Review URL: https://codereview.chromium.org//554653002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40019 260f80e4-7a28-3924-810f-c04153c831b5
Fix Uri.replace adding an empty authority by mistake.

BUG= http://dartbug.com/20814
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//552973003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40020 260f80e4-7a28-3924-810f-c04153c831b5
Adapt TypeMask tests to new TypeMask interface.

BUG=
TBR=karlklose@google.com

Review URL: https://codereview.chromium.org//552253002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40021 260f80e4-7a28-3924-810f-c04153c831b5
Fix almost all init access.
There is one left in the isolate (which just wants to have a global
field, that it can set), and the ones for deferred loading (since they
are in the process of being refactored).

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//544363003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40023 260f80e4-7a28-3924-810f-c04153c831b5
Fix register hinting for phis.

The way it was implemented did not always work for phis for live ranges extending past the loop, because the hint itself stayed uncoverted until after register allocation inside the loop was completed.

For the loop like this:

f() {
  var x = 1.0,  y = 2.0;
  for (var i = 0; i < 100; i++) x += y;
  return x;
}

That used to generate:

loop:
  cmp ecx,0xc8
  jnl ->exit
  mov xmm3, xmm2
  addsd xmm3, xmm1
  mov xmm2, xmm3
  add ecx,0x2
  jmp ->loop

With this change we generate:

loop:
  cmp ecx,0xc8
  jnl ->exit
  addsd xmm2,xmm1
  add ecx,0x2
  jmp ->loop

R=fschneider@google.com
BUG=

Review URL: https://codereview.chromium.org//556453006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40024 260f80e4-7a28-3924-810f-c04153c831b5
add code completion icons

BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org//554903003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40025 260f80e4-7a28-3924-810f-c04153c831b5
Begin hookup of Blink IDL parser for dart:* libraries.

BUG=
R=vsm@google.com

Committed: https://code.google.com/p/dart/source/detail?r=39948

Review URL: https://codereview.chromium.org//444743002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40026 260f80e4-7a28-3924-810f-c04153c831b5
Filter abstract classes when computing candidate classes for custom elements.

BUG= http://dartbug.com/20845
R=karlklose@google.com

Review URL: https://codereview.chromium.org//555123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40027 260f80e4-7a28-3924-810f-c04153c831b5
Mark [this] as exposed if generative constructor contains function expression.

BUG= http://dartbug.com/20840
R=floitsch@google.com, karlklose@google.com

Review URL: https://codereview.chromium.org//558633002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40028 260f80e4-7a28-3924-810f-c04153c831b5
Use Object.create everywhere and clean some of the uses of hasOwnProperty.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//550253002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40029 260f80e4-7a28-3924-810f-c04153c831b5
First end-to-end capability in analyzer2dart.

BUG=
R=brianwilkerson@google.com, paulberry@google.com, sigurdm@google.com

Review URL: https://codereview.chromium.org//548253003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40030 260f80e4-7a28-3924-810f-c04153c831b5