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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Re-cemment bytecode tests. 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
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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 VerifyObjectField(kValue2Offset); 1113 VerifyObjectField(kValue2Offset);
1114 VerifyObjectField(kValue3Offset); 1114 VerifyObjectField(kValue3Offset);
1115 } 1115 }
1116 1116
1117 void ContextExtension::ContextExtensionVerify() { 1117 void ContextExtension::ContextExtensionVerify() {
1118 CHECK(IsContextExtension()); 1118 CHECK(IsContextExtension());
1119 VerifyObjectField(kScopeInfoOffset); 1119 VerifyObjectField(kScopeInfoOffset);
1120 VerifyObjectField(kExtensionOffset); 1120 VerifyObjectField(kExtensionOffset);
1121 } 1121 }
1122 1122
1123 void ConstantElementsPair::ConstantElementsPairVerify() {
1124 CHECK(IsConstantElementsPair());
1125 VerifySmiField(kElementsKindOffset);
1126 VerifyObjectField(kConstantValuesOffset);
1127 }
1123 1128
1124 void AccessorInfo::AccessorInfoVerify() { 1129 void AccessorInfo::AccessorInfoVerify() {
1125 CHECK(IsAccessorInfo()); 1130 CHECK(IsAccessorInfo());
1126 VerifyPointer(name()); 1131 VerifyPointer(name());
1127 VerifyPointer(expected_receiver_type()); 1132 VerifyPointer(expected_receiver_type());
1128 VerifyPointer(getter()); 1133 VerifyPointer(getter());
1129 VerifyPointer(setter()); 1134 VerifyPointer(setter());
1130 VerifyPointer(js_getter()); 1135 VerifyPointer(js_getter());
1131 VerifyPointer(data()); 1136 VerifyPointer(data());
1132 } 1137 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 1541
1537 // Both are done at the same time. 1542 // Both are done at the same time.
1538 CHECK_EQ(new_it.done(), old_it.done()); 1543 CHECK_EQ(new_it.done(), old_it.done());
1539 } 1544 }
1540 1545
1541 1546
1542 #endif // DEBUG 1547 #endif // DEBUG
1543 1548
1544 } // namespace internal 1549 } // namespace internal
1545 } // namespace v8 1550 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698