OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
397 (BitCast<uint64_t>(value) == | 397 (BitCast<uint64_t>(value) == |
398 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || | 398 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || |
399 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); | 399 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); |
400 } | 400 } |
401 } | 401 } |
402 } | 402 } |
403 | 403 |
404 | 404 |
405 void ConstantPoolArray::ConstantPoolArrayVerify() { | 405 void ConstantPoolArray::ConstantPoolArrayVerify() { |
406 CHECK(IsConstantPoolArray()); | 406 CHECK(IsConstantPoolArray()); |
407 for (int i = 0; i < count_of_heap_ptr_entries(); i++) { | |
408 VerifyObjectField(OffsetOfElementAt(first_heap_ptr_index() + i)); | |
409 } | |
Michael Starzinger
2014/03/07 15:07:47
Can we also verify that all code_ptr entries point
rmcilroy
2014/03/10 14:03:05
Done.
| |
407 } | 410 } |
408 | 411 |
409 | 412 |
410 void JSGeneratorObject::JSGeneratorObjectVerify() { | 413 void JSGeneratorObject::JSGeneratorObjectVerify() { |
411 // In an expression like "new g()", there can be a point where a generator | 414 // In an expression like "new g()", there can be a point where a generator |
412 // object is allocated but its fields are all undefined, as it hasn't yet been | 415 // object is allocated but its fields are all undefined, as it hasn't yet been |
413 // initialized by the generator. Hence these weak checks. | 416 // initialized by the generator. Hence these weak checks. |
414 VerifyObjectField(kFunctionOffset); | 417 VerifyObjectField(kFunctionOffset); |
415 VerifyObjectField(kContextOffset); | 418 VerifyObjectField(kContextOffset); |
416 VerifyObjectField(kReceiverOffset); | 419 VerifyObjectField(kReceiverOffset); |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1151 for (int i = 0; i < number_of_transitions(); ++i) { | 1154 for (int i = 0; i < number_of_transitions(); ++i) { |
1152 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1155 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1153 } | 1156 } |
1154 return true; | 1157 return true; |
1155 } | 1158 } |
1156 | 1159 |
1157 | 1160 |
1158 #endif // DEBUG | 1161 #endif // DEBUG |
1159 | 1162 |
1160 } } // namespace v8::internal | 1163 } } // namespace v8::internal |
OLD | NEW |