Commit Graph

5391 Commits

Author SHA1 Message Date
aprelev@gmail.com 5d77e6ae7a Fix VS2013 compilation issue with c99 support header.
BUG=dartbug.com/12874
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30764 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-28 16:13:09 +00:00
johnmccutchan@google.com 6f50c75bbf Disable profiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30737 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 22:21:22 +00:00
johnmccutchan@google.com 593b148d37 Switch SetupIsolateForProfiling to use calloc instead of new []
BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30733 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 21:51:02 +00:00
johnmccutchan@google.com 589ea683c3 List scripts in library and display script source
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30732 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 19:54:52 +00:00
johnmccutchan@google.com 4741f083aa Fix race discovered by Valgrind
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30728 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 18:03:20 +00:00
sgjesse@google.com b99d27ec86 Simplify some argument checking for socket calls
Ensure valid range in the C++ code. Leave any argument checking with
"user-friendly" error messaged to the Dart code.

R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30713 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 12:12:08 +00:00
ajohnsen@google.com e60f22cb9e Add support for Websocket protocols.
This also fixes an issue where idle sockets could keep the program
alive.

BUG=https://code.google.com/p/dart/issues/detail?id=14503
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30712 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 12:10:23 +00:00
ajohnsen@google.com 79cf8dc61f Don't report file-system move events on Mac OS, and use no-defer to avoid past events.
Mac OS does not have a proper way to report 'from' and 'to', thus making it impossible to reason the move direction, as other events may shuffle the order, events are received in.

BUG=https://code.google.com/p/dart/issues/detail?id=14806,https://code.google.com/p/dart/issues/detail?id=14793,https://code.google.com/p/dart/issues/detail?id=14849
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30710 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:48:14 +00:00
sgjesse@google.com c97dc6f9fb Propagate errors from DartUtils helper functions
Instead of asserting in debug mode just propagate any errors.

R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30709 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:46:20 +00:00
srdjan@google.com 3274f92827 Rename FinalizeTypeHierarchy to ProcessPendingClasses.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30688 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 00:11:32 +00:00
johnmccutchan@google.com ff20eb09b0 Support Bigint parameters in Int32x4 constructor
https://code.google.com/p/dart/issues/detail?id=15130

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30686 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:46:27 +00:00
johnmccutchan@google.com f40c74c3de Remove type annotation from _TypedListBase
BUG=https://code.google.com/p/dart/issues/detail?id=12861
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30685 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:35:35 +00:00
johnmccutchan@google.com 8c42e5908b Disable profiler on Windows
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30680 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 22:03:58 +00:00
srdjan@google.com cf53988cf6 Use range information to omit checks in TRUNCDIV/MOD operations.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30673 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 18:18:24 +00:00
johnmccutchan@google.com a80d328371 Call exit instead of returning from main
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30672 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 18:13:51 +00:00
johnmccutchan@google.com 39c9c5b3e4 Guard against profiler shutdown race
In response to: https://codereview.chromium.org/87643003/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30669 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 14:28:47 +00:00
lrn@google.com ef66be8610 Change Expect.identical(NaN, x) to not assume NaNs are identical.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30667 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 10:32:51 +00:00
ajohnsen@google.com c4ca0bf072 Disable profiler, as profiler shutdown is racing with isolates.
Some tests using isolates, crashes with the following assertion error:

  runtime/vm/profiler.cc:237: error: expected: initialized_

It turns out that ProfileManager::Shutdown is called, while there are still isolates running. The comment in runtime/vm/dart.cc:152 seams to explain the issue.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30666 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 09:41:19 +00:00
lrn@google.com e1b4afa85d Add num.parse.
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.

