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

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, 8 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
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 357 }
358 358
359 static Operand Cell(Handle<JSGlobalPropertyCell> cell) { 359 static Operand Cell(Handle<JSGlobalPropertyCell> cell) {
360 return Operand(reinterpret_cast<int32_t>(cell.location()), 360 return Operand(reinterpret_cast<int32_t>(cell.location()),
361 RelocInfo::GLOBAL_PROPERTY_CELL); 361 RelocInfo::GLOBAL_PROPERTY_CELL);
362 } 362 }
363 363
364 // Returns true if this Operand is a wrapper for the specified register. 364 // Returns true if this Operand is a wrapper for the specified register.
365 bool is_reg(Register reg) const; 365 bool is_reg(Register reg) const;
366 366
367 // Returns true if this Operand is a wrapper for one register.
368 bool is_reg_only() const;
369
370 // Asserts that this Operand is a wrapper for one register and returns the
371 // register.
372 Register reg() const;
373
367 private: 374 private:
368 byte buf_[6]; 375 byte buf_[6];
369 // The number of bytes in buf_. 376 // The number of bytes in buf_.
370 unsigned int len_; 377 unsigned int len_;
371 // Only valid if len_ > 4. 378 // Only valid if len_ > 4.
372 RelocInfo::Mode rmode_; 379 RelocInfo::Mode rmode_;
373 380
374 // Set the ModRM byte without an encoded 'reg' register. The 381 // Set the ModRM byte without an encoded 'reg' register. The
375 // register is encoded later as part of the emit_operand operation. 382 // register is encoded later as part of the emit_operand operation.
376 inline void set_modrm(int mod, Register rm); 383 inline void set_modrm(int mod, Register rm);
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 private: 1113 private:
1107 Assembler* assembler_; 1114 Assembler* assembler_;
1108 #ifdef DEBUG 1115 #ifdef DEBUG
1109 int space_before_; 1116 int space_before_;
1110 #endif 1117 #endif
1111 }; 1118 };
1112 1119
1113 } } // namespace v8::internal 1120 } } // namespace v8::internal
1114 1121
1115 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1122 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698