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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 335443002: Setup R10/EDX to be valid Oops before stub calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/intermediate_language_ia32.cc
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc
index 71b9fb665f98a229b4cc38cd3a64392dd9f88459..c42f75ec136406c0daf9cb1c6eb1a5d85f1ea9aa 100644
--- a/runtime/vm/intermediate_language_ia32.cc
+++ b/runtime/vm/intermediate_language_ia32.cc
@@ -6296,6 +6296,19 @@ void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
__ Drop(ArgumentCount()); // Discard arguments.
}
+
+void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ ASSERT(!compiler->is_optimizing());
+ const ExternalLabel label(StubCode::DebugStepCheckEntryPoint());
+ __ movl(EDX, Immediate(0));
+ __ movl(ECX, Immediate(0));
+ compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
+#if defined(DEBUG)
+ __ movl(EDX, Immediate(kInvalidObjectPointer));
+ __ movl(EDX, Immediate(kInvalidObjectPointer));
+#endif
+}
+
} // namespace dart
#undef __

Powered by Google App Engine
This is Rietveld 408576698