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

Unified Diff: runtime/vm/intermediate_language_ia32.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_ia32.cc
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc
index 741ff0d5b3ae1a1a197e42779c3bf8148156a629..ce5661bc7a997abf18947a2610dd590e4b3249e4 100644
--- a/runtime/vm/intermediate_language_ia32.cc
+++ b/runtime/vm/intermediate_language_ia32.cc
@@ -160,16 +160,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());
}

Powered by Google App Engine
This is Rietveld 408576698