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

Unified Diff: src/IceRegistersX8632.h

Issue 1260163003: Subzero. Removes references to %ah. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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/IceRegistersX8632.h
diff --git a/src/IceRegistersX8632.h b/src/IceRegistersX8632.h
index da920e28d9552238ed0773fcddfe82f179df15ab..e169192ae55424ab9451da44ea86f748ec31c71e 100644
--- a/src/IceRegistersX8632.h
+++ b/src/IceRegistersX8632.h
@@ -88,9 +88,7 @@ public:
}
static inline ByteRegister getEncodedByteReg(int32_t RegNum) {
- assert(RegNum == Reg_ah || (Reg_GPR_First <= RegNum && RegNum <= Reg_ebx));
- if (RegNum == Reg_ah)
- return Encoded_Reg_ah;
+ assert(Reg_GPR_First <= RegNum && RegNum <= Reg_ebx);
Jim Stichnoth 2015/07/28 15:58:23 I must have missed this before, but now that it's
John 2015/07/28 18:21:16 Nothing that a simple :%s/assert(\([^&]\+\) && \(
return ByteRegister(RegNum - Reg_GPR_First);
}

Powered by Google App Engine
This is Rietveld 408576698