Skip to content

Question on call targets hint #9

@eqrion

Description

@eqrion

For SpiderMonkey, we're working towards collecting the following lattice of call target information for indirect calls:

unknown
|
monomorphic(funcIndex)
|
polymorphic(funcIndex, funcIndex, ...)
|
megamorphic

unknown means that we have no information at all. megamorphic means that we've observed so many call targets that we don't believe it's worth tracking them.

Is this possible to encode into call target hints? If a call target hint is missing for a call instruction, is that interpreted as 'unknown' or 'megamorphic'? If I'm reading it right, a call target hint with an empty call target information vector inside of it seems like it could be interpreted as 'megamorphic'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions