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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 12529008: Collect type feedback for fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
Index: runtime/vm/flow_graph_compiler_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index 079f3d19d31b2f5cc2750b893c543e4205b306ec..b1d509aaaf703da80266b3e6947d74722f5c7a26 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -627,6 +627,12 @@ void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
assert->deopt_id(),
assert->token_pos());
}
+ if (instr->IsStoreInstanceField()) {
+ StoreInstanceFieldInstr* store = instr->AsStoreInstanceField();
+ AddCurrentDescriptor(PcDescriptors::kDeoptBefore,
+ store->deopt_id(),
+ Scanner::kDummyTokenIndex);
+ }
AllocateRegistersLocally(instr);
}
}

Powered by Google App Engine
This is Rietveld 408576698