Skip to content

Commit

Permalink
Target register goes with deopt point
Browse files Browse the repository at this point in the history
Since we might have to materialize *one* object, but put it into *many*
registers during deopt, for example because of aliasing.
  • Loading branch information
jnthn committed Nov 23, 2018
1 parent 913504d commit 6e28e17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spesh/pea.h
Expand Up @@ -48,9 +48,6 @@ struct MVMSpeshPEAMaterializeInfo {
/* The spesh slot containing the STable of the object to materialize. */
MVMuint16 stable_sslot;

/* The register to materialize into. */
MVMuint16 target_reg;

/* A list of the registers holding the attributes to put into the
* materialized object. */
MVMuint16 *attr_regs;
Expand All @@ -64,7 +61,10 @@ struct MVMSpeshPEADeoptPoint {

/* The index into the materialize_info specifying how to materialize
* this object. */
MVMuint32 materialize_info_idx;
MVMuint16 materialize_info_idx;

/* The register to put the materialized object into. */
MVMuint16 target_reg;
};

void MVM_spesh_pea(MVMThreadContext *tc, MVMSpeshGraph *g);
Expand Down

0 comments on commit 6e28e17

Please sign in to comment.