OLD | NEW |
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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 void Foreign::ForeignVerify() { | 892 void Foreign::ForeignVerify() { |
893 CHECK(IsForeign()); | 893 CHECK(IsForeign()); |
894 } | 894 } |
895 | 895 |
896 | 896 |
897 void Box::BoxVerify() { | 897 void Box::BoxVerify() { |
898 CHECK(IsBox()); | 898 CHECK(IsBox()); |
899 value()->ObjectVerify(); | 899 value()->ObjectVerify(); |
900 } | 900 } |
901 | 901 |
| 902 void PromiseContainer::PromiseContainerVerify() { |
| 903 CHECK(IsPromiseContainer()); |
| 904 thenable()->ObjectVerify(); |
| 905 then()->ObjectVerify(); |
| 906 resolve()->ObjectVerify(); |
| 907 reject()->ObjectVerify(); |
| 908 before_debug_event()->ObjectVerify(); |
| 909 after_debug_event()->ObjectVerify(); |
| 910 } |
| 911 |
902 void Module::ModuleVerify() { | 912 void Module::ModuleVerify() { |
903 CHECK(IsModule()); | 913 CHECK(IsModule()); |
904 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 914 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
905 code()->ObjectVerify(); | 915 code()->ObjectVerify(); |
906 exports()->ObjectVerify(); | 916 exports()->ObjectVerify(); |
907 // TODO(neis): Check more. | 917 // TODO(neis): Check more. |
908 } | 918 } |
909 | 919 |
910 void PrototypeInfo::PrototypeInfoVerify() { | 920 void PrototypeInfo::PrototypeInfoVerify() { |
911 CHECK(IsPrototypeInfo()); | 921 CHECK(IsPrototypeInfo()); |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 | 1348 |
1339 // Both are done at the same time. | 1349 // Both are done at the same time. |
1340 CHECK_EQ(new_it.done(), old_it.done()); | 1350 CHECK_EQ(new_it.done(), old_it.done()); |
1341 } | 1351 } |
1342 | 1352 |
1343 | 1353 |
1344 #endif // DEBUG | 1354 #endif // DEBUG |
1345 | 1355 |
1346 } // namespace internal | 1356 } // namespace internal |
1347 } // namespace v8 | 1357 } // namespace v8 |
OLD | NEW |