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

Side by Side Diff: src/assembler-ia32.h

Issue 12807: * Fixes and tweaks to regexp-ia32. (Closed)
Patch Set: Created 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/assembler-ia32.cc » ('j') | src/regexp-macro-assembler-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 inline explicit Immediate(int x); 182 inline explicit Immediate(int x);
183 inline explicit Immediate(const char* s); 183 inline explicit Immediate(const char* s);
184 inline explicit Immediate(const ExternalReference& ext); 184 inline explicit Immediate(const ExternalReference& ext);
185 inline explicit Immediate(Handle<Object> handle); 185 inline explicit Immediate(Handle<Object> handle);
186 inline explicit Immediate(Smi* value); 186 inline explicit Immediate(Smi* value);
187 187
188 bool is_zero() const { return x_ == 0 && rmode_ == RelocInfo::NONE; } 188 bool is_zero() const { return x_ == 0 && rmode_ == RelocInfo::NONE; }
189 bool is_int8() const { 189 bool is_int8() const {
190 return -128 <= x_ && x_ < 128 && rmode_ == RelocInfo::NONE; 190 return -128 <= x_ && x_ < 128 && rmode_ == RelocInfo::NONE;
191 } 191 }
192 bool is_int16() const {
193 return -32768 <= x_ && x_ < 32768 && rmode_ == RelocInfo::NONE;
194 }
192 195
193 private: 196 private:
194 int x_; 197 int x_;
195 RelocInfo::Mode rmode_; 198 RelocInfo::Mode rmode_;
196 199
197 friend class Assembler; 200 friend class Assembler;
198 }; 201 };
199 202
200 203
201 // ----------------------------------------------------------------------------- 204 // -----------------------------------------------------------------------------
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 void adc(Register dst, const Operand& src); 489 void adc(Register dst, const Operand& src);
487 490
488 void add(Register dst, const Operand& src); 491 void add(Register dst, const Operand& src);
489 void add(const Operand& dst, const Immediate& x); 492 void add(const Operand& dst, const Immediate& x);
490 493
491 void and_(Register dst, int32_t imm32); 494 void and_(Register dst, int32_t imm32);
492 void and_(Register dst, const Operand& src); 495 void and_(Register dst, const Operand& src);
493 void and_(const Operand& src, Register dst); 496 void and_(const Operand& src, Register dst);
494 void and_(const Operand& dst, const Immediate& x); 497 void and_(const Operand& dst, const Immediate& x);
495 498
499 void cmpb(const Operand& op, int8_t imm8);
500 void cmpw(const Operand& op, Immediate imm16);
496 void cmp(Register reg, int32_t imm32); 501 void cmp(Register reg, int32_t imm32);
497 void cmp(Register reg, Handle<Object> handle); 502 void cmp(Register reg, Handle<Object> handle);
498 void cmp(Register reg, const Operand& op); 503 void cmp(Register reg, const Operand& op);
499 void cmp(const Operand& op, const Immediate& imm); 504 void cmp(const Operand& op, const Immediate& imm);
500 505
501 void rep_cmpsb(); 506 void rep_cmpsb();
502 void rep_cmpsl(); 507 void rep_cmpsw();
503 508
504 void dec_b(Register dst); 509 void dec_b(Register dst);
505 510
506 void dec(Register dst); 511 void dec(Register dst);
507 void dec(const Operand& dst); 512 void dec(const Operand& dst);
508 513
509 void cdq(); 514 void cdq();
510 515
511 void idiv(Register src); 516 void idiv(Register src);
512 517
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 private: 820 private:
816 Assembler* assembler_; 821 Assembler* assembler_;
817 #ifdef DEBUG 822 #ifdef DEBUG
818 int space_before_; 823 int space_before_;
819 #endif 824 #endif
820 }; 825 };
821 826
822 } } // namespace v8::internal 827 } } // namespace v8::internal
823 828
824 #endif // V8_ASSEMBLER_IA32_H_ 829 #endif // V8_ASSEMBLER_IA32_H_
OLDNEW
« 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