diff options
Diffstat (limited to 'src/jit/inline.h')
-rw-r--r-- | src/jit/inline.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/jit/inline.h b/src/jit/inline.h index 625e1ea7ed..9a5a7bcf7d 100644 --- a/src/jit/inline.h +++ b/src/jit/inline.h @@ -228,6 +228,8 @@ public: // Policy determinations virtual double determineMultiplier() = 0; + virtual bool hasNativeSizeEstimate() = 0; + virtual int determineNativeSizeEstimate() = 0; // Policy policies virtual bool propagateNeverToRuntime() const = 0; @@ -363,6 +365,18 @@ public: return inlPolicy->determineMultiplier(); } + // Is there a native size estimate? + bool hasNativeSizeEstimate() + { + return inlPolicy->hasNativeSizeEstimate(); + } + + // Determine the native size estimate for this inline + int determineNativeSizeEstimate() + { + return inlPolicy->determineNativeSizeEstimate(); + } + // Ensure details of this inlining process are appropriately // reported when the result goes out of scope. ~InlineResult() |