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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 CHECK(IsJSWeakSet()); | 880 CHECK(IsJSWeakSet()); |
881 JSObjectVerify(); | 881 JSObjectVerify(); |
882 VerifyHeapPointer(table()); | 882 VerifyHeapPointer(table()); |
883 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); | 883 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); |
884 } | 884 } |
885 | 885 |
886 void JSPromise::JSPromiseVerify() { | 886 void JSPromise::JSPromiseVerify() { |
887 CHECK(IsJSPromise()); | 887 CHECK(IsJSPromise()); |
888 JSObjectVerify(); | 888 JSObjectVerify(); |
889 Isolate* isolate = GetIsolate(); | 889 Isolate* isolate = GetIsolate(); |
| 890 VerifySmiField(kStatusOffset); |
890 CHECK(result()->IsUndefined(isolate) || result()->IsObject()); | 891 CHECK(result()->IsUndefined(isolate) || result()->IsObject()); |
891 CHECK(deferred_promise()->IsUndefined(isolate) || | 892 CHECK(deferred_promise()->IsUndefined(isolate) || |
892 deferred_promise()->IsJSReceiver() || | 893 deferred_promise()->IsJSReceiver() || |
893 deferred_promise()->IsFixedArray()); | 894 deferred_promise()->IsFixedArray()); |
894 CHECK(deferred_on_resolve()->IsUndefined(isolate) || | 895 CHECK(deferred_on_resolve()->IsUndefined(isolate) || |
895 deferred_on_resolve()->IsCallable() || | 896 deferred_on_resolve()->IsCallable() || |
896 deferred_on_resolve()->IsFixedArray()); | 897 deferred_on_resolve()->IsFixedArray()); |
897 CHECK(deferred_on_reject()->IsUndefined(isolate) || | 898 CHECK(deferred_on_reject()->IsUndefined(isolate) || |
898 deferred_on_reject()->IsCallable() || | 899 deferred_on_reject()->IsCallable() || |
899 deferred_on_reject()->IsFixedArray()); | 900 deferred_on_reject()->IsFixedArray()); |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 | 1545 |
1545 // Both are done at the same time. | 1546 // Both are done at the same time. |
1546 CHECK_EQ(new_it.done(), old_it.done()); | 1547 CHECK_EQ(new_it.done(), old_it.done()); |
1547 } | 1548 } |
1548 | 1549 |
1549 | 1550 |
1550 #endif // DEBUG | 1551 #endif // DEBUG |
1551 | 1552 |
1552 } // namespace internal | 1553 } // namespace internal |
1553 } // namespace v8 | 1554 } // namespace v8 |
OLD | NEW |