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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10917005: Add explicit class checks: LoadVMField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: removed now unused helper Created 8 years, 4 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/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 11587)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -1124,16 +1124,6 @@
void LoadVMFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) {
Register instance_reg = locs()->in(0).reg();
Register result_reg = locs()->out().reg();
- if (HasICData()) {
- ASSERT(original() != NULL);
- Label* deopt = compiler->AddDeoptStub(original()->deopt_id(),
- kDeoptInstanceGetterSameTarget);
- // Smis do not have instance fields (Smi class is always first).
- // Use 'result' as temporary register.
- ASSERT(result_reg != instance_reg);
- ASSERT(ic_data() != NULL);
- compiler->EmitClassChecksNoSmi(*ic_data(), instance_reg, result_reg, deopt);
- }
__ movq(result_reg, FieldAddress(instance_reg, offset_in_bytes()));
}
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698