BUG= http://dartbug.com/8237
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30663 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 08:44:38 +00:00
ajohnsen@google.com 6949b04215 Use ino64_t on linux, to match the output of stat64.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30658 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 07:41:44 +00:00
johnmccutchan@google.com d53d7013ef Ensure profiler manager thread has shutdown before main thread
Review URL: https://codereview.chromium.org//86793002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30655 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 00:48:09 +00:00
johnmccutchan@google.com 72afb81a8c - Fix MonitorData ASSERT failure in thread_win:
E:\b\build\slave\vm-win32-debug-russian-be\build\dart\runtime\platform/thread_win.h:66: error: expected: next_ == NULL.
- Reduce sample buffer size by an order of magnitude (this should fix .
- Disable profiler on simulators.
- Only sample when scheduled thread id matches current thread id.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30647 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 22:06:33 +00:00
iposva@google.com b1fdbb40d1 - Update documentation of Dart_NewWeakPersistentHandle.
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30643 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 20:48:17 +00:00
iposva@google.com 290d4f0cd6 - Add missing header file to vm_sources.gypi.
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30642 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 20:47:21 +00:00
rmacnak@google.com 314da361f0 Add demangle utility to Dartium's dart:html. Demangle typedef names in UserVisibleName.
BUG=http://dartbug.com/14892
R=asiva@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30636 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 18:31:20 +00:00
johnmccutchan@google.com ab9f2e59ed Always update scheduled thread id
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30633 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 15:41:10 +00:00
lrn@google.com f5bf3613dc Revert "Add num.parse."
Fails on IE9.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30631 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 14:52:23 +00:00
lrn@google.com e0f3bb3092 Add num.parse.
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.

BUG= http://dartbug.com/8237
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30624 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 13:09:04 +00:00
fschneider@google.com 8b0b3fde4d Generalize if-conversion to arbitrary smi comparisons.
Until now only == and != comparisons were supported.

Further changes are:
 Remove flag FLAG_new_identity_spec: It is not needed anymore.
 Invoke Canonicalize another time before branch optimizations.
 Fixes support for TestSmiInstr with the branch-simplifier pass.

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30622 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 12:57:21 +00:00
ajohnsen@google.com 88e227fce7 Use EV_ONESHOT in eventhandler on Mac OS.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30611 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 08:58:32 +00:00
johnmccutchan@google.com f42edb213a Guard against an isolate being scheduled twice
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30608 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 01:42:50 +00:00
johnmccutchan@google.com f6459c2dcc - SetupIsolateForProfiling before SetCurrent is called on an isolate for the first time.
- ProfilerManager::Shutdown no longer frees isolate profiling data for registered isolates. Each isolate will free its own data when shutdown.
- Fix monitor timeout test to disable signal delivery.
- Do not walk the call stack in signal handler.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30607 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-24 23:33:41 +00:00
zra@google.com 7c28e8d96d Fixes FindCodeObject test.
After enabling GC of unoptimized code, functions cannot be
used as proxies for unoptimized code. This change, creates
ZoneHanldes for compiled code in the FindCodeObject test,
so that later when functions are used to refer to code,
we can be sure that the code will be there.

TBR: iposva

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30604 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-23 19:09:23 +00:00
johnmccutchan@google.com b26fdea8d0 Implement PC, FP, and SP getters on Linux ARM
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30603 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-23 16:20:41 +00:00
johnmccutchan@google.com 65e7b9f980 - Fix shutdown race.
- Move signal blocking out of dart.cc and isolate.cc and into profiler.cc.
- Nest scope objects explicitly.
- Add missing signal block in ProfilerManager::ShutdownIsolateForProfiling.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30602 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-23 00:26:35 +00:00
zra@google.com daf539e2f9 Fixes a couple problems with GC of unoptimized code.
1. Instead of making a pass before the Marking phase,
   this change does not visit code pointers in functions
   during marking. Then after marking, if the code has
   still not been marked, code pointers in functions
   are nulled out.
2. Since code pointers in functions may be nulled out,
   functions are no longer used as proxies for code in
   deoptimization info.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30600 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-23 00:17:28 +00:00
zra@google.com 5984398417 Removes EPOLLONESHOT from Android eventhandler.
It doesn't exist in the NDK.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30598 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:40:25 +00:00
turnidge@google.com b354d77a3b Add field and function view for libraries. Rough cut.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30596 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:02:11 +00:00
zra@google.com dd2c1e1cb8 Removes obsolete MIPS ifdef from FindCodeObject test.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30587 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 21:53:14 +00:00
srdjan@google.com 3485989ae7 Do not eagerly finalize classes in CHA, instead regard unfinalized classes as ’non-existent’ and only invalidate optimized code at finalization of the class.
Rename FinalizePendingClasses to FinalizePendingClassInterfaces as the class finalization occurs lazily.
TODO: add dependency information to deoptimize/remove only relevant optimized code.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30582 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 17:59:23 +00:00
ajohnsen@google.com 2b83a250a5 Fix re-adding to epoll, when event is unhandled.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30576 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 13:56:40 +00:00
ajohnsen@google.com a3d54702b0 Correctly revert eventhandler_macos.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30575 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 13:21:12 +00:00
ajohnsen@google.com c98d0bde22 Read up to 8 InterruptMessages at a time, in unix eventhandlers.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30574 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 12:50:29 +00:00
ajohnsen@google.com 5b45b4ade5 Revert using one-shot on mac, as it doesn't work as expected.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30573 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 12:10:59 +00:00
ajohnsen@google.com e177d16fa2 Remove unneded debug printing from FDUtils.
BUG=https://code.google.com/p/dart/issues/detail?id=15005
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30572 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 11:30:15 +00:00
ajohnsen@google.com d2e3c3d573 Limit the number of syscalls made by the Eventhandler.
We now let epoll use EPOLLONESHOT instead of manual unsubscribing, and
only to handle timeouts when no IO events was received.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30566 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 08:24:40 +00:00
sgjesse@google.com 7254b45183 More cleanup in the socket C++ code
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30564 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 08:02:20 +00:00
johnmccutchan@google.com 7ee1ada97c Disable profiler
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30559 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 00:57:24 +00:00
iposva@google.com 5f1e3063dc - Update use of kPageSize in ifdef'd MIPS code.
Review URL: https://codereview.chromium.org//82293002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30558 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 00:41:11 +00:00
iposva@google.com 32bf931118 - Convert HeapPages to use word sizes.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30557 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 23:48:41 +00:00