| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 5b1ae39c7dd6727cf95574968674346c4a836f88..937170f191c42c790e6347a87a948a03bee2a5b8 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -524,15 +524,10 @@ HValue* CodeStubGraphBuilder<CreateAllocationSiteStub>::BuildCodeStub() {
|
| Add<HStoreNamedField>(site_list, HObjectAccess::ForAllocationSiteList(),
|
| object);
|
|
|
| - // We use a hammer (SkipWriteBarrier()) to indicate that we know the input
|
| - // cell is really a Cell, and so no write barrier is needed.
|
| - // TODO(mvstanton): Add a debug_code check to verify the input cell is really
|
| - // a cell. (perhaps with a new instruction, HAssert).
|
| - HInstruction* cell = GetParameter(0);
|
| - HObjectAccess access = HObjectAccess::ForCellValue();
|
| - store = Add<HStoreNamedField>(cell, access, object);
|
| - store->SkipWriteBarrier();
|
| - return cell;
|
| + HInstruction* feedback_vector = GetParameter(0);
|
| + HInstruction* slot = GetParameter(1);
|
| + Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS);
|
| + return feedback_vector;
|
| }
|
|
|
|
|
|
|