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

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

Issue 1600353003: [runtime] remove left-over distinction between AccessorInfo and ExecutableAccessorInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 CHECK(IsPrototypeInfo()); 902 CHECK(IsPrototypeInfo());
903 if (prototype_users()->IsWeakFixedArray()) { 903 if (prototype_users()->IsWeakFixedArray()) {
904 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 904 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
905 } else { 905 } else {
906 CHECK(prototype_users()->IsSmi()); 906 CHECK(prototype_users()->IsSmi());
907 } 907 }
908 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); 908 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
909 } 909 }
910 910
911 911
912 void AccessorInfo::AccessorInfoVerify() {
913 VerifyPointer(name());
914 VerifyPointer(expected_receiver_type());
915 }
916
917
918 void SloppyBlockWithEvalContextExtension:: 912 void SloppyBlockWithEvalContextExtension::
919 SloppyBlockWithEvalContextExtensionVerify() { 913 SloppyBlockWithEvalContextExtensionVerify() {
920 CHECK(IsSloppyBlockWithEvalContextExtension()); 914 CHECK(IsSloppyBlockWithEvalContextExtension());
921 VerifyObjectField(kScopeInfoOffset); 915 VerifyObjectField(kScopeInfoOffset);
922 VerifyObjectField(kExtensionOffset); 916 VerifyObjectField(kExtensionOffset);
923 } 917 }
924 918
925 919
926 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { 920 void AccessorInfo::AccessorInfoVerify() {
927 CHECK(IsExecutableAccessorInfo()); 921 CHECK(IsAccessorInfo());
928 AccessorInfoVerify(); 922 VerifyPointer(name());
923 VerifyPointer(expected_receiver_type());
929 VerifyPointer(getter()); 924 VerifyPointer(getter());
930 VerifyPointer(setter()); 925 VerifyPointer(setter());
931 VerifyPointer(data()); 926 VerifyPointer(data());
932 } 927 }
933 928
934 929
935 void AccessorPair::AccessorPairVerify() { 930 void AccessorPair::AccessorPairVerify() {
936 CHECK(IsAccessorPair()); 931 CHECK(IsAccessorPair());
937 VerifyPointer(getter()); 932 VerifyPointer(getter());
938 VerifyPointer(setter()); 933 VerifyPointer(setter());
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 1326
1332 // Both are done at the same time. 1327 // Both are done at the same time.
1333 CHECK_EQ(new_it.done(), old_it.done()); 1328 CHECK_EQ(new_it.done(), old_it.done());
1334 } 1329 }
1335 1330
1336 1331
1337 #endif // DEBUG 1332 #endif // DEBUG
1338 1333
1339 } // namespace internal 1334 } // namespace internal
1340 } // namespace v8 1335 } // namespace v8
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