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

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

Issue 43075: * Reapply revisions 1383, 1384, 1391, 1398, 1401, 1402,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 void JSRegExp::JSRegExpVerify() { 689 void JSRegExp::JSRegExpVerify() {
690 JSObjectVerify(); 690 JSObjectVerify();
691 ASSERT(data()->IsUndefined() || data()->IsFixedArray()); 691 ASSERT(data()->IsUndefined() || data()->IsFixedArray());
692 switch (TypeTag()) { 692 switch (TypeTag()) {
693 case JSRegExp::ATOM: { 693 case JSRegExp::ATOM: {
694 FixedArray* arr = FixedArray::cast(data()); 694 FixedArray* arr = FixedArray::cast(data());
695 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString()); 695 ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString());
696 break; 696 break;
697 } 697 }
698 case JSRegExp::IRREGEXP: { 698 case JSRegExp::IRREGEXP: {
699 bool is_native = FLAG_regexp_native;
700 #ifdef ARM
701 // No native regexp on arm yet.
702 is_native = false;
703 #endif
699 FixedArray* arr = FixedArray::cast(data()); 704 FixedArray* arr = FixedArray::cast(data());
700 Object* irregexp_data = arr->get(JSRegExp::kIrregexpDataIndex); 705 Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex);
701 ASSERT(irregexp_data->IsFixedArray()); 706 ASSERT(ascii_data->IsTheHole()
707 || (is_native ? ascii_data->IsCode() : ascii_data->IsByteArray()));
708 Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex);
709 ASSERT(uc16_data->IsTheHole()
710 || (is_native ? uc16_data->IsCode() : uc16_data->IsByteArray()));
711 ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi());
712 ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi());
702 break; 713 break;
703 } 714 }
704 default: 715 default:
705 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); 716 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag());
706 ASSERT(data()->IsUndefined()); 717 ASSERT(data()->IsUndefined());
707 break; 718 break;
708 } 719 }
709 } 720 }
710 721
711 722
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 } 1088 }
1078 current = hash; 1089 current = hash;
1079 } 1090 }
1080 return true; 1091 return true;
1081 } 1092 }
1082 1093
1083 1094
1084 #endif // DEBUG 1095 #endif // DEBUG
1085 1096
1086 } } // namespace v8::internal 1097 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698