| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/inspector/ThreadDebugger.h" | 5 #include "core/inspector/ThreadDebugger.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8Binding.h" | 7 #include "bindings/core/v8/V8Binding.h" |
| 8 #include "bindings/core/v8/V8DOMException.h" | 8 #include "bindings/core/v8/V8DOMException.h" |
| 9 #include "bindings/core/v8/V8DOMTokenList.h" | 9 #include "bindings/core/v8/V8DOMTokenList.h" |
| 10 #include "bindings/core/v8/V8HTMLAllCollection.h" | 10 #include "bindings/core/v8/V8HTMLAllCollection.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 if (V8DOMException::hasInstance(value, m_isolate)) | 45 if (V8DOMException::hasInstance(value, m_isolate)) |
| 46 return "error"; | 46 return "error"; |
| 47 return String(); | 47 return String(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 bool ThreadDebugger::formatAccessorsAsProperties(v8::Local<v8::Value> value) | 50 bool ThreadDebugger::formatAccessorsAsProperties(v8::Local<v8::Value> value) |
| 51 { | 51 { |
| 52 return V8DOMWrapper::isWrapper(m_isolate, value); | 52 return V8DOMWrapper::isWrapper(m_isolate, value); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool ThreadDebugger::hasRecursionLevel() | |
| 56 { | |
| 57 return !!v8::MicrotasksScope::GetCurrentDepth(m_isolate); | |
| 58 } | |
| 59 | |
| 60 bool ThreadDebugger::isExecutionAllowed() | 55 bool ThreadDebugger::isExecutionAllowed() |
| 61 { | 56 { |
| 62 return !ScriptForbiddenScope::isScriptForbidden(); | 57 return !ScriptForbiddenScope::isScriptForbidden(); |
| 63 } | 58 } |
| 64 | 59 |
| 65 double ThreadDebugger::currentTimeMS() | 60 double ThreadDebugger::currentTimeMS() |
| 66 { | 61 { |
| 67 return WTF::currentTimeMS(); | 62 return WTF::currentTimeMS(); |
| 68 } | 63 } |
| 69 | 64 |
| 70 | 65 |
| 71 } // namespace blink | 66 } // namespace blink |
| OLD | NEW |