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

Unified Diff: runtime/vm/compiler.cc

Issue 1336363003: Set empty LocalVarDescriptors on execute-once functions (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: rmove unnecessary assertion Created 5 years, 3 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 | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 87ca181198a8e4569450492c795f6c5a8a804080..1ec0d3fa5e43bed04df77ef4b3920c2435fb0a1f 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -1339,6 +1339,8 @@ RawObject* Compiler::EvaluateStaticInitializer(const Field& field) {
false, // optimized
Isolate::kNoDeoptId);
initializer = parsed_function->function().raw();
+ Code::Handle(initializer.unoptimized_code()).set_var_descriptors(
+ Object::empty_var_descriptors());
} else {
initializer ^= field.PrecompiledInitializer();
}
@@ -1406,6 +1408,8 @@ RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) {
parsed_function,
false,
Isolate::kNoDeoptId);
+ Code::Handle(func.unoptimized_code()).set_var_descriptors(
+ Object::empty_var_descriptors());
const Object& result = PassiveObject::Handle(
DartEntry::InvokeFunction(func, Object::empty_array()));
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698