| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "disassembler.h" | 7 #include "disassembler.h" |
| 8 #include "disasm.h" | 8 #include "disasm.h" |
| 9 #include "jsregexp.h" | 9 #include "jsregexp.h" |
| 10 #include "macro-assembler.h" | 10 #include "macro-assembler.h" |
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 get(i)->ObjectVerify(); | 1008 get(i)->ObjectVerify(); |
| 1009 } | 1009 } |
| 1010 } | 1010 } |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 | 1013 |
| 1014 void NormalizedMapCache::NormalizedMapCacheVerify() { | 1014 void NormalizedMapCache::NormalizedMapCacheVerify() { |
| 1015 FixedArray::cast(this)->FixedArrayVerify(); | 1015 FixedArray::cast(this)->FixedArrayVerify(); |
| 1016 if (FLAG_enable_slow_asserts) { | 1016 if (FLAG_enable_slow_asserts) { |
| 1017 for (int i = 0; i < length(); i++) { | 1017 for (int i = 0; i < length(); i++) { |
| 1018 Object* e = get(i); | 1018 Object* e = FixedArray::get(i); |
| 1019 if (e->IsMap()) { | 1019 if (e->IsMap()) { |
| 1020 Map::cast(e)->SharedMapVerify(); | 1020 Map::cast(e)->SharedMapVerify(); |
| 1021 } else { | 1021 } else { |
| 1022 CHECK(e->IsUndefined()); | 1022 CHECK(e->IsUndefined()); |
| 1023 } | 1023 } |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 | 1028 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 for (int i = 0; i < number_of_transitions(); ++i) { | 1195 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1196 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1196 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1197 } | 1197 } |
| 1198 return true; | 1198 return true; |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 | 1201 |
| 1202 #endif // DEBUG | 1202 #endif // DEBUG |
| 1203 | 1203 |
| 1204 } } // namespace v8::internal | 1204 } } // namespace v8::internal |
| OLD | NEW |