| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 RemoteDebuggerEvent* tail_; | 91 RemoteDebuggerEvent* tail_; |
| 92 | 92 |
| 93 friend class ReceiverThread; | 93 friend class ReceiverThread; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 | 96 |
| 97 // Thread reading from debugged V8 instance. | 97 // Thread reading from debugged V8 instance. |
| 98 class ReceiverThread: public i::Thread { | 98 class ReceiverThread: public i::Thread { |
| 99 public: | 99 public: |
| 100 explicit ReceiverThread(RemoteDebugger* remote_debugger) | 100 explicit ReceiverThread(RemoteDebugger* remote_debugger) |
| 101 : remote_debugger_(remote_debugger) {} | 101 : Thread("d8:ReceiverThrd"), |
| 102 remote_debugger_(remote_debugger) {} |
| 102 ~ReceiverThread() {} | 103 ~ReceiverThread() {} |
| 103 | 104 |
| 104 void Run(); | 105 void Run(); |
| 105 | 106 |
| 106 private: | 107 private: |
| 107 RemoteDebugger* remote_debugger_; | 108 RemoteDebugger* remote_debugger_; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 | 111 |
| 111 // Thread reading keyboard input. | 112 // Thread reading keyboard input. |
| 112 class KeyboardThread: public i::Thread { | 113 class KeyboardThread: public i::Thread { |
| 113 public: | 114 public: |
| 114 explicit KeyboardThread(RemoteDebugger* remote_debugger) | 115 explicit KeyboardThread(RemoteDebugger* remote_debugger) |
| 115 : remote_debugger_(remote_debugger) {} | 116 : Thread("d8:KeyboardThrd"), |
| 117 remote_debugger_(remote_debugger) {} |
| 116 ~KeyboardThread() {} | 118 ~KeyboardThread() {} |
| 117 | 119 |
| 118 void Run(); | 120 void Run(); |
| 119 | 121 |
| 120 private: | 122 private: |
| 121 RemoteDebugger* remote_debugger_; | 123 RemoteDebugger* remote_debugger_; |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 | 126 |
| 125 // Events processed by the main deubgger thread. | 127 // Events processed by the main deubgger thread. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 146 RemoteDebuggerEvent* next_; | 148 RemoteDebuggerEvent* next_; |
| 147 | 149 |
| 148 friend class RemoteDebugger; | 150 friend class RemoteDebugger; |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 | 153 |
| 152 } // namespace v8 | 154 } // namespace v8 |
| 153 | 155 |
| 154 | 156 |
| 155 #endif // V8_D8_DEBUG_H_ | 157 #endif // V8_D8_DEBUG_H_ |
| OLD | NEW |