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

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

Issue 289503002: ES6 Map/Set iterators/forEach improvements (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git rebase to fix merge conflict Created 6 years, 7 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
« no previous file with comments | « src/objects.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "disassembler.h" 7 #include "disassembler.h"
8 #include "disasm.h" 8 #include "disasm.h"
9 #include "jsregexp.h" 9 #include "jsregexp.h"
10 #include "macro-assembler.h" 10 #include "macro-assembler.h"
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 // TODO(arv): Verify OrderedHashTable too. 695 // TODO(arv): Verify OrderedHashTable too.
696 } 696 }
697 697
698 698
699 void JSSetIterator::JSSetIteratorVerify() { 699 void JSSetIterator::JSSetIteratorVerify() {
700 CHECK(IsJSSetIterator()); 700 CHECK(IsJSSetIterator());
701 JSObjectVerify(); 701 JSObjectVerify();
702 VerifyHeapPointer(table()); 702 VerifyHeapPointer(table());
703 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); 703 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined());
704 CHECK(index()->IsSmi()); 704 CHECK(index()->IsSmi());
705 CHECK(count()->IsSmi());
706 CHECK(kind()->IsSmi()); 705 CHECK(kind()->IsSmi());
707 VerifyHeapPointer(next_iterator());
708 CHECK(next_iterator()->IsJSSetIterator() || next_iterator()->IsUndefined());
709 VerifyHeapPointer(table());
710 CHECK(previous_iterator()->IsJSSetIterator()
711 || previous_iterator()->IsUndefined());
712 } 706 }
713 707
714 708
715 void JSMapIterator::JSMapIteratorVerify() { 709 void JSMapIterator::JSMapIteratorVerify() {
716 CHECK(IsJSMapIterator()); 710 CHECK(IsJSMapIterator());
717 JSObjectVerify(); 711 JSObjectVerify();
718 VerifyHeapPointer(table()); 712 VerifyHeapPointer(table());
719 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); 713 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined());
720 CHECK(index()->IsSmi()); 714 CHECK(index()->IsSmi());
721 CHECK(count()->IsSmi());
722 CHECK(kind()->IsSmi()); 715 CHECK(kind()->IsSmi());
723 VerifyHeapPointer(next_iterator());
724 CHECK(next_iterator()->IsJSMapIterator() || next_iterator()->IsUndefined());
725 VerifyHeapPointer(table());
726 CHECK(previous_iterator()->IsJSMapIterator()
727 || previous_iterator()->IsUndefined());
728 } 716 }
729 717
730 718
731 void JSWeakMap::JSWeakMapVerify() { 719 void JSWeakMap::JSWeakMapVerify() {
732 CHECK(IsJSWeakMap()); 720 CHECK(IsJSWeakMap());
733 JSObjectVerify(); 721 JSObjectVerify();
734 VerifyHeapPointer(table()); 722 VerifyHeapPointer(table());
735 CHECK(table()->IsHashTable() || table()->IsUndefined()); 723 CHECK(table()->IsHashTable() || table()->IsUndefined());
736 } 724 }
737 725
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 for (int i = 0; i < number_of_transitions(); ++i) { 1184 for (int i = 0; i < number_of_transitions(); ++i) {
1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1185 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1198 } 1186 }
1199 return true; 1187 return true;
1200 } 1188 }
1201 1189
1202 1190
1203 #endif // DEBUG 1191 #endif // DEBUG
1204 1192
1205 } } // namespace v8::internal 1193 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698