v8/test/cctest
sgjesse@chromium.org 1f7a7d9c58 Change handling of debugger unloading.
Add a semaphore for accessing debugger varaibles which can be changed from a different thread. This is mainly the debug message handler which can be set to NULL to disconnect the debugger.

Control the unloading of the debugger from the V8 thread. Before the debugger unload was called from the thread setting the debug message handler to NULL. This was not safe as this involves calling into V8. This change handles the unloading of the debugger either when entering a debugger event and the debugger was disconnected while the debugger was not active or when leaving the debugger and the debugger was disconnected while the debugger was active.

Add a flag to avoid unloading the debugger if debugger code is used by the application for other purposes than debugging.

Added tests for clearing the debug message handler.
Review URL: http://codereview.chromium.org/56102

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1648 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2009-03-31 11:24:59 +00:00
..
cctest.cc Fixed a bunch of memory leaks in tests, including: 2009-03-27 00:24:49 +00:00
cctest.h Fixing the flakiness of the serialization tests by assuring that serialization is run before every deserialization test. 2009-02-03 08:35:03 +00:00
cctest.status Change expectations for DebuggerAgent test. 2009-03-20 13:24:58 +00:00
SConscript Add a test for inserting a preexisting list element to a list, at the 2009-03-05 09:39:19 +00:00
test-alloc.cc Extend test case to cover calling runtime functions 2008-10-30 14:16:02 +00:00
test-api.cc Fixed a bunch of memory leaks in tests, including: 2009-03-27 00:24:49 +00:00
test-assembler-arm.cc - Pass the knowledge whether the old GC is compacting to the GC prologue and epilogue. This allows us to skip frame cooking and uncooking when doing a mark-sweep GC. 2009-02-25 16:52:15 +00:00
test-assembler-ia32.cc - Pass the knowledge whether the old GC is compacting to the GC prologue and epilogue. This allows us to skip frame cooking and uncooking when doing a mark-sweep GC. 2009-02-25 16:52:15 +00:00
test-ast.cc Fixed some memory leaks in unit tests. 2009-03-16 07:53:20 +00:00
test-compiler.cc Move InitLineEnds and GetLineNumber to handles.cc to avoid 2009-03-10 15:08:45 +00:00
test-conversions.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-debug.cc Change handling of debugger unloading. 2009-03-31 11:24:59 +00:00
test-decls.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-disasm-arm.cc Fix ARM build. 2009-02-25 16:13:57 +00:00
test-disasm-ia32.cc - Pass the knowledge whether the old GC is compacting to the GC prologue and epilogue. This allows us to skip frame cooking and uncooking when doing a mark-sweep GC. 2009-02-25 16:52:15 +00:00
test-flags.cc Arguments on the command line are made available as a global "arguments" array. 2008-11-11 14:16:24 +00:00
test-hashmap.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-heap.cc Remove all uses of StringShape variables, since that has proven 2009-03-17 09:33:06 +00:00
test-list.cc Add a test for inserting a preexisting list element to a list, at the 2009-03-05 09:39:19 +00:00
test-lock.cc Added a wait with timeout to the platform semaphore class. 2009-03-18 09:04:24 +00:00
test-log-ia32.cc Support profiler stack sampling in any situation. After this change, almost all profiler ticks (except GC ones) have a stack sample data associated. 2009-03-20 14:49:12 +00:00
test-mark-compact.cc Improve mark-compact object grouping interface. 2008-12-11 11:20:04 +00:00
test-platform-linux.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-macos.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-nullos.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-win32.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-regexp.cc RegExps now restart if their input string changes representation during preemption. 2009-03-20 13:26:16 +00:00
test-serialize.cc Use SSE3 instructions - if available - for faster To(U)Int32 2009-02-25 14:57:46 +00:00
test-sockets.cc Better handling of startup and shutdown of the debugger agent. 2009-03-19 21:07:07 +00:00
test-spaces.cc Because allocation in large object space can now require checking the 2008-10-29 10:00:38 +00:00
test-strings.cc Fixed a bunch of memory leaks in tests, including: 2009-03-27 00:24:49 +00:00
test-threads.cc Fix issue 142: 2008-12-17 17:40:02 +00:00
test-utils.cc Fixed some memory leaks in unit tests. 2009-03-16 07:53:20 +00:00
testcfg.py Mark some of the places we leave V8 via callbacks as transitions to 2009-03-27 12:32:28 +00:00