| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 value()->ObjectVerify(); | 1014 value()->ObjectVerify(); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { | 1017 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
| 1018 Isolate* isolate = GetIsolate(); | 1018 Isolate* isolate = GetIsolate(); |
| 1019 CHECK(IsPromiseResolveThenableJobInfo()); | 1019 CHECK(IsPromiseResolveThenableJobInfo()); |
| 1020 CHECK(thenable()->IsJSReceiver()); | 1020 CHECK(thenable()->IsJSReceiver()); |
| 1021 CHECK(then()->IsJSReceiver()); | 1021 CHECK(then()->IsJSReceiver()); |
| 1022 CHECK(resolve()->IsJSFunction()); | 1022 CHECK(resolve()->IsJSFunction()); |
| 1023 CHECK(reject()->IsJSFunction()); | 1023 CHECK(reject()->IsJSFunction()); |
| 1024 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 1024 VerifySmiField(kDebugIdOffset); |
| 1025 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 1025 VerifySmiField(kDebugNameOffset); |
| 1026 CHECK(context()->IsContext()); | 1026 CHECK(context()->IsContext()); |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 1029 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
| 1030 Isolate* isolate = GetIsolate(); | 1030 Isolate* isolate = GetIsolate(); |
| 1031 CHECK(IsPromiseReactionJobInfo()); | 1031 CHECK(IsPromiseReactionJobInfo()); |
| 1032 CHECK(promise()->IsJSPromise()); | 1032 CHECK(promise()->IsJSPromise()); |
| 1033 CHECK(value()->IsObject()); | 1033 CHECK(value()->IsObject()); |
| 1034 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); | 1034 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); |
| 1035 CHECK(deferred_promise()->IsUndefined(isolate) || | 1035 CHECK(deferred_promise()->IsUndefined(isolate) || |
| 1036 deferred_promise()->IsJSReceiver() || | 1036 deferred_promise()->IsJSReceiver() || |
| 1037 deferred_promise()->IsFixedArray()); | 1037 deferred_promise()->IsFixedArray()); |
| 1038 CHECK(deferred_on_resolve()->IsUndefined(isolate) || | 1038 CHECK(deferred_on_resolve()->IsUndefined(isolate) || |
| 1039 deferred_on_resolve()->IsCallable() || | 1039 deferred_on_resolve()->IsCallable() || |
| 1040 deferred_on_resolve()->IsFixedArray()); | 1040 deferred_on_resolve()->IsFixedArray()); |
| 1041 CHECK(deferred_on_reject()->IsUndefined(isolate) || | 1041 CHECK(deferred_on_reject()->IsUndefined(isolate) || |
| 1042 deferred_on_reject()->IsCallable() || | 1042 deferred_on_reject()->IsCallable() || |
| 1043 deferred_on_reject()->IsFixedArray()); | 1043 deferred_on_reject()->IsFixedArray()); |
| 1044 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 1044 VerifySmiField(kDebugIdOffset); |
| 1045 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 1045 VerifySmiField(kDebugNameOffset); |
| 1046 CHECK(context()->IsContext()); | 1046 CHECK(context()->IsContext()); |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 void JSModuleNamespace::JSModuleNamespaceVerify() { | 1049 void JSModuleNamespace::JSModuleNamespaceVerify() { |
| 1050 CHECK(IsJSModuleNamespace()); | 1050 CHECK(IsJSModuleNamespace()); |
| 1051 VerifyPointer(module()); | 1051 VerifyPointer(module()); |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 void ModuleInfoEntry::ModuleInfoEntryVerify() { | 1054 void ModuleInfoEntry::ModuleInfoEntryVerify() { |
| 1055 Isolate* isolate = GetIsolate(); | 1055 Isolate* isolate = GetIsolate(); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 | 1544 |
| 1545 // Both are done at the same time. | 1545 // Both are done at the same time. |
| 1546 CHECK_EQ(new_it.done(), old_it.done()); | 1546 CHECK_EQ(new_it.done(), old_it.done()); |
| 1547 } | 1547 } |
| 1548 | 1548 |
| 1549 | 1549 |
| 1550 #endif // DEBUG | 1550 #endif // DEBUG |
| 1551 | 1551 |
| 1552 } // namespace internal | 1552 } // namespace internal |
| 1553 } // namespace v8 | 1553 } // namespace v8 |
| OLD | NEW |