Skip to content

Commit

Permalink
llvm tier: reduce scratch size
Browse files Browse the repository at this point in the history
With the new frame introspection we don't need to save additional space for spilling vars which live in regs (except for deopts).
And for deopts we will never need more scratch than the one required for spilling the args.
  • Loading branch information
undingen committed Jan 25, 2016
1 parent 02bd71a commit cc9c6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/patchpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct PatchpointInfo {
const std::vector<FrameVarInfo>& getFrameVars() { return frame_vars; }

int scratchStackmapArg() { return 0; }
int scratchSize() { return 80 + MAX_FRAME_SPILLS * sizeof(void*); }
int scratchSize() { return isDeopt() ? MAX_FRAME_SPILLS * sizeof(void*) : 96; }
bool isDeopt() const { return icinfo ? icinfo->isDeopt() : false; }
bool isFrameInfoStackmap() const { return is_frame_info_stackmap; }
int numFrameSpillsSupported() const { return isDeopt() ? MAX_FRAME_SPILLS : 0; }
Expand Down

0 comments on commit cc9c6ee

Please sign in to comment.