Index: src/d8-debug.cc |
diff --git a/src/d8-debug.cc b/src/d8-debug.cc |
index 06622057b4a487364c305754256cf9f9353fc076..adefba73227c0a14d3060d00617d33119df361e4 100644 |
--- a/src/d8-debug.cc |
+++ b/src/d8-debug.cc |
@@ -221,14 +221,14 @@ void RemoteDebugger::Run() { |
} |
-void RemoteDebugger::MessageReceived(i::SmartPointer<char> message) { |
+void RemoteDebugger::MessageReceived(i::SmartArrayPointer<char> message) { |
RemoteDebuggerEvent* event = |
new RemoteDebuggerEvent(RemoteDebuggerEvent::kMessage, message); |
AddEvent(event); |
} |
-void RemoteDebugger::KeyboardCommand(i::SmartPointer<char> command) { |
+void RemoteDebugger::KeyboardCommand(i::SmartArrayPointer<char> command) { |
RemoteDebuggerEvent* event = |
new RemoteDebuggerEvent(RemoteDebuggerEvent::kKeyboard, command); |
AddEvent(event); |
@@ -238,7 +238,7 @@ void RemoteDebugger::KeyboardCommand(i::SmartPointer<char> command) { |
void RemoteDebugger::ConnectionClosed() { |
RemoteDebuggerEvent* event = |
new RemoteDebuggerEvent(RemoteDebuggerEvent::kDisconnect, |
- i::SmartPointer<char>()); |
+ i::SmartArrayPointer<char>()); |
AddEvent(event); |
} |
@@ -330,14 +330,14 @@ void RemoteDebugger::HandleKeyboardCommand(char* command) { |
void ReceiverThread::Run() { |
// Receive the connect message (with empty body). |
- i::SmartPointer<char> message = |
- i::DebuggerAgentUtil::ReceiveMessage(remote_debugger_->conn()); |
+ i::SmartArrayPointer<char> message = |
+ i::DebuggerAgentUtil::ReceiveMessage(remote_debugger_->conn()); |
ASSERT(*message == NULL); |
while (true) { |
// Receive a message. |
- i::SmartPointer<char> message = |
- i::DebuggerAgentUtil::ReceiveMessage(remote_debugger_->conn()); |
+ i::SmartArrayPointer<char> message = |
+ i::DebuggerAgentUtil::ReceiveMessage(remote_debugger_->conn()); |
if (*message == NULL) { |
remote_debugger_->ConnectionClosed(); |
return; |
@@ -361,7 +361,7 @@ void KeyboardThread::Run() { |
// Pass the keyboard command to the main thread. |
remote_debugger_->KeyboardCommand( |
- i::SmartPointer<char>(i::StrDup(command))); |
+ i::SmartArrayPointer<char>(i::StrDup(command))); |
} |
} |