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

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

Issue 1029783003: Populate PrototypeInfo with prototype_object value (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 875
876 876
877 void Box::BoxVerify() { 877 void Box::BoxVerify() {
878 CHECK(IsBox()); 878 CHECK(IsBox());
879 value()->ObjectVerify(); 879 value()->ObjectVerify();
880 } 880 }
881 881
882 882
883 void PrototypeInfo::PrototypeInfoVerify() { 883 void PrototypeInfo::PrototypeInfoVerify() {
884 CHECK(IsPrototypeInfo()); 884 CHECK(IsPrototypeInfo());
885 CHECK(prototype_object()->IsJSObject()); 885 CHECK(prototype_object()->IsJSObject() || prototype_object()->IsSmi());
886 if (prototype_users()->IsWeakFixedArray()) { 886 if (prototype_users()->IsWeakFixedArray()) {
887 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 887 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
888 } else { 888 } else {
889 CHECK(prototype_users()->IsSmi()); 889 CHECK(prototype_users()->IsSmi());
890 } 890 }
891 CHECK(validity_cell()->IsCell() || validity_cell()->IsCell()); 891 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
892 } 892 }
893 893
894 894
895 void AccessorInfo::AccessorInfoVerify() { 895 void AccessorInfo::AccessorInfoVerify() {
896 VerifyPointer(name()); 896 VerifyPointer(name());
897 VerifyPointer(flag()); 897 VerifyPointer(flag());
898 VerifyPointer(expected_receiver_type()); 898 VerifyPointer(expected_receiver_type());
899 } 899 }
900 900
901 901
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 ? it.rinfo()->target_cell() 1283 ? it.rinfo()->target_cell()
1284 : it.rinfo()->target_object(); 1284 : it.rinfo()->target_object();
1285 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1285 CHECK(!CanLeak(target, heap, skip_weak_cell));
1286 } 1286 }
1287 } 1287 }
1288 1288
1289 1289
1290 #endif // DEBUG 1290 #endif // DEBUG
1291 1291
1292 } } // namespace v8::internal 1292 } } // 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