summaryrefslogtreecommitdiff
path: root/src/jit/compiler.h
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2017-04-10 20:53:38 -0700
committerGitHub <noreply@github.com>2017-04-10 20:53:38 -0700
commit5bc1e42710434cbc6c62a4ed1deb16aa9ecd92f5 (patch)
tree3f7da7093dffbbecdfd37b197d0863f8b258c847 /src/jit/compiler.h
parentcdde90945fe82715a4f58f090925a0ca78db11e6 (diff)
downloadcoreclr-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.h5
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;