Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: regexp2000/src/objects-debug.cc

Issue 8765: * Use new RegExp parser. (Closed)
Patch Set: Use new RegExp parser. Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « regexp2000/src/objects.h ('k') | regexp2000/src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 JSObjectVerify(); 662 JSObjectVerify();
663 ASSERT(data()->IsUndefined() || data()->IsFixedArray()); 663 ASSERT(data()->IsUndefined() || data()->IsFixedArray());
664 switch (TypeTag()) { 664 switch (TypeTag()) {
665 case JSRegExp::ATOM: { 665 case JSRegExp::ATOM: {
666 FixedArray* arr = FixedArray::cast(data()); 666 FixedArray* arr = FixedArray::cast(data());
667 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString()); 667 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString());
668 break; 668 break;
669 } 669 }
670 case JSRegExp::JSCRE: { 670 case JSRegExp::JSCRE: {
671 FixedArray* arr = FixedArray::cast(data()); 671 FixedArray* arr = FixedArray::cast(data());
672 ASSERT(arr->get(JSRegExp::kJscreDataIndex)->IsFixedArray()); 672 Object* jscre_data = arr->get(JSRegExp::kJscreDataIndex);
673 ASSERT(jscre_data->IsFixedArray() || jscre_data->IsUndefined());
673 break; 674 break;
674 } 675 }
675 default: 676 default:
676 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); 677 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag());
677 ASSERT(data()->IsUndefined()); 678 ASSERT(data()->IsUndefined());
678 break; 679 break;
679 } 680 }
680 } 681 }
681 682
682 683
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 } 1049 }
1049 current = hash; 1050 current = hash;
1050 } 1051 }
1051 return true; 1052 return true;
1052 } 1053 }
1053 1054
1054 1055
1055 #endif // DEBUG 1056 #endif // DEBUG
1056 1057
1057 } } // namespace v8::internal 1058 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « regexp2000/src/objects.h ('k') | regexp2000/src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698