| 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 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2848 event, | 2848 event, |
| 2849 running, | 2849 running, |
| 2850 Handle<JSObject>::cast(exec_state), | 2850 Handle<JSObject>::cast(exec_state), |
| 2851 Handle<JSObject>::cast(event_data), | 2851 Handle<JSObject>::cast(event_data), |
| 2852 Handle<String>(Utils::OpenHandle(*response)), | 2852 Handle<String>(Utils::OpenHandle(*response)), |
| 2853 command.client_data()); | 2853 command.client_data()); |
| 2854 InvokeMessageHandler(message); | 2854 InvokeMessageHandler(message); |
| 2855 command.Dispose(); | 2855 command.Dispose(); |
| 2856 | 2856 |
| 2857 // Return from debug event processing if either the VM is put into the | 2857 // Return from debug event processing if either the VM is put into the |
| 2858 // runnning state (through a continue command) or auto continue is active | 2858 // running state (through a continue command) or auto continue is active |
| 2859 // and there are no more commands queued. | 2859 // and there are no more commands queued. |
| 2860 if (running && !HasCommands()) { | 2860 if (running && !HasCommands()) { |
| 2861 return; | 2861 return; |
| 2862 } | 2862 } |
| 2863 } | 2863 } |
| 2864 } | 2864 } |
| 2865 | 2865 |
| 2866 | 2866 |
| 2867 void Debugger::SetEventListener(Handle<Object> callback, | 2867 void Debugger::SetEventListener(Handle<Object> callback, |
| 2868 Handle<Object> data) { | 2868 Handle<Object> data) { |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3490 { | 3490 { |
| 3491 Locker locker; | 3491 Locker locker; |
| 3492 Isolate::Current()->debugger()->CallMessageDispatchHandler(); | 3492 Isolate::Current()->debugger()->CallMessageDispatchHandler(); |
| 3493 } | 3493 } |
| 3494 } | 3494 } |
| 3495 } | 3495 } |
| 3496 | 3496 |
| 3497 #endif // ENABLE_DEBUGGER_SUPPORT | 3497 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3498 | 3498 |
| 3499 } } // namespace v8::internal | 3499 } } // namespace v8::internal |
| OLD | NEW |