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/assembler-ia32.h

Issue 12807: * Fixes and tweaks to regexp-ia32. (Closed)
Patch Set: Created 12 years, 1 month 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
« no previous file with comments | « no previous file | src/assembler-ia32.cc » ('j') | src/regexp-macro-assembler-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler-ia32.h
diff --git a/src/assembler-ia32.h b/src/assembler-ia32.h
index 8e330d181cf720628fad2decce78128a75887814..17c6b82d600fd41258127426b4d21c9eb1364eb4 100644
--- a/src/assembler-ia32.h
+++ b/src/assembler-ia32.h
@@ -189,6 +189,9 @@ class Immediate BASE_EMBEDDED {
bool is_int8() const {
return -128 <= x_ && x_ < 128 && rmode_ == RelocInfo::NONE;
}
+ bool is_int16() const {
+ return -32768 <= x_ && x_ < 32768 && rmode_ == RelocInfo::NONE;
+ }
private:
int x_;
@@ -493,13 +496,15 @@ class Assembler : public Malloced {
void and_(const Operand& src, Register dst);
void and_(const Operand& dst, const Immediate& x);
+ void cmpb(const Operand& op, int8_t imm8);
+ void cmpw(const Operand& op, Immediate imm16);
void cmp(Register reg, int32_t imm32);
void cmp(Register reg, Handle<Object> handle);
void cmp(Register reg, const Operand& op);
void cmp(const Operand& op, const Immediate& imm);
void rep_cmpsb();
- void rep_cmpsl();
+ void rep_cmpsw();
void dec_b(Register dst);
« no previous file with comments | « no previous file | src/assembler-ia32.cc » ('j') | src/regexp-macro-assembler-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698