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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 CHECK(resolve()->IsJSFunction()); | 1040 CHECK(resolve()->IsJSFunction()); |
1041 CHECK(reject()->IsJSFunction()); | 1041 CHECK(reject()->IsJSFunction()); |
1042 VerifySmiField(kDebugIdOffset); | 1042 VerifySmiField(kDebugIdOffset); |
1043 VerifySmiField(kDebugNameOffset); | 1043 VerifySmiField(kDebugNameOffset); |
1044 CHECK(context()->IsContext()); | 1044 CHECK(context()->IsContext()); |
1045 } | 1045 } |
1046 | 1046 |
1047 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 1047 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
1048 Isolate* isolate = GetIsolate(); | 1048 Isolate* isolate = GetIsolate(); |
1049 CHECK(IsPromiseReactionJobInfo()); | 1049 CHECK(IsPromiseReactionJobInfo()); |
1050 CHECK(promise()->IsJSPromise()); | |
1051 CHECK(value()->IsObject()); | 1050 CHECK(value()->IsObject()); |
1052 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); | 1051 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); |
1053 CHECK(deferred_promise()->IsUndefined(isolate) || | 1052 CHECK(deferred_promise()->IsUndefined(isolate) || |
1054 deferred_promise()->IsJSReceiver() || | 1053 deferred_promise()->IsJSReceiver() || |
1055 deferred_promise()->IsFixedArray()); | 1054 deferred_promise()->IsFixedArray()); |
1056 CHECK(deferred_on_resolve()->IsUndefined(isolate) || | 1055 CHECK(deferred_on_resolve()->IsUndefined(isolate) || |
1057 deferred_on_resolve()->IsCallable() || | 1056 deferred_on_resolve()->IsCallable() || |
1058 deferred_on_resolve()->IsFixedArray()); | 1057 deferred_on_resolve()->IsFixedArray()); |
1059 CHECK(deferred_on_reject()->IsUndefined(isolate) || | 1058 CHECK(deferred_on_reject()->IsUndefined(isolate) || |
1060 deferred_on_reject()->IsCallable() || | 1059 deferred_on_reject()->IsCallable() || |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 | 1561 |
1563 // Both are done at the same time. | 1562 // Both are done at the same time. |
1564 CHECK_EQ(new_it.done(), old_it.done()); | 1563 CHECK_EQ(new_it.done(), old_it.done()); |
1565 } | 1564 } |
1566 | 1565 |
1567 | 1566 |
1568 #endif // DEBUG | 1567 #endif // DEBUG |
1569 | 1568 |
1570 } // namespace internal | 1569 } // namespace internal |
1571 } // namespace v8 | 1570 } // namespace v8 |
OLD | NEW |