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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 | 965 |
966 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { | 966 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
967 Isolate* isolate = GetIsolate(); | 967 Isolate* isolate = GetIsolate(); |
968 CHECK(IsPromiseResolveThenableJobInfo()); | 968 CHECK(IsPromiseResolveThenableJobInfo()); |
969 CHECK(thenable()->IsJSReceiver()); | 969 CHECK(thenable()->IsJSReceiver()); |
970 CHECK(then()->IsJSReceiver()); | 970 CHECK(then()->IsJSReceiver()); |
971 CHECK(resolve()->IsJSFunction()); | 971 CHECK(resolve()->IsJSFunction()); |
972 CHECK(reject()->IsJSFunction()); | 972 CHECK(reject()->IsJSFunction()); |
973 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 973 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
974 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 974 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
| 975 CHECK(context()->IsContext()); |
975 } | 976 } |
976 | 977 |
977 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | 978 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |
978 Isolate* isolate = GetIsolate(); | 979 Isolate* isolate = GetIsolate(); |
979 CHECK(IsPromiseReactionJobInfo()); | 980 CHECK(IsPromiseReactionJobInfo()); |
980 CHECK(value()->IsObject()); | 981 CHECK(value()->IsObject()); |
981 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); | 982 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); |
982 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); | 983 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); |
983 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); | 984 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); |
984 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); | 985 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 | 1483 |
1483 // Both are done at the same time. | 1484 // Both are done at the same time. |
1484 CHECK_EQ(new_it.done(), old_it.done()); | 1485 CHECK_EQ(new_it.done(), old_it.done()); |
1485 } | 1486 } |
1486 | 1487 |
1487 | 1488 |
1488 #endif // DEBUG | 1489 #endif // DEBUG |
1489 | 1490 |
1490 } // namespace internal | 1491 } // namespace internal |
1491 } // namespace v8 | 1492 } // namespace v8 |
OLD | NEW |