| 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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 CHECK(IsBox()); | 1036 CHECK(IsBox()); |
| 1037 value()->ObjectVerify(); | 1037 value()->ObjectVerify(); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { | 1040 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
| 1041 CHECK(IsPromiseResolveThenableJobInfo()); | 1041 CHECK(IsPromiseResolveThenableJobInfo()); |
| 1042 CHECK(thenable()->IsJSReceiver()); | 1042 CHECK(thenable()->IsJSReceiver()); |
| 1043 CHECK(then()->IsJSReceiver()); | 1043 CHECK(then()->IsJSReceiver()); |
| 1044 CHECK(resolve()->IsJSFunction()); | 1044 CHECK(resolve()->IsJSFunction()); |
| 1045 CHECK(reject()->IsJSFunction()); | 1045 CHECK(reject()->IsJSFunction()); |
| 1046 VerifySmiField(kDebugIdOffset); | |
| 1047 CHECK(context()->IsContext()); | 1046 CHECK(context()->IsContext()); |
| 1048 } | 1047 } |
| 1049 | 1048 |
| 1050 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 1049 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
| 1051 Isolate* isolate = GetIsolate(); | 1050 Isolate* isolate = GetIsolate(); |
| 1052 CHECK(IsPromiseReactionJobInfo()); | 1051 CHECK(IsPromiseReactionJobInfo()); |
| 1053 CHECK(value()->IsObject()); | 1052 CHECK(value()->IsObject()); |
| 1054 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); | 1053 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); |
| 1055 CHECK(deferred_promise()->IsUndefined(isolate) || | 1054 CHECK(deferred_promise()->IsUndefined(isolate) || |
| 1056 deferred_promise()->IsJSReceiver() || | 1055 deferred_promise()->IsJSReceiver() || |
| 1057 deferred_promise()->IsFixedArray()); | 1056 deferred_promise()->IsFixedArray()); |
| 1058 CHECK(deferred_on_resolve()->IsUndefined(isolate) || | 1057 CHECK(deferred_on_resolve()->IsUndefined(isolate) || |
| 1059 deferred_on_resolve()->IsCallable() || | 1058 deferred_on_resolve()->IsCallable() || |
| 1060 deferred_on_resolve()->IsFixedArray()); | 1059 deferred_on_resolve()->IsFixedArray()); |
| 1061 CHECK(deferred_on_reject()->IsUndefined(isolate) || | 1060 CHECK(deferred_on_reject()->IsUndefined(isolate) || |
| 1062 deferred_on_reject()->IsCallable() || | 1061 deferred_on_reject()->IsCallable() || |
| 1063 deferred_on_reject()->IsFixedArray()); | 1062 deferred_on_reject()->IsFixedArray()); |
| 1064 VerifySmiField(kDebugIdOffset); | |
| 1065 CHECK(context()->IsContext()); | 1063 CHECK(context()->IsContext()); |
| 1066 } | 1064 } |
| 1067 | 1065 |
| 1068 void JSModuleNamespace::JSModuleNamespaceVerify() { | 1066 void JSModuleNamespace::JSModuleNamespaceVerify() { |
| 1069 CHECK(IsJSModuleNamespace()); | 1067 CHECK(IsJSModuleNamespace()); |
| 1070 VerifyPointer(module()); | 1068 VerifyPointer(module()); |
| 1071 } | 1069 } |
| 1072 | 1070 |
| 1073 void ModuleInfoEntry::ModuleInfoEntryVerify() { | 1071 void ModuleInfoEntry::ModuleInfoEntryVerify() { |
| 1074 Isolate* isolate = GetIsolate(); | 1072 Isolate* isolate = GetIsolate(); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 | 1561 |
| 1564 // Both are done at the same time. | 1562 // Both are done at the same time. |
| 1565 CHECK_EQ(new_it.done(), old_it.done()); | 1563 CHECK_EQ(new_it.done(), old_it.done()); |
| 1566 } | 1564 } |
| 1567 | 1565 |
| 1568 | 1566 |
| 1569 #endif // DEBUG | 1567 #endif // DEBUG |
| 1570 | 1568 |
| 1571 } // namespace internal | 1569 } // namespace internal |
| 1572 } // namespace v8 | 1570 } // namespace v8 |
| OLD | NEW |