diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-04-10 20:53:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-10 20:53:38 -0700 |
commit | 5bc1e42710434cbc6c62a4ed1deb16aa9ecd92f5 (patch) | |
tree | 3f7da7093dffbbecdfd37b197d0863f8b258c847 /src/jit/compiler.h | |
parent | cdde90945fe82715a4f58f090925a0ca78db11e6 (diff) | |
download | coreclr-5bc1e42710434cbc6c62a4ed1deb16aa9ecd92f5.tar.gz coreclr-5bc1e42710434cbc6c62a4ed1deb16aa9ecd92f5.tar.bz2 coreclr-5bc1e42710434cbc6c62a4ed1deb16aa9ecd92f5.zip |
Do not spill eeStack after ldtoken opcode. (#10215)
Do not spill eeStack if the last opcode was ldtoken.
Diffstat (limited to 'src/jit/compiler.h')
-rw-r--r-- | src/jit/compiler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h index 482ad496fa..832ed031d8 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -3137,6 +3137,11 @@ private: //---------------- Spilling the importer stack ---------------------------- + // The maximum number of bytes of IL processed without clean stack state. + // It allows to limit the maximum tree size and depth. + static const unsigned MAX_TREE_SIZE = 200; + bool impCanSpillNow(OPCODE prevOpcode); + struct PendingDsc { PendingDsc* pdNext; |