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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2704623003: VM: [Kernel] Ensure we record [FieldLoadInstr]s in the ParsedFunction when using field guards (Closed)
Patch Set: Moved the AddToGuardedFields call to the LoadFieldInstr constructor Created 3 years, 10 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/jit_optimizer.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 8e251bbee1a45bc62689bff6f61a552e9b305773..d12987fae7982f10fa0cbd485b18b8f52d3299b7 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -2452,9 +2452,10 @@ const dart::Field& MayCloneField(Zone* zone, const dart::Field& field) {
Fragment FlowGraphBuilder::LoadField(const dart::Field& field) {
- LoadFieldInstr* load = new (Z) LoadFieldInstr(
- Pop(), &MayCloneField(Z, field),
- AbstractType::ZoneHandle(Z, field.type()), TokenPosition::kNoSource);
+ LoadFieldInstr* load =
+ new (Z) LoadFieldInstr(Pop(), &MayCloneField(Z, field),
+ AbstractType::ZoneHandle(Z, field.type()),
+ TokenPosition::kNoSource, parsed_function_);
Push(load);
return Fragment(load);
}
« no previous file with comments | « runtime/vm/jit_optimizer.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698