Chromium Code Reviews| 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 void PromiseContainer::PromiseContainerVerify() { | 915 void PromiseContainer::PromiseContainerVerify() { |
| 916 CHECK(IsPromiseContainer()); | 916 CHECK(IsPromiseContainer()); |
| 917 thenable()->ObjectVerify(); | 917 thenable()->ObjectVerify(); |
| 918 then()->ObjectVerify(); | 918 then()->ObjectVerify(); |
| 919 resolve()->ObjectVerify(); | 919 resolve()->ObjectVerify(); |
| 920 reject()->ObjectVerify(); | 920 reject()->ObjectVerify(); |
| 921 before_debug_event()->ObjectVerify(); | 921 before_debug_event()->ObjectVerify(); |
| 922 after_debug_event()->ObjectVerify(); | 922 after_debug_event()->ObjectVerify(); |
| 923 } | 923 } |
| 924 | 924 |
| 925 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { | |
| 926 CHECK(IsPromiseReactionJobInfo()); | |
| 927 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); | |
|
adamk
2016/10/12 16:18:11
Aren't there more things you could check here? Bas
gsathya
2016/10/12 20:08:53
Yeah I was curious about this too. I guess you mis
| |
| 928 } | |
| 929 | |
| 925 void JSModuleNamespace::JSModuleNamespaceVerify() { | 930 void JSModuleNamespace::JSModuleNamespaceVerify() { |
| 926 CHECK(IsJSModuleNamespace()); | 931 CHECK(IsJSModuleNamespace()); |
| 927 module()->ObjectVerify(); | 932 module()->ObjectVerify(); |
| 928 } | 933 } |
| 929 | 934 |
| 930 void Module::ModuleVerify() { | 935 void Module::ModuleVerify() { |
| 931 Isolate* isolate = GetIsolate(); | 936 Isolate* isolate = GetIsolate(); |
| 932 CHECK(IsModule()); | 937 CHECK(IsModule()); |
| 933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 938 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
| 934 code()->ObjectVerify(); | 939 code()->ObjectVerify(); |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1373 | 1378 |
| 1374 // Both are done at the same time. | 1379 // Both are done at the same time. |
| 1375 CHECK_EQ(new_it.done(), old_it.done()); | 1380 CHECK_EQ(new_it.done(), old_it.done()); |
| 1376 } | 1381 } |
| 1377 | 1382 |
| 1378 | 1383 |
| 1379 #endif // DEBUG | 1384 #endif // DEBUG |
| 1380 | 1385 |
| 1381 } // namespace internal | 1386 } // namespace internal |
| 1382 } // namespace v8 | 1387 } // namespace v8 |
| OLD | NEW |