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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 CHECK(resolve()->IsJSFunction()); | 1018 CHECK(resolve()->IsJSFunction()); |
1019 CHECK(reject()->IsJSFunction()); | 1019 CHECK(reject()->IsJSFunction()); |
1020 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 1020 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
1021 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 1021 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
1022 CHECK(context()->IsContext()); | 1022 CHECK(context()->IsContext()); |
1023 } | 1023 } |
1024 | 1024 |
1025 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 1025 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
1026 Isolate* isolate = GetIsolate(); | 1026 Isolate* isolate = GetIsolate(); |
1027 CHECK(IsPromiseReactionJobInfo()); | 1027 CHECK(IsPromiseReactionJobInfo()); |
| 1028 CHECK(promise()->IsJSPromise()); |
1028 CHECK(value()->IsObject()); | 1029 CHECK(value()->IsObject()); |
1029 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); | 1030 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); |
1030 CHECK(deferred()->IsFixedArray() || deferred()->IsJSObject()); | 1031 CHECK(deferred()->IsFixedArray() || deferred()->IsJSObject()); |
1031 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 1032 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
1032 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 1033 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
1033 CHECK(context()->IsContext()); | 1034 CHECK(context()->IsContext()); |
1034 } | 1035 } |
1035 | 1036 |
1036 void JSModuleNamespace::JSModuleNamespaceVerify() { | 1037 void JSModuleNamespace::JSModuleNamespaceVerify() { |
1037 CHECK(IsJSModuleNamespace()); | 1038 CHECK(IsJSModuleNamespace()); |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 | 1537 |
1537 // Both are done at the same time. | 1538 // Both are done at the same time. |
1538 CHECK_EQ(new_it.done(), old_it.done()); | 1539 CHECK_EQ(new_it.done(), old_it.done()); |
1539 } | 1540 } |
1540 | 1541 |
1541 | 1542 |
1542 #endif // DEBUG | 1543 #endif // DEBUG |
1543 | 1544 |
1544 } // namespace internal | 1545 } // namespace internal |
1545 } // namespace v8 | 1546 } // namespace v8 |
OLD | NEW |