Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index 012c251e21d3035d3a290eb88f635851888f06f2..6844f712b4fef385902447cfd1378fd65a8fecda 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -690,7 +690,8 @@ Handle<JSArray> RegExpImpl::SetLastMatchInfo(Handle<JSArray> last_match_info, |
int32_t* match) { |
ASSERT(last_match_info->HasFastObjectElements()); |
int capture_register_count = (capture_count + 1) * 2; |
- last_match_info->EnsureSize(capture_register_count + kLastMatchOverhead); |
+ JSArray::EnsureSize(last_match_info, |
+ capture_register_count + kLastMatchOverhead); |
DisallowHeapAllocation no_allocation; |
FixedArray* array = FixedArray::cast(last_match_info->elements()); |
if (match != NULL) { |