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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 1291543003: Revert "VM: Materialize stub pc-markers (smi 0) eagerly on deoptimization." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/deferred_objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc
index 2632261a0fb63083396aeadc3cf63592c8aff99e..d6e2568a9856fe51b78a38b57cc1319986d4f4ac 100644
--- a/runtime/vm/deopt_instructions.cc
+++ b/runtime/vm/deopt_instructions.cc
@@ -651,13 +651,7 @@ class DeoptPcMarkerInstr : public DeoptInstr {
}
void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) {
- Function& function = Function::Handle(deopt_context->zone());
- function ^= deopt_context->ObjectAt(object_table_index_);
- if (function.IsNull()) {
- // Callee's PC marker is not used (pc of Deoptimize stub). Set to 0.
- *dest_addr = Smi::RawValue(0);
- return;
- }
+ *dest_addr = Smi::RawValue(0);
deopt_context->DeferPcMarkerMaterialization(
object_table_index_, dest_addr);
}
« no previous file with comments | « runtime/vm/deferred_objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698