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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: reorder Created 4 years, 3 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
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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 void Foreign::ForeignVerify() { 893 void Foreign::ForeignVerify() {
894 CHECK(IsForeign()); 894 CHECK(IsForeign());
895 } 895 }
896 896
897 897
898 void Box::BoxVerify() { 898 void Box::BoxVerify() {
899 CHECK(IsBox()); 899 CHECK(IsBox());
900 value()->ObjectVerify(); 900 value()->ObjectVerify();
901 } 901 }
902 902
903 void PromiseContainer::PromiseContainerVerify() {
904 CHECK(IsPromiseContainer());
905 promise()->ObjectVerify();
906 thenable()->ObjectVerify();
907 then()->ObjectVerify();
908 resolve()->ObjectVerify();
909 reject()->ObjectVerify();
910 before_debug_event()->ObjectVerify();
911 after_debug_event()->ObjectVerify();
912 }
903 913
904 void PrototypeInfo::PrototypeInfoVerify() { 914 void PrototypeInfo::PrototypeInfoVerify() {
905 CHECK(IsPrototypeInfo()); 915 CHECK(IsPrototypeInfo());
906 if (prototype_users()->IsWeakFixedArray()) { 916 if (prototype_users()->IsWeakFixedArray()) {
907 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 917 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
908 } else { 918 } else {
909 CHECK(prototype_users()->IsSmi()); 919 CHECK(prototype_users()->IsSmi());
910 } 920 }
911 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); 921 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi());
912 } 922 }
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 1342
1333 // Both are done at the same time. 1343 // Both are done at the same time.
1334 CHECK_EQ(new_it.done(), old_it.done()); 1344 CHECK_EQ(new_it.done(), old_it.done());
1335 } 1345 }
1336 1346
1337 1347
1338 #endif // DEBUG 1348 #endif // DEBUG
1339 1349
1340 } // namespace internal 1350 } // namespace internal
1341 } // namespace v8 1351 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698