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

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

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 358 }
359 359
360 static Operand Cell(Handle<JSGlobalPropertyCell> cell) { 360 static Operand Cell(Handle<JSGlobalPropertyCell> cell) {
361 return Operand(reinterpret_cast<int32_t>(cell.location()), 361 return Operand(reinterpret_cast<int32_t>(cell.location()),
362 RelocInfo::GLOBAL_PROPERTY_CELL); 362 RelocInfo::GLOBAL_PROPERTY_CELL);
363 } 363 }
364 364
365 // Returns true if this Operand is a wrapper for the specified register. 365 // Returns true if this Operand is a wrapper for the specified register.
366 bool is_reg(Register reg) const; 366 bool is_reg(Register reg) const;
367 367
368 // Returns true if this Operand is a wrapper for one register.
369 bool is_reg_only() const;
370
371 // Asserts that this Operand is a wrapper for one register and returns the
372 // register.
373 Register reg() const;
374
368 private: 375 private:
369 byte buf_[6]; 376 byte buf_[6];
370 // The number of bytes in buf_. 377 // The number of bytes in buf_.
371 unsigned int len_; 378 unsigned int len_;
372 // Only valid if len_ > 4. 379 // Only valid if len_ > 4.
373 RelocInfo::Mode rmode_; 380 RelocInfo::Mode rmode_;
374 381
375 // Set the ModRM byte without an encoded 'reg' register. The 382 // Set the ModRM byte without an encoded 'reg' register. The
376 // register is encoded later as part of the emit_operand operation. 383 // register is encoded later as part of the emit_operand operation.
377 inline void set_modrm(int mod, Register rm); 384 inline void set_modrm(int mod, Register rm);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 void shld(Register dst, const Operand& src); 761 void shld(Register dst, const Operand& src);
755 762
756 void shl(Register dst, uint8_t imm8); 763 void shl(Register dst, uint8_t imm8);
757 void shl_cl(Register dst); 764 void shl_cl(Register dst);
758 765
759 void shrd(Register dst, const Operand& src); 766 void shrd(Register dst, const Operand& src);
760 767
761 void shr(Register dst, uint8_t imm8); 768 void shr(Register dst, uint8_t imm8);
762 void shr_cl(Register dst); 769 void shr_cl(Register dst);
763 770
764 void subb(const Operand& dst, int8_t imm8);
765 void subb(Register dst, const Operand& src);
766 void sub(const Operand& dst, const Immediate& x); 771 void sub(const Operand& dst, const Immediate& x);
767 void sub(Register dst, const Operand& src); 772 void sub(Register dst, const Operand& src);
768 void sub(const Operand& dst, Register src); 773 void sub(const Operand& dst, Register src);
769 774
770 void test(Register reg, const Immediate& imm); 775 void test(Register reg, const Immediate& imm);
771 void test(Register reg, const Operand& op); 776 void test(Register reg, const Operand& op);
772 void test_b(Register reg, const Operand& op); 777 void test_b(Register reg, const Operand& op);
773 void test(const Operand& op, const Immediate& imm); 778 void test(const Operand& op, const Immediate& imm);
774 void test_b(const Operand& op, uint8_t imm8); 779 void test_b(const Operand& op, uint8_t imm8);
775 780
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 private: 1125 private:
1121 Assembler* assembler_; 1126 Assembler* assembler_;
1122 #ifdef DEBUG 1127 #ifdef DEBUG
1123 int space_before_; 1128 int space_before_;
1124 #endif 1129 #endif
1125 }; 1130 };
1126 1131
1127 } } // namespace v8::internal 1132 } } // namespace v8::internal
1128 1133
1129 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1134 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698