| 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 (instantiated() && evaluated() && code()->IsModuleInfo())); | 970 (instantiated() && evaluated() && code()->IsModuleInfo())); |
| 971 | 971 |
| 972 CHECK(module_namespace()->IsUndefined(GetIsolate()) || | 972 CHECK(module_namespace()->IsUndefined(GetIsolate()) || |
| 973 module_namespace()->IsJSModuleNamespace()); | 973 module_namespace()->IsJSModuleNamespace()); |
| 974 | 974 |
| 975 // TODO(neis): Check more. | 975 // TODO(neis): Check more. |
| 976 } | 976 } |
| 977 | 977 |
| 978 void PrototypeInfo::PrototypeInfoVerify() { | 978 void PrototypeInfo::PrototypeInfoVerify() { |
| 979 CHECK(IsPrototypeInfo()); | 979 CHECK(IsPrototypeInfo()); |
| 980 CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate())); |
| 980 if (prototype_users()->IsWeakFixedArray()) { | 981 if (prototype_users()->IsWeakFixedArray()) { |
| 981 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 982 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| 982 } else { | 983 } else { |
| 983 CHECK(prototype_users()->IsSmi()); | 984 CHECK(prototype_users()->IsSmi()); |
| 984 } | 985 } |
| 985 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); | 986 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
| 986 } | 987 } |
| 987 | 988 |
| 988 void Tuple3::Tuple3Verify() { | 989 void Tuple3::Tuple3Verify() { |
| 989 CHECK(IsTuple3()); | 990 CHECK(IsTuple3()); |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 | 1414 |
| 1414 // Both are done at the same time. | 1415 // Both are done at the same time. |
| 1415 CHECK_EQ(new_it.done(), old_it.done()); | 1416 CHECK_EQ(new_it.done(), old_it.done()); |
| 1416 } | 1417 } |
| 1417 | 1418 |
| 1418 | 1419 |
| 1419 #endif // DEBUG | 1420 #endif // DEBUG |
| 1420 | 1421 |
| 1421 } // namespace internal | 1422 } // namespace internal |
| 1422 } // namespace v8 | 1423 } // namespace v8 |
| OLD | NEW |