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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 years 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.h ('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/field-type.h" 10 #include "src/field-type.h"
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 VerifyObjectField(kValue2Offset); 1101 VerifyObjectField(kValue2Offset);
1102 VerifyObjectField(kValue3Offset); 1102 VerifyObjectField(kValue3Offset);
1103 } 1103 }
1104 1104
1105 void ContextExtension::ContextExtensionVerify() { 1105 void ContextExtension::ContextExtensionVerify() {
1106 CHECK(IsContextExtension()); 1106 CHECK(IsContextExtension());
1107 VerifyObjectField(kScopeInfoOffset); 1107 VerifyObjectField(kScopeInfoOffset);
1108 VerifyObjectField(kExtensionOffset); 1108 VerifyObjectField(kExtensionOffset);
1109 } 1109 }
1110 1110
1111 void ConstantElementsPair::ConstantElementsPairVerify() {
1112 CHECK(IsConstantElementsPair());
1113 VerifySmiField(kElementsKindOffset);
1114 VerifyObjectField(kConstantValuesOffset);
1115 }
1111 1116
1112 void AccessorInfo::AccessorInfoVerify() { 1117 void AccessorInfo::AccessorInfoVerify() {
1113 CHECK(IsAccessorInfo()); 1118 CHECK(IsAccessorInfo());
1114 VerifyPointer(name()); 1119 VerifyPointer(name());
1115 VerifyPointer(expected_receiver_type()); 1120 VerifyPointer(expected_receiver_type());
1116 VerifyPointer(getter()); 1121 VerifyPointer(getter());
1117 VerifyPointer(setter()); 1122 VerifyPointer(setter());
1118 VerifyPointer(js_getter()); 1123 VerifyPointer(js_getter());
1119 VerifyPointer(data()); 1124 VerifyPointer(data());
1120 } 1125 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 1529
1525 // Both are done at the same time. 1530 // Both are done at the same time.
1526 CHECK_EQ(new_it.done(), old_it.done()); 1531 CHECK_EQ(new_it.done(), old_it.done());
1527 } 1532 }
1528 1533
1529 1534
1530 #endif // DEBUG 1535 #endif // DEBUG
1531 1536
1532 } // namespace internal 1537 } // namespace internal
1533 } // namespace v8 1538 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698