Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 93b383d9acda6c77560a7cf459613263db59d29c..93b47540c5fa7c8ee13884c2a0d520093e3f5d59 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -95,19 +95,19 @@ LineEditor* LineEditor::Get() { |
class DumbLineEditor: public LineEditor { |
public: |
DumbLineEditor() : LineEditor(LineEditor::DUMB, "dumb") { } |
- virtual i::SmartPointer<char> Prompt(const char* prompt); |
+ virtual i::SmartArrayPointer<char> Prompt(const char* prompt); |
}; |
static DumbLineEditor dumb_line_editor; |
-i::SmartPointer<char> DumbLineEditor::Prompt(const char* prompt) { |
+i::SmartArrayPointer<char> DumbLineEditor::Prompt(const char* prompt) { |
static const int kBufferSize = 256; |
char buffer[kBufferSize]; |
printf("%s", prompt); |
char* str = fgets(buffer, kBufferSize, stdin); |
- return i::SmartPointer<char>(str ? i::StrDup(str) : str); |
+ return i::SmartArrayPointer<char>(str ? i::StrDup(str) : str); |
} |
@@ -890,7 +890,7 @@ void Shell::RunShell() { |
} |
editor->Open(); |
while (true) { |
- i::SmartPointer<char> input = editor->Prompt(Shell::kPrompt); |
+ i::SmartArrayPointer<char> input = editor->Prompt(Shell::kPrompt); |
if (input.is_empty()) break; |
editor->AddHistory(*input); |
HandleScope inner_scope; |
@@ -1057,7 +1057,7 @@ void SourceGroup::ExecuteInThread() { |
void SourceGroup::StartExecuteInThread() { |
if (thread_.is_empty()) { |
- thread_ = i::SmartPointer<i::Thread>(new IsolateThread(this)); |
+ thread_ = i::SmartArrayPointer<i::Thread>(new IsolateThread(this)); |
thread_->Start(); |
} |
next_semaphore_->Signal(); |