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

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

Issue 1033653002: Move prototype metadata from internal properties to prototype maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased 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
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 CHECK(IsForeign()); 873 CHECK(IsForeign());
874 } 874 }
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() {
884 CHECK(IsPrototypeInfo());
885 CHECK(prototype_object()->IsJSObject());
886 if (prototype_users()->IsWeakFixedArray()) {
887 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
888 } else {
889 CHECK(prototype_users()->IsSmi());
890 }
891 CHECK(validity_cell()->IsCell() || validity_cell()->IsCell());
892 }
893
894
883 void AccessorInfo::AccessorInfoVerify() { 895 void AccessorInfo::AccessorInfoVerify() {
884 VerifyPointer(name()); 896 VerifyPointer(name());
885 VerifyPointer(flag()); 897 VerifyPointer(flag());
886 VerifyPointer(expected_receiver_type()); 898 VerifyPointer(expected_receiver_type());
887 } 899 }
888 900
889 901
890 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { 902 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() {
891 CHECK(IsExecutableAccessorInfo()); 903 CHECK(IsExecutableAccessorInfo());
892 AccessorInfoVerify(); 904 AccessorInfoVerify();
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 ? it.rinfo()->target_cell() 1283 ? it.rinfo()->target_cell()
1272 : it.rinfo()->target_object(); 1284 : it.rinfo()->target_object();
1273 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1285 CHECK(!CanLeak(target, heap, skip_weak_cell));
1274 } 1286 }
1275 } 1287 }
1276 1288
1277 1289
1278 #endif // DEBUG 1290 #endif // DEBUG
1279 1291
1280 } } // namespace v8::internal 1292 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698