| 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 5899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5910 delete server_; | 5910 delete server_; |
| 5911 delete listening_; | 5911 delete listening_; |
| 5912 } | 5912 } |
| 5913 | 5913 |
| 5914 void Run(); | 5914 void Run(); |
| 5915 void WaitForListening() { listening_->Wait(); } | 5915 void WaitForListening() { listening_->Wait(); } |
| 5916 char* body() { return *body_; } | 5916 char* body() { return *body_; } |
| 5917 | 5917 |
| 5918 private: | 5918 private: |
| 5919 int port_; | 5919 int port_; |
| 5920 i::SmartPointer<char> body_; | 5920 i::SmartArrayPointer<char> body_; |
| 5921 i::Socket* server_; // Server socket used for bind/accept. | 5921 i::Socket* server_; // Server socket used for bind/accept. |
| 5922 i::Socket* client_; // Single client connection used by the test. | 5922 i::Socket* client_; // Single client connection used by the test. |
| 5923 i::Semaphore* listening_; // Signalled when the server is in listen mode. | 5923 i::Semaphore* listening_; // Signalled when the server is in listen mode. |
| 5924 }; | 5924 }; |
| 5925 | 5925 |
| 5926 | 5926 |
| 5927 void DebuggerAgentProtocolServerThread::Run() { | 5927 void DebuggerAgentProtocolServerThread::Run() { |
| 5928 bool ok; | 5928 bool ok; |
| 5929 | 5929 |
| 5930 // Create the server socket and bind it to the requested port. | 5930 // Create the server socket and bind it to the requested port. |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7296 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); | 7296 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); |
| 7297 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); | 7297 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); |
| 7298 | 7298 |
| 7299 // Get rid of the debug event listener. | 7299 // Get rid of the debug event listener. |
| 7300 v8::Debug::SetDebugEventListener(NULL); | 7300 v8::Debug::SetDebugEventListener(NULL); |
| 7301 CheckDebuggerUnloaded(); | 7301 CheckDebuggerUnloaded(); |
| 7302 } | 7302 } |
| 7303 | 7303 |
| 7304 | 7304 |
| 7305 #endif // ENABLE_DEBUGGER_SUPPORT | 7305 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |