| Index: src/jsregexp.h
|
| diff --git a/src/jsregexp.h b/src/jsregexp.h
|
| index f6e2052cf9a6ed00afc673ac7f816adc2d6c389a..2393f7b22b06f175b17a37187d9246979c7fc79a 100644
|
| --- a/src/jsregexp.h
|
| +++ b/src/jsregexp.h
|
| @@ -112,7 +112,7 @@ class RegExpImpl {
|
| static const int kLastCaptureCount = 0;
|
| static const int kLastSubject = 1;
|
| static const int kLastInput = 2;
|
| - static const int kFirstCapture = 1;
|
| + static const int kFirstCapture = 3;
|
| static const int kLastMatchOverhead = 3;
|
|
|
| // Used to access the lastMatchInfo array.
|
| @@ -125,13 +125,11 @@ class RegExpImpl {
|
| }
|
|
|
| static void SetLastSubject(FixedArray* array, String* to) {
|
| - int capture_count = GetLastCaptureCount(array);
|
| - array->set(capture_count + kLastSubject, to);
|
| + array->set(kLastSubject, to);
|
| }
|
|
|
| static void SetLastInput(FixedArray* array, String* to) {
|
| - int capture_count = GetLastCaptureCount(array);
|
| - array->set(capture_count + kLastInput, to);
|
| + array->set(kLastInput, to);
|
| }
|
|
|
| static void SetCapture(FixedArray* array, int index, int to) {
|
|
|