Chromium Code Reviews| Index: src/objects-debug.cc |
| =================================================================== |
| --- src/objects-debug.cc (revision 8501) |
| +++ src/objects-debug.cc (working copy) |
| @@ -466,14 +466,22 @@ |
| FixedArray* arr = FixedArray::cast(data()); |
| Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex); |
| - // TheHole : Not compiled yet. |
| + // Smi : Not compiled yet (-1) or code prepared for flushing. |
| // JSObject: Compilation error. |
| // Code/ByteArray: Compiled code. |
| - ASSERT(ascii_data->IsTheHole() || ascii_data->IsJSObject() || |
| - (is_native ? ascii_data->IsCode() : ascii_data->IsByteArray())); |
| + ASSERT(ascii_data->IsSmi() || ascii_data->IsJSObject() || |
| + (is_native ? ascii_data->IsCode() : ascii_data->IsByteArray())); |
| Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex); |
| - ASSERT(uc16_data->IsTheHole() || uc16_data->IsJSObject() || |
| - (is_native ? uc16_data->IsCode() : uc16_data->IsByteArray())); |
| + ASSERT(uc16_data->IsSmi() || uc16_data->IsJSObject() || |
| + (is_native ? uc16_data->IsCode() : uc16_data->IsByteArray())); |
| + |
| + Object* ascii_saved = arr->get(JSRegExp::kIrregexpASCIICodeSavedIndex); |
| + ASSERT(ascii_saved->IsSmi() || ascii_saved->IsJSObject() || |
|
Erik Corry
2011/07/01 10:26:38
Should be IsString!
|
| + ascii_saved->IsCode()); |
| + Object* uc16_saved = arr->get(JSRegExp::kIrregexpUC16CodeSavedIndex); |
| + ASSERT(uc16_saved->IsSmi() || uc16_saved->IsJSObject() || |
| + uc16_saved->IsCode()); |
| + |
| ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi()); |
| ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi()); |
| break; |