| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 void PolymorphicCodeCache::PolymorphicCodeCacheVerify() { | 362 void PolymorphicCodeCache::PolymorphicCodeCacheVerify() { |
| 363 VerifyHeapPointer(cache()); | 363 VerifyHeapPointer(cache()); |
| 364 CHECK(cache()->IsUndefined() || cache()->IsPolymorphicCodeCacheHashTable()); | 364 CHECK(cache()->IsUndefined() || cache()->IsPolymorphicCodeCacheHashTable()); |
| 365 } | 365 } |
| 366 | 366 |
| 367 | 367 |
| 368 void TypeFeedbackInfo::TypeFeedbackInfoVerify() { | 368 void TypeFeedbackInfo::TypeFeedbackInfoVerify() { |
| 369 VerifyObjectField(kStorage1Offset); | 369 VerifyObjectField(kStorage1Offset); |
| 370 VerifyObjectField(kStorage2Offset); | 370 VerifyObjectField(kStorage2Offset); |
| 371 VerifyHeapPointer(feedback_vector()); | |
| 372 } | 371 } |
| 373 | 372 |
| 374 | 373 |
| 375 void AliasedArgumentsEntry::AliasedArgumentsEntryVerify() { | 374 void AliasedArgumentsEntry::AliasedArgumentsEntryVerify() { |
| 376 VerifySmiField(kAliasedContextSlot); | 375 VerifySmiField(kAliasedContextSlot); |
| 377 } | 376 } |
| 378 | 377 |
| 379 | 378 |
| 380 void FixedArray::FixedArrayVerify() { | 379 void FixedArray::FixedArrayVerify() { |
| 381 for (int i = 0; i < length(); i++) { | 380 for (int i = 0; i < length(); i++) { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 next_function_link()->IsUndefined() || | 537 next_function_link()->IsUndefined() || |
| 539 next_function_link()->IsJSFunction()); | 538 next_function_link()->IsJSFunction()); |
| 540 } | 539 } |
| 541 | 540 |
| 542 | 541 |
| 543 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 542 void SharedFunctionInfo::SharedFunctionInfoVerify() { |
| 544 CHECK(IsSharedFunctionInfo()); | 543 CHECK(IsSharedFunctionInfo()); |
| 545 VerifyObjectField(kNameOffset); | 544 VerifyObjectField(kNameOffset); |
| 546 VerifyObjectField(kCodeOffset); | 545 VerifyObjectField(kCodeOffset); |
| 547 VerifyObjectField(kOptimizedCodeMapOffset); | 546 VerifyObjectField(kOptimizedCodeMapOffset); |
| 547 VerifyObjectField(kFeedbackVectorOffset); |
| 548 VerifyObjectField(kScopeInfoOffset); | 548 VerifyObjectField(kScopeInfoOffset); |
| 549 VerifyObjectField(kInstanceClassNameOffset); | 549 VerifyObjectField(kInstanceClassNameOffset); |
| 550 VerifyObjectField(kFunctionDataOffset); | 550 VerifyObjectField(kFunctionDataOffset); |
| 551 VerifyObjectField(kScriptOffset); | 551 VerifyObjectField(kScriptOffset); |
| 552 VerifyObjectField(kDebugInfoOffset); | 552 VerifyObjectField(kDebugInfoOffset); |
| 553 } | 553 } |
| 554 | 554 |
| 555 | 555 |
| 556 void JSGlobalProxy::JSGlobalProxyVerify() { | 556 void JSGlobalProxy::JSGlobalProxyVerify() { |
| 557 CHECK(IsJSGlobalProxy()); | 557 CHECK(IsJSGlobalProxy()); |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 for (int i = 0; i < number_of_transitions(); ++i) { | 1150 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1151 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1151 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1152 } | 1152 } |
| 1153 return true; | 1153 return true; |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 | 1156 |
| 1157 #endif // DEBUG | 1157 #endif // DEBUG |
| 1158 | 1158 |
| 1159 } } // namespace v8::internal | 1159 } } // namespace v8::internal |
| OLD | NEW |