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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 void PromiseContainer::PromiseContainerVerify() { | 915 void PromiseContainer::PromiseContainerVerify() { |
916 CHECK(IsPromiseContainer()); | 916 CHECK(IsPromiseContainer()); |
917 thenable()->ObjectVerify(); | 917 thenable()->ObjectVerify(); |
918 then()->ObjectVerify(); | 918 then()->ObjectVerify(); |
919 resolve()->ObjectVerify(); | 919 resolve()->ObjectVerify(); |
920 reject()->ObjectVerify(); | 920 reject()->ObjectVerify(); |
921 before_debug_event()->ObjectVerify(); | 921 before_debug_event()->ObjectVerify(); |
922 after_debug_event()->ObjectVerify(); | 922 after_debug_event()->ObjectVerify(); |
923 } | 923 } |
924 | 924 |
| 925 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
| 926 Isolate* isolate = GetIsolate(); |
| 927 CHECK(IsPromiseReactionJobInfo()); |
| 928 CHECK(value()->IsObject()); |
| 929 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); |
| 930 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); |
| 931 CHECK(before_debug_event()->IsJSObject() || |
| 932 before_debug_event()->IsUndefined(isolate)); |
| 933 CHECK(after_debug_event()->IsJSObject() || |
| 934 after_debug_event()->IsUndefined(isolate)); |
| 935 CHECK(context()->IsContext()); |
| 936 } |
| 937 |
925 void JSModuleNamespace::JSModuleNamespaceVerify() { | 938 void JSModuleNamespace::JSModuleNamespaceVerify() { |
926 CHECK(IsJSModuleNamespace()); | 939 CHECK(IsJSModuleNamespace()); |
927 module()->ObjectVerify(); | 940 module()->ObjectVerify(); |
928 } | 941 } |
929 | 942 |
930 void Module::ModuleVerify() { | 943 void Module::ModuleVerify() { |
931 Isolate* isolate = GetIsolate(); | 944 Isolate* isolate = GetIsolate(); |
932 CHECK(IsModule()); | 945 CHECK(IsModule()); |
933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 946 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
934 code()->ObjectVerify(); | 947 code()->ObjectVerify(); |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 | 1386 |
1374 // Both are done at the same time. | 1387 // Both are done at the same time. |
1375 CHECK_EQ(new_it.done(), old_it.done()); | 1388 CHECK_EQ(new_it.done(), old_it.done()); |
1376 } | 1389 } |
1377 | 1390 |
1378 | 1391 |
1379 #endif // DEBUG | 1392 #endif // DEBUG |
1380 | 1393 |
1381 } // namespace internal | 1394 } // namespace internal |
1382 } // namespace v8 | 1395 } // namespace v8 |
OLD | NEW |