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

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: small fixes Created 5 years, 8 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 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 if (prototype_users()->IsWeakFixedArray()) {
886 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
887 } else {
888 CHECK(prototype_users()->IsSmi());
889 }
890 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
891 }
892
893
883 void AccessorInfo::AccessorInfoVerify() { 894 void AccessorInfo::AccessorInfoVerify() {
884 VerifyPointer(name()); 895 VerifyPointer(name());
885 VerifyPointer(flag()); 896 VerifyPointer(flag());
886 VerifyPointer(expected_receiver_type()); 897 VerifyPointer(expected_receiver_type());
887 } 898 }
888 899
889 900
890 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { 901 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() {
891 CHECK(IsExecutableAccessorInfo()); 902 CHECK(IsExecutableAccessorInfo());
892 AccessorInfoVerify(); 903 AccessorInfoVerify();
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 ? it.rinfo()->target_cell() 1282 ? it.rinfo()->target_cell()
1272 : it.rinfo()->target_object(); 1283 : it.rinfo()->target_object();
1273 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1284 CHECK(!CanLeak(target, heap, skip_weak_cell));
1274 } 1285 }
1275 } 1286 }
1276 1287
1277 1288
1278 #endif // DEBUG 1289 #endif // DEBUG
1279 1290
1280 } } // namespace v8::internal 1291 } } // 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