Comment #1 on issue 3341 by stephane.ducasse: use #= for integer comparison instead of #==
http://code.google.com/p/pharo/issues/detail?id=3341

<CompiledMethod>scanForEqSmallConstant
"Answer whether the receiver contains the pattern <expression> == <constant>,
    where constant is -1, 0, 1, or 2..."

    | scanner |
    scanner _ InstructionStream on: self.
^ scanner scanFor: [:instr | (instr between: 116 and: 119) and: [scanner followingByte = 198]]

"
SystemNavigation new browseAllSelect: [:m | m scanForEqSmallConstant]
"



Reply via email to