OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1048 |
1049 // Required as some Dart code executes outside of a valid V8 scope when | 1049 // Required as some Dart code executes outside of a valid V8 scope when |
1050 // the program is paused due to interrupting a Dart isolate. | 1050 // the program is paused due to interrupting a Dart isolate. |
1051 V8Scope v8Scope(DartDOMData::current()); | 1051 V8Scope v8Scope(DartDOMData::current()); |
1052 | 1052 |
1053 Vector<String> breakpointIds; | 1053 Vector<String> breakpointIds; |
1054 breakpointIds.append(pageDebug->lookupBreakpointId(dartBreakpointId)); | 1054 breakpointIds.append(pageDebug->lookupBreakpointId(dartBreakpointId)); |
1055 m_executionState = stackTrace; | 1055 m_executionState = stackTrace; |
1056 m_pausedIsolate = isolate; | 1056 m_pausedIsolate = isolate; |
1057 DartScriptState* scriptState = DartUtilities::currentDartScriptState(); | 1057 DartScriptState* scriptState = DartUtilities::currentDartScriptState(); |
1058 DartScriptDebugListener::SkipPauseRequest result = listener->didPause(script
State, m_executionState, exception ? DartUtilities::dartToScriptValue(exception)
: ScriptValue(), breakpointIds); | 1058 DartScriptDebugListener::SkipPauseRequest result = listener->didPause(script
State, m_executionState, exception, breakpointIds); |
1059 | 1059 |
1060 if (result == DartScriptDebugListener::NoSkip) { | 1060 if (result == DartScriptDebugListener::NoSkip) { |
1061 m_runningNestedMessageLoop = true; | 1061 m_runningNestedMessageLoop = true; |
1062 runMessageLoopOnPause(isolate); | 1062 runMessageLoopOnPause(isolate); |
1063 m_runningNestedMessageLoop = false; | 1063 m_runningNestedMessageLoop = false; |
1064 } | 1064 } |
1065 | 1065 |
1066 m_executionState = 0; | 1066 m_executionState = 0; |
1067 m_pausedIsolate = 0; | 1067 m_pausedIsolate = 0; |
1068 | 1068 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 | 1171 |
1172 Dart_Handle exception = 0; | 1172 Dart_Handle exception = 0; |
1173 String functionString = DartUtilities::dartToString(functionName, exception)
; | 1173 String functionString = DartUtilities::dartToString(functionName, exception)
; |
1174 ASSERT(!exception); | 1174 ASSERT(!exception); |
1175 if (exception) | 1175 if (exception) |
1176 functionString = "Unknown function"; | 1176 functionString = "Unknown function"; |
1177 return ScriptCallFrame(functionString, getScriptId(url, Dart_CurrentIsolate(
)), url, line - 1, column - 1); | 1177 return ScriptCallFrame(functionString, getScriptId(url, Dart_CurrentIsolate(
)), url, line - 1, column - 1); |
1178 } | 1178 } |
1179 | 1179 |
1180 } | 1180 } |
OLD | NEW |