Index: src/heap.cc |
=================================================================== |
--- src/heap.cc (revision 9327) |
+++ src/heap.cc (working copy) |
@@ -2818,7 +2818,7 @@ |
MaybeObject* Heap::AllocateExternalStringFromAscii( |
- ExternalAsciiString::Resource* resource) { |
+ const ExternalAsciiString::Resource* resource) { |
size_t length = resource->length(); |
if (length > static_cast<size_t>(String::kMaxLength)) { |
isolate()->context()->mark_out_of_memory(); |
@@ -2841,7 +2841,7 @@ |
MaybeObject* Heap::AllocateExternalStringFromTwoByte( |
- ExternalTwoByteString::Resource* resource) { |
+ const ExternalTwoByteString::Resource* resource) { |
size_t length = resource->length(); |
if (length > static_cast<size_t>(String::kMaxLength)) { |
isolate()->context()->mark_out_of_memory(); |