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

Unified Diff: src/ia32/lithium-codegen-ia32.cc

Issue 6794052: Combine the incremental-marking write barrier and the remembered-set... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/ia32/lithium-codegen-ia32.cc
===================================================================
--- src/ia32/lithium-codegen-ia32.cc (revision 7494)
+++ src/ia32/lithium-codegen-ia32.cc (working copy)
@@ -2033,7 +2033,7 @@
void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
Register object = ToRegister(instr->temp1());
- Register scratch = ToRegister(instr->temp2());
+ Register address = ToRegister(instr->temp2());
Register value = ToRegister(instr->InputAt(0));
Handle<JSGlobalPropertyCell> cell_handle(instr->hydrogen()->cell());
@@ -2048,15 +2048,12 @@
// Store the value.
__ mov(object, Immediate(cell_handle));
- __ mov(FieldOperand(object, JSGlobalPropertyCell::kValueOffset), value);
+ __ lea(address, FieldOperand(object, JSGlobalPropertyCell::kValueOffset));
+ __ mov(Operand(address, 0), value);
- __ IncrementalMarkingRecordWrite(object,
- value,
- scratch,
- INLINE_SMI_CHECK,
- DESTROY_OBJECT,
- DESTROY_VALUE,
- DESTROY_SCRATCH);
+
+ // Cells are always in the remembered set.
+ __ RecordWrite(object, address, value, OMIT_REMEMBERED_SET, kSaveFPRegs);
Vyacheslav Egorov (Chromium) 2011/04/06 11:46:40 mixing two constant naming styles in a single call
Erik Corry 2011/04/06 12:31:28 Yes. Postponed.
}
@@ -2878,7 +2875,7 @@
key,
times_pointer_size,
FixedArray::kHeaderSize));
- __ RecordWrite(elements, key, value, kSaveFPRegs);
+ __ RecordWrite(elements, key, value, EMIT_REMEMBERED_SET, kSaveFPRegs);
}
}

Powered by Google App Engine
This is Rietveld 408576698