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

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

Issue 2534613002: [ic] Use validity cells to protect keyed element stores against object's prototype chain modificati… (Closed)
Patch Set: The fix 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 CHECK(IsPrototypeInfo()); 1079 CHECK(IsPrototypeInfo());
1080 CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate())); 1080 CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate()));
1081 if (prototype_users()->IsWeakFixedArray()) { 1081 if (prototype_users()->IsWeakFixedArray()) {
1082 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 1082 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
1083 } else { 1083 } else {
1084 CHECK(prototype_users()->IsSmi()); 1084 CHECK(prototype_users()->IsSmi());
1085 } 1085 }
1086 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); 1086 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
1087 } 1087 }
1088 1088
1089 void Tuple2::Tuple2Verify() {
1090 CHECK(IsTuple2());
1091 VerifyObjectField(kValue1Offset);
1092 VerifyObjectField(kValue2Offset);
1093 }
1094
1089 void Tuple3::Tuple3Verify() { 1095 void Tuple3::Tuple3Verify() {
1090 CHECK(IsTuple3()); 1096 CHECK(IsTuple3());
1091 VerifyObjectField(kValue1Offset); 1097 VerifyObjectField(kValue1Offset);
1092 VerifyObjectField(kValue2Offset); 1098 VerifyObjectField(kValue2Offset);
1093 VerifyObjectField(kValue3Offset); 1099 VerifyObjectField(kValue3Offset);
1094 } 1100 }
1095 1101
1096 void ContextExtension::ContextExtensionVerify() { 1102 void ContextExtension::ContextExtensionVerify() {
1097 CHECK(IsContextExtension()); 1103 CHECK(IsContextExtension());
1098 VerifyObjectField(kScopeInfoOffset); 1104 VerifyObjectField(kScopeInfoOffset);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 1521
1516 // Both are done at the same time. 1522 // Both are done at the same time.
1517 CHECK_EQ(new_it.done(), old_it.done()); 1523 CHECK_EQ(new_it.done(), old_it.done());
1518 } 1524 }
1519 1525
1520 1526
1521 #endif // DEBUG 1527 #endif // DEBUG
1522 1528
1523 } // namespace internal 1529 } // namespace internal
1524 } // namespace v8 1530 } // namespace v8
OLDNEW
« src/ic/accessor-assembler.cc ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698