| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 if (m_asyncCallStackTracker.isEnabled()) | 768 if (m_asyncCallStackTracker.isEnabled()) |
| 769 m_asyncCallStackTracker.willDeliverMutationRecords(context, observer); | 769 m_asyncCallStackTracker.willDeliverMutationRecords(context, observer); |
| 770 } | 770 } |
| 771 | 771 |
| 772 void InspectorDebuggerAgent::didDeliverMutationRecords() | 772 void InspectorDebuggerAgent::didDeliverMutationRecords() |
| 773 { | 773 { |
| 774 if (m_asyncCallStackTracker.isEnabled()) | 774 if (m_asyncCallStackTracker.isEnabled()) |
| 775 m_asyncCallStackTracker.didFireAsyncCall(); | 775 m_asyncCallStackTracker.didFireAsyncCall(); |
| 776 } | 776 } |
| 777 | 777 |
| 778 void InspectorDebuggerAgent::didPostPromiseTask(ExecutionContext* context, Execu
tionContextTask* task, bool isResolved) |
| 779 { |
| 780 if (m_asyncCallStackTracker.isEnabled()) |
| 781 m_asyncCallStackTracker.didPostPromiseTask(context, task, isResolved, sc
riptDebugServer().currentCallFrames()); |
| 782 } |
| 783 |
| 784 void InspectorDebuggerAgent::willPerformPromiseTask(ExecutionContext* context, E
xecutionContextTask* task) |
| 785 { |
| 786 if (m_asyncCallStackTracker.isEnabled()) |
| 787 m_asyncCallStackTracker.willPerformPromiseTask(context, task); |
| 788 } |
| 789 |
| 790 void InspectorDebuggerAgent::didPerformPromiseTask() |
| 791 { |
| 792 if (m_asyncCallStackTracker.isEnabled()) |
| 793 m_asyncCallStackTracker.didFireAsyncCall(); |
| 794 } |
| 795 |
| 778 void InspectorDebuggerAgent::pause(ErrorString*) | 796 void InspectorDebuggerAgent::pause(ErrorString*) |
| 779 { | 797 { |
| 780 if (m_javaScriptPauseScheduled) | 798 if (m_javaScriptPauseScheduled) |
| 781 return; | 799 return; |
| 782 clearBreakDetails(); | 800 clearBreakDetails(); |
| 783 scriptDebugServer().setPauseOnNextStatement(true); | 801 scriptDebugServer().setPauseOnNextStatement(true); |
| 784 m_javaScriptPauseScheduled = true; | 802 m_javaScriptPauseScheduled = true; |
| 785 } | 803 } |
| 786 | 804 |
| 787 void InspectorDebuggerAgent::resume(ErrorString* errorString) | 805 void InspectorDebuggerAgent::resume(ErrorString* errorString) |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 { | 1246 { |
| 1229 m_scripts.clear(); | 1247 m_scripts.clear(); |
| 1230 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1248 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1231 m_asyncCallStackTracker.clear(); | 1249 m_asyncCallStackTracker.clear(); |
| 1232 if (m_frontend) | 1250 if (m_frontend) |
| 1233 m_frontend->globalObjectCleared(); | 1251 m_frontend->globalObjectCleared(); |
| 1234 } | 1252 } |
| 1235 | 1253 |
| 1236 } // namespace WebCore | 1254 } // namespace WebCore |
| 1237 | 1255 |
| OLD | NEW |