Index: src/jsregexp.cc |
=================================================================== |
--- src/jsregexp.cc (revision 2544) |
+++ src/jsregexp.cc (working copy) |
@@ -254,7 +254,7 @@ |
{ |
NoHandleAllocation no_handles; |
- FixedArray* array = last_match_info->elements(); |
+ FixedArray* array = FixedArray::cast(last_match_info->elements()); |
SetAtomLastCapture(array, *subject, value, value + needle->length()); |
} |
return last_match_info; |
@@ -442,7 +442,7 @@ |
if (res != RegExpMacroAssemblerIA32::SUCCESS) return Factory::null_value(); |
- array = Handle<FixedArray>(last_match_info->elements()); |
+ array = Handle<FixedArray>(FixedArray::cast(last_match_info->elements())); |
ASSERT(array->length() >= number_of_capture_registers + kLastMatchOverhead); |
// The captures come in (start, end+1) pairs. |
for (int i = 0; i < number_of_capture_registers; i += 2) { |
@@ -475,7 +475,7 @@ |
return Factory::null_value(); |
} |
- array = Handle<FixedArray>(last_match_info->elements()); |
+ array = Handle<FixedArray>(FixedArray::cast(last_match_info->elements())); |
ASSERT(array->length() >= number_of_capture_registers + kLastMatchOverhead); |
// The captures come in (start, end+1) pairs. |
for (int i = 0; i < number_of_capture_registers; i += 2) { |