Chromium Code Reviews| Index: src/jsregexp.h |
| diff --git a/src/jsregexp.h b/src/jsregexp.h |
| index 8f01342616582068672537a01eccd328128fda2a..f203911f3c47ac441295eb329ea3846367761310 100644 |
| --- a/src/jsregexp.h |
| +++ b/src/jsregexp.h |
| @@ -142,6 +142,11 @@ class RegExpImpl { |
| static const int kFirstCaptureOffset = |
| FixedArray::kHeaderSize + kFirstCapture * kPointerSize; |
| + static bool IsAtom(FixedArray* array) { |
|
fschneider
2010/03/25 10:26:06
Is this function ever called?
Lasse Reichstein
2010/03/26 11:18:26
I don't think so. I switched to using JSRegExp::Is
|
| + Smi* tag = Smi::cast(array->get(JSRegExp::kTagIndex)); |
| + return tag == Smi::FromInt(JSRegExp::ATOM); |
| + } |
| + |
| // Used to access the lastMatchInfo array. |
| static int GetCapture(FixedArray* array, int index) { |
| return Smi::cast(array->get(index + kFirstCapture))->value(); |