| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "bindings/core/v8/V8PerIsolateData.h" | 27 #include "bindings/core/v8/V8PerIsolateData.h" |
| 28 | 28 |
| 29 #include "bindings/core/v8/DOMDataStore.h" | 29 #include "bindings/core/v8/DOMDataStore.h" |
| 30 #include "bindings/core/v8/ScriptSourceCode.h" | 30 #include "bindings/core/v8/ScriptSourceCode.h" |
| 31 #include "bindings/core/v8/V8Binding.h" | 31 #include "bindings/core/v8/V8Binding.h" |
| 32 #include "bindings/core/v8/V8HiddenValue.h" | 32 #include "bindings/core/v8/V8HiddenValue.h" |
| 33 #include "bindings/core/v8/V8ObjectConstructor.h" | 33 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 34 #include "bindings/core/v8/V8RecursionScope.h" | 34 #include "bindings/core/v8/V8RecursionScope.h" |
| 35 #include "bindings/core/v8/V8ScriptRunner.h" | 35 #include "bindings/core/v8/V8ScriptRunner.h" |
| 36 #include "core/frame/UseCounter.h" | 36 #include "core/frame/UseCounter.h" |
| 37 #include "core/inspector/ScriptDebuggerBase.h" | 37 #include "core/inspector/MainThreadDebugger.h" |
| 38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
| 39 #include "wtf/MainThread.h" | 39 #include "wtf/MainThread.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 static V8PerIsolateData* mainThreadPerIsolateData = 0; | 43 static V8PerIsolateData* mainThreadPerIsolateData = 0; |
| 44 | 44 |
| 45 #if ENABLE(ASSERT) | 45 #if ENABLE(ASSERT) |
| 46 static void assertV8RecursionScope() | 46 static void assertV8RecursionScope() |
| 47 { | 47 { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 for (const auto& task : tasks) | 270 for (const auto& task : tasks) |
| 271 task->run(); | 271 task->run(); |
| 272 ASSERT(m_endOfScopeTasks.isEmpty()); | 272 ASSERT(m_endOfScopeTasks.isEmpty()); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void V8PerIsolateData::clearEndOfScopeTasks() | 275 void V8PerIsolateData::clearEndOfScopeTasks() |
| 276 { | 276 { |
| 277 m_endOfScopeTasks.clear(); | 277 m_endOfScopeTasks.clear(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<ScriptDebuggerBase> debugger
) | 280 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger
) |
| 281 { | 281 { |
| 282 ASSERT(!m_scriptDebugger); | 282 ASSERT(!m_scriptDebugger); |
| 283 m_scriptDebugger = debugger; | 283 m_scriptDebugger = debugger; |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace blink | 286 } // namespace blink |
| OLD | NEW |