| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 | 1009 |
| 1010 | 1010 |
| 1011 void Script::ScriptVerify() { | 1011 void Script::ScriptVerify() { |
| 1012 CHECK(IsScript()); | 1012 CHECK(IsScript()); |
| 1013 VerifyPointer(source()); | 1013 VerifyPointer(source()); |
| 1014 VerifyPointer(name()); | 1014 VerifyPointer(name()); |
| 1015 VerifyPointer(wrapper()); | 1015 VerifyPointer(wrapper()); |
| 1016 VerifyPointer(line_ends()); | 1016 VerifyPointer(line_ends()); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 void StackTraceFrame::StackTraceFrameVerify() { | |
| 1020 CHECK(IsStackTraceFrame()); | |
| 1021 VerifyPointer(abstract_code()); | |
| 1022 } | |
| 1023 | 1019 |
| 1024 void NormalizedMapCache::NormalizedMapCacheVerify() { | 1020 void NormalizedMapCache::NormalizedMapCacheVerify() { |
| 1025 FixedArray::cast(this)->FixedArrayVerify(); | 1021 FixedArray::cast(this)->FixedArrayVerify(); |
| 1026 if (FLAG_enable_slow_asserts) { | 1022 if (FLAG_enable_slow_asserts) { |
| 1027 Isolate* isolate = GetIsolate(); | 1023 Isolate* isolate = GetIsolate(); |
| 1028 for (int i = 0; i < length(); i++) { | 1024 for (int i = 0; i < length(); i++) { |
| 1029 Object* e = FixedArray::get(i); | 1025 Object* e = FixedArray::get(i); |
| 1030 if (e->IsMap()) { | 1026 if (e->IsMap()) { |
| 1031 Map::cast(e)->DictionaryMapVerify(); | 1027 Map::cast(e)->DictionaryMapVerify(); |
| 1032 } else { | 1028 } else { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 | 1334 |
| 1339 // Both are done at the same time. | 1335 // Both are done at the same time. |
| 1340 CHECK_EQ(new_it.done(), old_it.done()); | 1336 CHECK_EQ(new_it.done(), old_it.done()); |
| 1341 } | 1337 } |
| 1342 | 1338 |
| 1343 | 1339 |
| 1344 #endif // DEBUG | 1340 #endif // DEBUG |
| 1345 | 1341 |
| 1346 } // namespace internal | 1342 } // namespace internal |
| 1347 } // namespace v8 | 1343 } // namespace v8 |
| OLD | NEW |