JIT: Use AllocObj for box allocations (dotnet/coreclr#13988)
authorAndy Ayers <andya@microsoft.com>
Fri, 15 Sep 2017 04:58:11 +0000 (21:58 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Sep 2017 04:58:11 +0000 (21:58 -0700)
commitc582296efc0eafe24c2ed30e946584cbaeca1ed6
tree7126dd1cd96ae655a0fe7f9956ab9caf70d5f116
parent9049ef28263eeb636e12627005b970c91c805c81
JIT: Use AllocObj for box allocations (dotnet/coreclr#13988)

Model box object allocations using the AllocObj tree node. Update
the box deconstruction utility to compensate.

Also set the OMF_HAS_NEWOBJ flag when we generate Box IR; this both
fixes an oversight from before and is a necessary step to trigger the
morphing of AllocObj into a helper call.

No diffs.

Closes dotnet/coreclr#13905.

Commit migrated from https://github.com/dotnet/coreclr/commit/443380c17b36344781fe3081e722e6dca09e92e8
src/coreclr/src/jit/gentree.cpp
src/coreclr/src/jit/importer.cpp