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

Unified Diff: src/hydrogen-instructions.cc

Issue 10984057: Replace a set of Hydrogen instructions with rotate instructions on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 3 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: src/hydrogen-instructions.cc
===================================================================
--- src/hydrogen-instructions.cc (revision 12582)
+++ src/hydrogen-instructions.cc (working copy)
@@ -1615,6 +1615,20 @@
}
+Range* HRor::InferRange(Zone* zone) {
+ if (right()->IsConstant()) {
+ HConstant* c = HConstant::cast(right());
+ if (c->HasInteger32Value()) {
+ Range* result = (left()->range() != NULL)
+ ? left()->range()->Copy(zone)
+ : new(zone) Range();
Erik Corry 2012/09/27 14:45:44 Don't you have to Ror the result here?
+ return result;
+ }
+ }
+ return HValue::InferRange(zone);
+}
+
+
Range* HLoadKeyedSpecializedArrayElement::InferRange(Zone* zone) {
switch (elements_kind()) {
case EXTERNAL_PIXEL_ELEMENTS:

Powered by Google App Engine
This is Rietveld 408576698