| 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 929 | 929 | 
| 930 void Module::ModuleVerify() { | 930 void Module::ModuleVerify() { | 
| 931   Isolate* isolate = GetIsolate(); | 931   Isolate* isolate = GetIsolate(); | 
| 932   CHECK(IsModule()); | 932   CHECK(IsModule()); | 
| 933   CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 933   CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 
| 934   code()->ObjectVerify(); | 934   code()->ObjectVerify(); | 
| 935   exports()->ObjectVerify(); | 935   exports()->ObjectVerify(); | 
| 936   requested_modules()->ObjectVerify(); | 936   requested_modules()->ObjectVerify(); | 
| 937   VerifySmiField(kFlagsOffset); | 937   VerifySmiField(kFlagsOffset); | 
| 938   embedder_data()->ObjectVerify(); | 938   embedder_data()->ObjectVerify(); | 
| 939   CHECK(shared()->name()->IsSymbol()); | 939   VerifySmiField(kHashOffset); | 
| 940   CHECK(module_namespace()->IsUndefined(isolate) || | 940   CHECK(module_namespace()->IsUndefined(isolate) || | 
| 941         module_namespace()->IsJSModuleNamespace()); | 941         module_namespace()->IsJSModuleNamespace()); | 
| 942   // TODO(neis): Check more. | 942   // TODO(neis): Check more. | 
| 943 } | 943 } | 
| 944 | 944 | 
| 945 void PrototypeInfo::PrototypeInfoVerify() { | 945 void PrototypeInfo::PrototypeInfoVerify() { | 
| 946   CHECK(IsPrototypeInfo()); | 946   CHECK(IsPrototypeInfo()); | 
| 947   if (prototype_users()->IsWeakFixedArray()) { | 947   if (prototype_users()->IsWeakFixedArray()) { | 
| 948     WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 948     WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 
| 949   } else { | 949   } else { | 
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1373 | 1373 | 
| 1374   // Both are done at the same time. | 1374   // Both are done at the same time. | 
| 1375   CHECK_EQ(new_it.done(), old_it.done()); | 1375   CHECK_EQ(new_it.done(), old_it.done()); | 
| 1376 } | 1376 } | 
| 1377 | 1377 | 
| 1378 | 1378 | 
| 1379 #endif  // DEBUG | 1379 #endif  // DEBUG | 
| 1380 | 1380 | 
| 1381 }  // namespace internal | 1381 }  // namespace internal | 
| 1382 }  // namespace v8 | 1382 }  // namespace v8 | 
| OLD | NEW | 
|---|