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

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

Issue 10943: Wire Regexp2000 up to the normal JS RegExp object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: 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 | Annotate | Revision Log
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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 FixedArray* arr = FixedArray::cast(data()); 667 FixedArray* arr = FixedArray::cast(data());
668 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString()); 668 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString());
669 break; 669 break;
670 } 670 }
671 case JSRegExp::JSCRE: { 671 case JSRegExp::JSCRE: {
672 FixedArray* arr = FixedArray::cast(data()); 672 FixedArray* arr = FixedArray::cast(data());
673 Object* jscre_data = arr->get(JSRegExp::kJscreDataIndex); 673 Object* jscre_data = arr->get(JSRegExp::kJscreDataIndex);
674 ASSERT(jscre_data->IsFixedArray() || jscre_data->IsUndefined()); 674 ASSERT(jscre_data->IsFixedArray() || jscre_data->IsUndefined());
675 break; 675 break;
676 } 676 }
677 case JSRegExp::RE2K: {
678 FixedArray* arr = FixedArray::cast(data());
679 Object* jscre_data = arr->get(JSRegExp::kJscreDataIndex);
680 ASSERT(jscre_data->IsFixedArray());
681 break;
682 }
677 default: 683 default:
678 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); 684 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag());
679 ASSERT(data()->IsUndefined()); 685 ASSERT(data()->IsUndefined());
680 break; 686 break;
681 } 687 }
682 } 688 }
683 689
684 690
685 void Proxy::ProxyPrint() { 691 void Proxy::ProxyPrint() {
686 PrintF("proxy to %p", proxy()); 692 PrintF("proxy to %p", proxy());
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 } 1056 }
1051 current = hash; 1057 current = hash;
1052 } 1058 }
1053 return true; 1059 return true;
1054 } 1060 }
1055 1061
1056 1062
1057 #endif // DEBUG 1063 #endif // DEBUG
1058 1064
1059 } } // namespace v8::internal 1065 } } // namespace v8::internal
OLDNEW
« src/jsregexp.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698