| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 friend class DebugMessageThread; | 545 friend class DebugMessageThread; |
| 546 }; | 546 }; |
| 547 | 547 |
| 548 | 548 |
| 549 // Thread to read messages from the message queue and invoke the debug message | 549 // Thread to read messages from the message queue and invoke the debug message |
| 550 // handler in another thread as the V8 thread. This thread is started if the | 550 // handler in another thread as the V8 thread. This thread is started if the |
| 551 // registration of the debug message handler requested to be called in a thread | 551 // registration of the debug message handler requested to be called in a thread |
| 552 // seperate from the V8 thread. | 552 // seperate from the V8 thread. |
| 553 class DebugMessageThread: public Thread { | 553 class DebugMessageThread: public Thread { |
| 554 public: | 554 public: |
| 555 DebugMessageThread() : keep_running_(true) {} | 555 DebugMessageThread() : keep_running_(true) {} |
| 556 virtual ~DebugMessageThread() {} | 556 virtual ~DebugMessageThread() {} |
| 557 | 557 |
| 558 // Main function of DebugMessageThread thread. | 558 // Main function of DebugMessageThread thread. |
| 559 void Run(); | 559 void Run(); |
| 560 void Stop(); | 560 void Stop(); |
| 561 | 561 |
| 562 private: | 562 private: |
| 563 bool keep_running_; | 563 bool keep_running_; |
| 564 DISALLOW_COPY_AND_ASSIGN(DebugMessageThread); | 564 DISALLOW_COPY_AND_ASSIGN(DebugMessageThread); |
| 565 }; | 565 }; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 } | 695 } |
| 696 private: | 696 private: |
| 697 Debug::AddressId id_; | 697 Debug::AddressId id_; |
| 698 int reg_; | 698 int reg_; |
| 699 }; | 699 }; |
| 700 | 700 |
| 701 | 701 |
| 702 } } // namespace v8::internal | 702 } } // namespace v8::internal |
| 703 | 703 |
| 704 #endif // V8_V8_DEBUG_H_ | 704 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |