Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code* Code::FindFirstCode() {
- ASSERT(is_inline_cache_stub());
- DisallowHeapAllocation no_allocation;
- int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET);
- for (RelocIterator it(this, mask); !it.done(); it.next())
- {
- RelocInfo* info = it.rinfo();
- return
- Code::GetCodeFromTargetAddress(info->target_address());
- }
- return NULL;
- }
- This suspicious code was found in Chromium project by PVS-Studio static code analyzer.
- Warning message is:
- V612 An unconditional 'return' within a loop. objects.cc 10326
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment