| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 bool is_native = RegExpImpl::UsesNativeRegExp(); | 433 bool is_native = RegExpImpl::UsesNativeRegExp(); |
| 434 | 434 |
| 435 FixedArray* arr = FixedArray::cast(data()); | 435 FixedArray* arr = FixedArray::cast(data()); |
| 436 Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex); | 436 Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex); |
| 437 // TheHole : Not compiled yet. | 437 // TheHole : Not compiled yet. |
| 438 // JSObject: Compilation error. | 438 // JSObject: Compilation error. |
| 439 // Code/ByteArray: Compiled code. | 439 // Code/ByteArray: Compiled code. |
| 440 ASSERT(ascii_data->IsTheHole() || ascii_data->IsJSObject() || | 440 ASSERT(ascii_data->IsTheHole() || ascii_data->IsJSObject() || |
| 441 (is_native ? ascii_data->IsCode() : ascii_data->IsByteArray())); | 441 (is_native ? ascii_data->IsCode() : ascii_data->IsByteArray())); |
| 442 Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex); | 442 Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex); |
| 443 ASSERT(uc16_data->IsTheHole() || ascii_data->IsJSObject() || | 443 ASSERT(uc16_data->IsTheHole() || uc16_data->IsJSObject() || |
| 444 (is_native ? uc16_data->IsCode() : uc16_data->IsByteArray())); | 444 (is_native ? uc16_data->IsCode() : uc16_data->IsByteArray())); |
| 445 ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi()); | 445 ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi()); |
| 446 ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi()); | 446 ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi()); |
| 447 break; | 447 break; |
| 448 } | 448 } |
| 449 default: | 449 default: |
| 450 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); | 450 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); |
| 451 ASSERT(data()->IsUndefined()); | 451 ASSERT(data()->IsUndefined()); |
| 452 break; | 452 break; |
| 453 } | 453 } |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 ASSERT(e->IsUndefined()); | 713 ASSERT(e->IsUndefined()); |
| 714 } | 714 } |
| 715 } | 715 } |
| 716 } | 716 } |
| 717 } | 717 } |
| 718 | 718 |
| 719 | 719 |
| 720 #endif // DEBUG | 720 #endif // DEBUG |
| 721 | 721 |
| 722 } } // namespace v8::internal | 722 } } // namespace v8::internal |
| OLD | NEW |