| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index bd3d8d2860d27a4de110b1e4ab5d4ffaa325ecec..f9b4d55dfc3f84b55349d429f6106531b7ebf4f1 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -248,7 +248,7 @@ Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode(Isolate* isolate) {
|
| GetICState(),
|
| GetExtraICState(),
|
| GetStubType(),
|
| - GetStubFlags());
|
| + GetHandlerKind());
|
| Handle<Code> new_object = factory->NewCode(
|
| desc, flags, masm.CodeObject(), NeedsImmovableCode());
|
| return new_object;
|
| @@ -530,15 +530,11 @@ 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,
|
| + INITIALIZING_STORE);
|
| + return feedback_vector;
|
| }
|
|
|
|
|
|
|