| 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 value()->ObjectVerify(); | 915 value()->ObjectVerify(); |
| 916 } | 916 } |
| 917 | 917 |
| 918 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { | 918 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
| 919 Isolate* isolate = GetIsolate(); | 919 Isolate* isolate = GetIsolate(); |
| 920 CHECK(IsPromiseResolveThenableJobInfo()); | 920 CHECK(IsPromiseResolveThenableJobInfo()); |
| 921 CHECK(thenable()->IsJSReceiver()); | 921 CHECK(thenable()->IsJSReceiver()); |
| 922 CHECK(then()->IsJSReceiver()); | 922 CHECK(then()->IsJSReceiver()); |
| 923 CHECK(resolve()->IsJSFunction()); | 923 CHECK(resolve()->IsJSFunction()); |
| 924 CHECK(reject()->IsJSFunction()); | 924 CHECK(reject()->IsJSFunction()); |
| 925 CHECK(before_debug_event()->IsJSObject() || | 925 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
| 926 before_debug_event()->IsUndefined(isolate)); | 926 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
| 927 CHECK(after_debug_event()->IsJSObject() || | |
| 928 after_debug_event()->IsUndefined(isolate)); | |
| 929 } | 927 } |
| 930 | 928 |
| 931 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 929 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
| 932 Isolate* isolate = GetIsolate(); | 930 Isolate* isolate = GetIsolate(); |
| 933 CHECK(IsPromiseReactionJobInfo()); | 931 CHECK(IsPromiseReactionJobInfo()); |
| 934 CHECK(value()->IsObject()); | 932 CHECK(value()->IsObject()); |
| 935 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); | 933 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); |
| 936 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); | 934 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); |
| 937 CHECK(before_debug_event()->IsJSObject() || | 935 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
| 938 before_debug_event()->IsUndefined(isolate)); | 936 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
| 939 CHECK(after_debug_event()->IsJSObject() || | |
| 940 after_debug_event()->IsUndefined(isolate)); | |
| 941 CHECK(context()->IsContext()); | 937 CHECK(context()->IsContext()); |
| 942 } | 938 } |
| 943 | 939 |
| 944 void JSModuleNamespace::JSModuleNamespaceVerify() { | 940 void JSModuleNamespace::JSModuleNamespaceVerify() { |
| 945 CHECK(IsJSModuleNamespace()); | 941 CHECK(IsJSModuleNamespace()); |
| 946 module()->ObjectVerify(); | 942 module()->ObjectVerify(); |
| 947 } | 943 } |
| 948 | 944 |
| 949 void JSFixedArrayIterator::JSFixedArrayIteratorVerify() { | 945 void JSFixedArrayIterator::JSFixedArrayIteratorVerify() { |
| 950 CHECK(IsJSFixedArrayIterator()); | 946 CHECK(IsJSFixedArrayIterator()); |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 | 1404 |
| 1409 // Both are done at the same time. | 1405 // Both are done at the same time. |
| 1410 CHECK_EQ(new_it.done(), old_it.done()); | 1406 CHECK_EQ(new_it.done(), old_it.done()); |
| 1411 } | 1407 } |
| 1412 | 1408 |
| 1413 | 1409 |
| 1414 #endif // DEBUG | 1410 #endif // DEBUG |
| 1415 | 1411 |
| 1416 } // namespace internal | 1412 } // namespace internal |
| 1417 } // namespace v8 | 1413 } // namespace v8 |
| OLD | NEW |