| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 7b7afc46bdc1f02b130068c1c9b94ee734612de6..ee1261b9b4bd502a0eb25df037e7fe0dd4057788 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -695,8 +695,18 @@ void JSRegExp::JSRegExpVerify() {
|
| }
|
| case JSRegExp::IRREGEXP: {
|
| FixedArray* arr = FixedArray::cast(data());
|
| - Object* irregexp_data = arr->get(JSRegExp::kIrregexpDataIndex);
|
| - ASSERT(irregexp_data->IsFixedArray());
|
| + Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex);
|
| + ASSERT(ascii_data->IsTheHole()
|
| + || (FLAG_regexp_native ?
|
| + ascii_data->IsCode()
|
| + : ascii_data->IsByteArray()));
|
| + Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex);
|
| + ASSERT(uc16_data->IsTheHole()
|
| + || (FLAG_regexp_native ?
|
| + uc16_data->IsCode()
|
| + : uc16_data->IsByteArray()));
|
| + ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi());
|
| + ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi());
|
| break;
|
| }
|
| default:
|
|
|