| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2011 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Local<v8::Context> con
text) | 58 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Local<v8::Context> con
text) |
| 59 { | 59 { |
| 60 return toLocalFrame(toFrameIfNotDetached(context)); | 60 return toLocalFrame(toFrameIfNotDetached(context)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // TODO(Oilpan): avoid keeping a raw reference separate from the | 63 // TODO(Oilpan): avoid keeping a raw reference separate from the |
| 64 // owner one; does not enable heap-movable objects. | 64 // owner one; does not enable heap-movable objects. |
| 65 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr; | 65 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr; |
| 66 | 66 |
| 67 MainThreadDebugger::MainThreadDebugger(PassOwnPtr<ClientMessageLoop> clientMessa
geLoop, v8::Isolate* isolate) | 67 MainThreadDebugger::MainThreadDebugger(PassOwnPtr<ClientMessageLoop> clientMessa
geLoop, v8::Isolate* isolate) |
| 68 : ScriptDebuggerBase(isolate, V8Debugger::create(isolate, this)) | 68 : ScriptDebuggerBase(isolate) |
| 69 , m_clientMessageLoop(clientMessageLoop) | 69 , m_clientMessageLoop(clientMessageLoop) |
| 70 , m_pausedFrame(nullptr) | 70 , m_pausedFrame(nullptr) |
| 71 , m_taskRunner(adoptPtr(new InspectorTaskRunner(isolate))) | 71 , m_taskRunner(adoptPtr(new InspectorTaskRunner(isolate))) |
| 72 { | 72 { |
| 73 MutexLocker locker(creationMutex()); | 73 MutexLocker locker(creationMutex()); |
| 74 ASSERT(!s_instance); | 74 ASSERT(!s_instance); |
| 75 s_instance = this; | 75 s_instance = this; |
| 76 } | 76 } |
| 77 | 77 |
| 78 MainThreadDebugger::~MainThreadDebugger() | 78 MainThreadDebugger::~MainThreadDebugger() |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 m_pausedFrame = 0; | 178 m_pausedFrame = 0; |
| 179 } | 179 } |
| 180 | 180 |
| 181 void MainThreadDebugger::quitMessageLoopOnPause() | 181 void MainThreadDebugger::quitMessageLoopOnPause() |
| 182 { | 182 { |
| 183 m_clientMessageLoop->quitNow(); | 183 m_clientMessageLoop->quitNow(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| OLD | NEW |