Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
| index 17c53c0f1f027e8c8b16046eb821f7c143247933..774a0f4cb495184016c0ed363fd9c0e9bcc8a7ab 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
| @@ -1945,6 +1945,11 @@ class JavaScriptBackend extends Backend { |
| element, "@NoSideEffects() should always be combined with @NoInline"); |
| } |
| } |
| + |
| + CodeBuffer codeOf(FunctionElement functionElement) { |
| + if (!generatedCode.containsKey(functionElement)) return null; |
|
kasperl
2013/11/29 12:03:13
Use ?:.
sigurdm
2013/12/02 14:09:50
Done.
|
| + return jsAst.prettyPrint(generatedCode[functionElement], compiler); |
| + } |
| } |
| /// Records that [constant] is used by [user.element]. |