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

Unified Diff: src/ia32/macro-assembler-ia32.cc

Issue 11695006: Cleanup RelocInfo::NONE usage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/ia32/macro-assembler-ia32.cc
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
index 7b41defabfecd86fbf47cfe8206e59f099f40591..3127bfcdb82ff1532d3b4b8a3073f85cdc19cf5d 100644
--- a/src/ia32/macro-assembler-ia32.cc
+++ b/src/ia32/macro-assembler-ia32.cc
@@ -406,7 +406,7 @@ void MacroAssembler::Set(const Operand& dst, const Immediate& x) {
bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) {
static const int kMaxImmediateBits = 17;
- if (x.rmode_ != RelocInfo::NONE) return false;
+ if (RelocInfo::IsNone(x.rmode_)) return false;
ulan 2013/01/03 12:46:22 This should be: if (!RelocInfo::IsNone(x.rmode_))
JF 2013/01/03 16:25:03 Ah yes, sorry about that! Did you also fix that on
return !is_intn(x.x_, kMaxImmediateBits);
}

Powered by Google App Engine
This is Rietveld 408576698