Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Unified Diff: runtime/vm/object.cc

Issue 1397713007: Drop uncompiled implicit closure functions. Only seems to happen in a few co19 tests, so this is mo… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: external Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 604b697fe5595414a13d8b3ad401b0938df40ebe..04086a1802d141a3a9e9c79c4b9a4ee57bfaa052 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6667,6 +6667,16 @@ RawFunction* Function::ImplicitClosureFunction() const {
}
+void Function::DropUncompiledImplicitClosureFunction() const {
+ if (implicit_closure_function() != Function::null()) {
+ const Function& func = Function::Handle(implicit_closure_function());
+ if (!func.HasCode()) {
+ set_data(Object::null_object());
+ }
+ }
+}
+
+
RawString* Function::UserVisibleFormalParameters() const {
// Typically 3, 5,.. elements in 'pieces', e.g.:
// '_LoadRequest', CommaSpace, '_LoadError'.
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698