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

Unified Diff: runtime/vm/flow_graph_compiler.h

Issue 10823308: Implement basic support for deferred slow path code with calls that save and restore live registers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Kevin's comments 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
Index: runtime/vm/flow_graph_compiler.h
diff --git a/runtime/vm/flow_graph_compiler.h b/runtime/vm/flow_graph_compiler.h
index d14f482e50f82f1b8082c71561ae9b7811aeb84b..67111ca13729af4e7cb81e22ce449e96393f7821 100644
--- a/runtime/vm/flow_graph_compiler.h
+++ b/runtime/vm/flow_graph_compiler.h
@@ -172,6 +172,24 @@ class DeoptimizationStub : public ZoneAllocated {
DISALLOW_COPY_AND_ASSIGN(DeoptimizationStub);
};
+
+class SlowPathCode : public ZoneAllocated {
+ public:
+ SlowPathCode() : entry_label_(), exit_label_() { }
+
+ Label* entry_label() { return &entry_label_; }
+ Label* exit_label() { return &exit_label_; }
+
+ virtual void EmitNativeCode(FlowGraphCompiler* compiler) = 0;
+
+ private:
+ Label entry_label_;
+ Label exit_label_;
+
+ DISALLOW_COPY_AND_ASSIGN(SlowPathCode);
+};
+
+
} // namespace dart
#if defined(TARGET_ARCH_IA32)

Powered by Google App Engine
This is Rietveld 408576698