Chromium Code Reviews| Index: Source/bindings/v8/ScriptDebugServer.cpp |
| diff --git a/Source/bindings/v8/ScriptDebugServer.cpp b/Source/bindings/v8/ScriptDebugServer.cpp |
| index 68135d4cdcab87a20ae5aa9cf62fdc8c4ede47cf..514a4f091355d74fd0dab6effae31565e66d4343 100644 |
| --- a/Source/bindings/v8/ScriptDebugServer.cpp |
| +++ b/Source/bindings/v8/ScriptDebugServer.cpp |
| @@ -325,7 +325,7 @@ int ScriptDebugServer::frameCount() |
| return 0; |
| } |
| -PassRefPtr<JavaScriptCallFrame> ScriptDebugServer::wrapCallFrames(int maximumLimit, ScopeInfoDetails scopeDetails) |
| +PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::wrapCallFrames(int maximumLimit, ScopeInfoDetails scopeDetails) |
| { |
| const int scopeBits = 2; |
| COMPILE_ASSERT(NoScopes < (1 << scopeBits), not_enough_bits_to_encode_ScopeInfoDetails); |
| @@ -342,7 +342,7 @@ PassRefPtr<JavaScriptCallFrame> ScriptDebugServer::wrapCallFrames(int maximumLim |
| } |
| ASSERT(!currentCallFrameV8.IsEmpty()); |
| if (!currentCallFrameV8->IsObject()) |
| - return PassRefPtr<JavaScriptCallFrame>(); |
| + return PassRefPtrWillBeRawPtr<JavaScriptCallFrame>(); |
|
haraken
2014/06/11 06:27:36
Can we use nullptr?
keishi
2014/06/11 14:40:55
Done.
|
| return JavaScriptCallFrame::create(v8::Debug::GetDebugContext(), v8::Handle<v8::Object>::Cast(currentCallFrameV8)); |
| } |
| @@ -352,7 +352,7 @@ ScriptValue ScriptDebugServer::currentCallFramesInner(ScopeInfoDetails scopeDeta |
| return ScriptValue(); |
| v8::HandleScope handleScope(m_isolate); |
| - RefPtr<JavaScriptCallFrame> currentCallFrame = wrapCallFrames(0, scopeDetails); |
| + RefPtrWillBeRawPtr<JavaScriptCallFrame> currentCallFrame = wrapCallFrames(0, scopeDetails); |
| if (!currentCallFrame) |
| return ScriptValue(); |
| @@ -371,7 +371,7 @@ ScriptValue ScriptDebugServer::currentCallFramesForAsyncStack() |
| return currentCallFramesInner(FastAsyncScopes); |
| } |
| -PassRefPtr<JavaScriptCallFrame> ScriptDebugServer::topCallFrameNoScopes() |
| +PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::topCallFrameNoScopes() |
| { |
| return wrapCallFrames(1, NoScopes); |
| } |
| @@ -569,7 +569,7 @@ bool ScriptDebugServer::isPaused() |
| return m_pausedScriptState; |
| } |
| -void ScriptDebugServer::compileScript(ScriptState* scriptState, const String& expression, const String& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtr<ScriptCallStack>* stackTrace) |
| +void ScriptDebugServer::compileScript(ScriptState* scriptState, const String& expression, const String& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace) |
| { |
| if (scriptState->contextIsEmpty()) |
| return; |
| @@ -600,7 +600,7 @@ void ScriptDebugServer::clearCompiledScripts() |
| m_compiledScripts.clear(); |
| } |
| -void ScriptDebugServer::runScript(ScriptState* scriptState, const String& scriptId, ScriptValue* result, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtr<ScriptCallStack>* stackTrace) |
| +void ScriptDebugServer::runScript(ScriptState* scriptState, const String& scriptId, ScriptValue* result, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace) |
| { |
| if (!m_compiledScripts.contains(scriptId)) |
| return; |