Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 32d25179233275c62ff07d5592d1dfabd2d75e77..f11d745d8f8fc258076653877dd57022b48d414d 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -3532,7 +3532,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExecMultiple) { |
if (result_array->HasFastElements()) { |
result_elements = |
Handle<FixedArray>(FixedArray::cast(result_array->elements())); |
- } else { |
+ } |
+ if (result_elements.is_null() || result_elements->length() < 16) { |
Mads Ager (chromium)
2011/06/23 06:37:04
Is this an unrelated change?
Mads Ager (chromium)
2011/06/23 08:54:08
Nevermind, just read the change description. :-)
|
result_elements = isolate->factory()->NewFixedArrayWithHoles(16); |
} |
FixedArrayBuilder builder(result_elements); |