Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 5535d171bec7d5328f3b3245e43eb0b0f6d557df..7beb217cc76c2ff48b1ec190774cc7ef3338e998 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -61,7 +61,7 @@ void CodeStub::GenerateCode(MacroAssembler* masm) { |
} |
-SmartPointer<const char> CodeStub::GetName() { |
+SmartArrayPointer<const char> CodeStub::GetName() { |
char buffer[100]; |
NoAllocationStringAllocator allocator(buffer, |
static_cast<unsigned>(sizeof(buffer))); |
@@ -75,7 +75,7 @@ void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) { |
code->set_major_key(MajorKey()); |
Isolate* isolate = masm->isolate(); |
- SmartPointer<const char> name = GetName(); |
+ SmartArrayPointer<const char> name = GetName(); |
PROFILE(isolate, CodeCreateEvent(Logger::STUB_TAG, code, *name)); |
GDBJIT(AddCode(GDBJITInterface::STUB, *name, code)); |
Counters* counters = isolate->counters(); |