| 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 void Foreign::ForeignVerify() { | 905 void Foreign::ForeignVerify() { |
| 906 CHECK(IsForeign()); | 906 CHECK(IsForeign()); |
| 907 } | 907 } |
| 908 | 908 |
| 909 | 909 |
| 910 void Box::BoxVerify() { | 910 void Box::BoxVerify() { |
| 911 CHECK(IsBox()); | 911 CHECK(IsBox()); |
| 912 value()->ObjectVerify(); | 912 value()->ObjectVerify(); |
| 913 } | 913 } |
| 914 | 914 |
| 915 void PromiseContainer::PromiseContainerVerify() { | 915 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
| 916 CHECK(IsPromiseContainer()); | 916 Isolate* isolate = GetIsolate(); |
| 917 thenable()->ObjectVerify(); | 917 CHECK(IsPromiseResolveThenableJobInfo()); |
| 918 then()->ObjectVerify(); | 918 CHECK(thenable()->IsJSReceiver()); |
| 919 resolve()->ObjectVerify(); | 919 CHECK(then()->IsJSReceiver()); |
| 920 reject()->ObjectVerify(); | 920 CHECK(resolve()->IsJSFunction()); |
| 921 before_debug_event()->ObjectVerify(); | 921 CHECK(reject()->IsJSFunction()); |
| 922 after_debug_event()->ObjectVerify(); | 922 CHECK(before_debug_event()->IsJSObject() || |
| 923 before_debug_event()->IsUndefined(isolate)); |
| 924 CHECK(after_debug_event()->IsJSObject() || |
| 925 after_debug_event()->IsUndefined(isolate)); |
| 923 } | 926 } |
| 924 | 927 |
| 925 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 928 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
| 926 Isolate* isolate = GetIsolate(); | 929 Isolate* isolate = GetIsolate(); |
| 927 CHECK(IsPromiseReactionJobInfo()); | 930 CHECK(IsPromiseReactionJobInfo()); |
| 928 CHECK(value()->IsObject()); | 931 CHECK(value()->IsObject()); |
| 929 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); | 932 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); |
| 930 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); | 933 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); |
| 931 CHECK(before_debug_event()->IsJSObject() || | 934 CHECK(before_debug_event()->IsJSObject() || |
| 932 before_debug_event()->IsUndefined(isolate)); | 935 before_debug_event()->IsUndefined(isolate)); |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 | 1388 |
| 1386 // Both are done at the same time. | 1389 // Both are done at the same time. |
| 1387 CHECK_EQ(new_it.done(), old_it.done()); | 1390 CHECK_EQ(new_it.done(), old_it.done()); |
| 1388 } | 1391 } |
| 1389 | 1392 |
| 1390 | 1393 |
| 1391 #endif // DEBUG | 1394 #endif // DEBUG |
| 1392 | 1395 |
| 1393 } // namespace internal | 1396 } // namespace internal |
| 1394 } // namespace v8 | 1397 } // namespace v8 |
| OLD | NEW |