| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 5826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5837 | 5837 |
| 5838 debug_message_dispatch_v8_thread.Start(); | 5838 debug_message_dispatch_v8_thread.Start(); |
| 5839 debug_message_dispatch_debugger_thread.Start(); | 5839 debug_message_dispatch_debugger_thread.Start(); |
| 5840 | 5840 |
| 5841 debug_message_dispatch_v8_thread.Join(); | 5841 debug_message_dispatch_v8_thread.Join(); |
| 5842 debug_message_dispatch_debugger_thread.Join(); | 5842 debug_message_dispatch_debugger_thread.Join(); |
| 5843 } | 5843 } |
| 5844 | 5844 |
| 5845 | 5845 |
| 5846 TEST(DebuggerAgent) { | 5846 TEST(DebuggerAgent) { |
| 5847 v8::V8::Initialize(); |
| 5847 i::Debugger* debugger = i::Isolate::Current()->debugger(); | 5848 i::Debugger* debugger = i::Isolate::Current()->debugger(); |
| 5848 // Make sure these ports is not used by other tests to allow tests to run in | 5849 // Make sure these ports is not used by other tests to allow tests to run in |
| 5849 // parallel. | 5850 // parallel. |
| 5850 const int kPort1 = 5858; | 5851 const int kPort1 = 5858; |
| 5851 const int kPort2 = 5857; | 5852 const int kPort2 = 5857; |
| 5852 const int kPort3 = 5856; | 5853 const int kPort3 = 5856; |
| 5853 | 5854 |
| 5854 // Make a string with the port2 number. | 5855 // Make a string with the port2 number. |
| 5855 const int kPortBufferLen = 6; | 5856 const int kPortBufferLen = 6; |
| 5856 char port2_str[kPortBufferLen]; | 5857 char port2_str[kPortBufferLen]; |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7294 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); | 7295 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); |
| 7295 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); | 7296 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); |
| 7296 | 7297 |
| 7297 // Get rid of the debug event listener. | 7298 // Get rid of the debug event listener. |
| 7298 v8::Debug::SetDebugEventListener(NULL); | 7299 v8::Debug::SetDebugEventListener(NULL); |
| 7299 CheckDebuggerUnloaded(); | 7300 CheckDebuggerUnloaded(); |
| 7300 } | 7301 } |
| 7301 | 7302 |
| 7302 | 7303 |
| 7303 #endif // ENABLE_DEBUGGER_SUPPORT | 7304 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |