Ignore:
Timestamp:
Feb 19, 2013, 4:47:52 PM (12 years ago)
Author:
[email protected]
Message:

Silence some analyzer warnings
https://bugs.webkit.org/show_bug.cgi?id=110281

Reviewed by Mark Hahnenberg.

The static analyzer believes that callerCodeBlock can be null,
based on other code performing null tests. This should not
ever be the case, but we'll add RELEASE_ASSERTs to make it
obvious if we're ever wrong.

  • interpreter/Interpreter.cpp:

(JSC::getCallerInfo):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r140619 r143411  
    652652        } else
    653653    #endif
     654        {
     655            RELEASE_ASSERT(callerCodeBlock);
    654656            bytecodeOffset = callerCodeBlock->bytecodeOffset(callerFrame, callFrame->returnPC());
    655 #endif
    656     }
    657 
     657        }
     658#endif
     659    }
     660
     661    RELEASE_ASSERT(callerCodeBlock);
    658662    lineNumber = callerCodeBlock->lineNumberForBytecodeOffset(bytecodeOffset);
    659663    return callerFrame;
Note: See TracChangeset for help on using the changeset viewer.