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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10894034: Make constants computations instead of values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/intermediate_language_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index 6476a7298dfd895e4929f63d32a77118e75c6f76..85aae126d65d502a26d22d7eb819325e12cfa1e2 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -169,16 +169,16 @@ void StoreLocalComp::EmitNativeCode(FlowGraphCompiler* compiler) {
}
-LocationSummary* MaterializeComp::MakeLocationSummary() const {
+LocationSummary* ConstantComp::MakeLocationSummary() const {
return LocationSummary::Make(0,
Location::RequiresRegister(),
LocationSummary::kNoCall);
}
-void MaterializeComp::EmitNativeCode(FlowGraphCompiler* compiler) {
+void ConstantComp::EmitNativeCode(FlowGraphCompiler* compiler) {
Register result = locs()->out().reg();
- __ LoadObject(result, constant_val()->value());
+ __ LoadObject(result, value());
}
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/intermediate_language_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698