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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 thenable()->ObjectVerify(); |
| 906 then()->ObjectVerify(); |
| 907 resolve()->ObjectVerify(); |
| 908 reject()->ObjectVerify(); |
| 909 before_debug_event()->ObjectVerify(); |
| 910 after_debug_event()->ObjectVerify(); |
| 911 } |
| 912 |
903 void Module::ModuleVerify() { | 913 void Module::ModuleVerify() { |
904 CHECK(IsModule()); | 914 CHECK(IsModule()); |
905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 915 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
906 code()->ObjectVerify(); | 916 code()->ObjectVerify(); |
907 exports()->ObjectVerify(); | 917 exports()->ObjectVerify(); |
908 requested_modules()->ObjectVerify(); | 918 requested_modules()->ObjectVerify(); |
909 // TODO(neis): Check more. | 919 // TODO(neis): Check more. |
910 } | 920 } |
911 | 921 |
912 void PrototypeInfo::PrototypeInfoVerify() { | 922 void PrototypeInfo::PrototypeInfoVerify() { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 | 1350 |
1341 // Both are done at the same time. | 1351 // Both are done at the same time. |
1342 CHECK_EQ(new_it.done(), old_it.done()); | 1352 CHECK_EQ(new_it.done(), old_it.done()); |
1343 } | 1353 } |
1344 | 1354 |
1345 | 1355 |
1346 #endif // DEBUG | 1356 #endif // DEBUG |
1347 | 1357 |
1348 } // namespace internal | 1358 } // namespace internal |
1349 } // namespace v8 | 1359 } // namespace v8 |
OLD | NEW |