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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10416031: Convert CurrentContext and StoreContext to locations code generation scheme (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index 5fe8d27964e18d21330ddd6eab77d8ca6a9eacc0..893480127f62cae1f2e280c4b5faeeeaccfdfef0 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -46,6 +46,29 @@ static LocationSummary* MakeSimpleLocationSummary(
}
+LocationSummary* CurrentContextComp::MakeLocationSummary() {
+ return MakeSimpleLocationSummary(0, Location::RequiresRegister());
+}
+
+
+void CurrentContextComp::EmitNativeCode(FlowGraphCompiler* compiler) {
+ __ movq(locs()->out().reg(), CTX);
+}
+
+
+LocationSummary* StoreContextComp::MakeLocationSummary() {
+ LocationSummary* summary = new LocationSummary(1);
+ summary->set_in(0, Location::RegisterLocation(CTX));
+ return summary;
+}
+
+
+void StoreContextComp::EmitNativeCode(FlowGraphCompiler* compiler) {
+ // Nothing to do. Context register were loaded by register allocator.
+ ASSERT(locs()->in(0).reg() == CTX);
+}
+
+
LocationSummary* StrictCompareComp::MakeLocationSummary() {
return MakeSimpleLocationSummary(2, Location::SameAsFirstInput());
}
« runtime/vm/intermediate_language_ia32.cc ('K') | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698