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

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

Issue 996133002: correctly invalidate global cells (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 9 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 636
637 void Cell::CellVerify() { 637 void Cell::CellVerify() {
638 CHECK(IsCell()); 638 CHECK(IsCell());
639 VerifyObjectField(kValueOffset); 639 VerifyObjectField(kValueOffset);
640 } 640 }
641 641
642 642
643 void PropertyCell::PropertyCellVerify() { 643 void PropertyCell::PropertyCellVerify() {
644 CHECK(IsPropertyCell()); 644 CHECK(IsPropertyCell());
645 VerifyObjectField(kValueOffset); 645 VerifyObjectField(kValueOffset);
646 VerifyObjectField(kTypeOffset);
647 } 646 }
648 647
649 648
650 void WeakCell::WeakCellVerify() { 649 void WeakCell::WeakCellVerify() {
651 CHECK(IsWeakCell()); 650 CHECK(IsWeakCell());
652 VerifyObjectField(kValueOffset); 651 VerifyObjectField(kValueOffset);
653 VerifyObjectField(kNextOffset); 652 VerifyObjectField(kNextOffset);
654 } 653 }
655 654
656 655
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 ? it.rinfo()->target_cell() 1269 ? it.rinfo()->target_cell()
1271 : it.rinfo()->target_object(); 1270 : it.rinfo()->target_object();
1272 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1271 CHECK(!CanLeak(target, heap, skip_weak_cell));
1273 } 1272 }
1274 } 1273 }
1275 1274
1276 1275
1277 #endif // DEBUG 1276 #endif // DEBUG
1278 1277
1279 } } // namespace v8::internal 1278 } } // 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