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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 // when host_running_ is false. | 453 // when host_running_ is false. |
454 void DebugEvent(v8::DebugEvent, | 454 void DebugEvent(v8::DebugEvent, |
455 Handle<Object> exec_state, | 455 Handle<Object> exec_state, |
456 Handle<Object> event_data); | 456 Handle<Object> event_data); |
457 // Puts event on the output queue. Called by V8. | 457 // Puts event on the output queue. Called by V8. |
458 // This is where V8 hands off | 458 // This is where V8 hands off |
459 // processing of the event to the DebugMessageThread thread, | 459 // processing of the event to the DebugMessageThread thread, |
460 // which forwards it to the debug_message_handler set by the API. | 460 // which forwards it to the debug_message_handler set by the API. |
461 void SendMessage(Vector<uint16_t> event_json); | 461 void SendMessage(Vector<uint16_t> event_json); |
462 // Formats an event into JSON, and calls SendMessage. | 462 // Formats an event into JSON, and calls SendMessage. |
463 void SetEventJSONFromEvent(Handle<Object> event_data); | 463 bool SetEventJSONFromEvent(Handle<Object> event_data); |
464 // Puts a command coming from the public API on the queue. Called | 464 // Puts a command coming from the public API on the queue. Called |
465 // by the API client thread. This is where the API client hands off | 465 // by the API client thread. This is where the API client hands off |
466 // processing of the command to the DebugMessageThread thread. | 466 // processing of the command to the DebugMessageThread thread. |
467 void ProcessCommand(Vector<uint16_t> command); | 467 void ProcessCommand(Vector<uint16_t> command); |
468 void OnDebuggerInactive(); | 468 void OnDebuggerInactive(); |
469 | 469 |
470 // Main function of DebugMessageThread thread. | 470 // Main function of DebugMessageThread thread. |
471 void Run(); | 471 void Run(); |
472 | 472 |
473 bool host_running_; // Is the debugging host running or stopped? | 473 bool host_running_; // Is the debugging host running or stopped? |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 } | 588 } |
589 private: | 589 private: |
590 Debug::AddressId id_; | 590 Debug::AddressId id_; |
591 int reg_; | 591 int reg_; |
592 }; | 592 }; |
593 | 593 |
594 | 594 |
595 } } // namespace v8::internal | 595 } } // namespace v8::internal |
596 | 596 |
597 #endif // V8_V8_DEBUG_H_ | 597 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |