| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index 1b0d551eff16e7ff944a5eab6c432698094280ca..1f97f4242b01283f71006add2f4bf9a32c3338ad 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -40,6 +40,11 @@ class FunctionInlineCache {
|
| final Map<FunctionElement, int> _cachedDecisions =
|
| new Map<FunctionElement, int>();
|
|
|
| + /// Returns the current cache decision. This should only be used for testing.
|
| + int getCurrentCacheDecisionForTesting(Element element) {
|
| + return _cachedDecisions[element];
|
| + }
|
| +
|
| // Returns `true`/`false` if we have a cached decision.
|
| // Returns `null` otherwise.
|
| bool canInline(FunctionElement element, {bool insideLoop}) {
|
|
|