Use generated classes to create requests in analysis server unit tests.

R=jwren@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39381 260f80e4-7a28-3924-810f-c04153c831b5
Allow null as a synonym for {} when decoding JSON objects.

The spec allows this (for interoprability with Lisp-based clients),
and we had been doing it correctly for lists and maps, but not for
arbitrary objects.

R=jwren@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39382 260f80e4-7a28-3924-810f-c04153c831b5
Avoid UTF-8 decoding in num.toString.

4-7% speedup on SplayHarder.

Introduce _Num class to make Dart and VM hierarchies match and enable sharing code between integers and doubles.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39383 260f80e4-7a28-3924-810f-c04153c831b5
Update to latest jitdump file format

BUG=
R=vegorov@google.com

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

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

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39385 260f80e4-7a28-3924-810f-c04153c831b5
Add enums to the main grammar entry point.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39386 260f80e4-7a28-3924-810f-c04153c831b5
Runtime support for evaluation of static field initializer expressions

Eliminates the generation of field initializer functions by the parser.
Adds a runtime call that creates a one-shot function to evaluate the
initializer of a static field. The runtime function gets called from
the implicit static getter function for the field.

R=srdjan@google.com, zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39387 260f80e4-7a28-3924-810f-c04153c831b5
Make search.findElementReferences.result.element field optional.

This resolves an inconsistency between the spec and the analysis
server behavior: the server doesn't populete the "element" field if no
element could be found.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39388 260f80e4-7a28-3924-810f-c04153c831b5
Exports the declared type of function parameters.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39389 260f80e4-7a28-3924-810f-c04153c831b5
Detect compile errors when setting breakpoint

When the VM is started with the —-debug option, it compiles the main
function eagerly to set a one-shot breakpoint. So far we silently
dropped errors during the compilation, which is wrong. This change
propagates the error to the caller.

Fixes issue https://code.google.com/p/dart/issues/detail?id=20558

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39390 260f80e4-7a28-3924-810f-c04153c831b5
Build bits to add an analysis_server snapshot to the SDK.

NOTE: as per a conversation with Kasper, this does NOT add any executables to the "bin" dir.  In this state the expectation is that the snapshot will be invoked directly via bin/dart.

R=kustermann@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39391 260f80e4-7a28-3924-810f-c04153c831b5
Add comment about testing a class

R=pquitslund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39392 260f80e4-7a28-3924-810f-c04153c831b5
Mention startup time in help for pub run.

R=nweiz@google.com, sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39393 260f80e4-7a28-3924-810f-c04153c831b5
Made couple tweaks and added several options to allow Try Dart to run in IE11.

BUG=dartbug.com/20017
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39394 260f80e4-7a28-3924-810f-c04153c831b5
Start implementing union types.

I needed to add my new files to

  editor/plugin_engine_sources.txt

before I could run the build bot tests, but that fail appears to be
generated. What do I need to do to get my new files incorporated?

This is work in progress, but the diff is already getting pretty
big. I could break it up further if that would be helpful.  What's in
this CL:

- definition of simple union type interface

- class implementing that interface and extending [TypeImpl], and
  adding a factory method for creating unions (can't be in the
  interface because it's static :P). The implementation is not
  complete.

- union-type tests

- some integration with other type code:

  Our subtype operators are defined by dispatching on the LHS in the
  [is*] methods, so I need to add code for cases where a [UnionType]
  is on the RHS.  I've defensively added RHS code for <<, because
  there is no known use case and so I'd like things to fail early if
  the system ends up in an unforeseen state.  I still need to
  incorporate [UnionType] into the <: definitions, but I've added a
  package visible [internalIsSuperTypeOf] to make this easy; I just
  need to plug it in everywhere.

Still need to add [toString()], and much more significantly, integrate
union types into the hints system.

R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39395 260f80e4-7a28-3924-810f-c04153c831b5
- Account for number of pending tasks in old-space collections.
- Protect access to the free lists.
- MutexLocker/MonitorLocker do not need to be StackResources.

R=koda@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39396 260f80e4-7a28-3924-810f-c04153c831b5
RemoveAnalysisServer improvements
- don't restart analysis server again if already restarted > 3 times in 5 min
- don't restart analysis server at all when debugging analysis server

BUG=
R=pquitslund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39397 260f80e4-7a28-3924-810f-c04153c831b5
Only track progress if in verbose mode.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39398 260f80e4-7a28-3924-810f-c04153c831b5
- Stop-the-world sweep uses pre-locked free list access.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39399 260f80e4-7a28-3924-810f-c04153c831b5
Update co19 status on dartium.

BUG=
R=kustermann@google.com

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

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