| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 11cd307451cc0017429d0ea84be0bbdc410982a5..448df1b81135599f166ddc116a1aca7e7ca35150 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -177,7 +177,7 @@ bool CodeStubGraphBuilderBase::BuildGraph() {
|
| AddInstruction(context_);
|
| start_environment->BindContext(context_);
|
|
|
| - AddSimulate(BailoutId::StubEntry());
|
| + Add<HSimulate>(BailoutId::StubEntry());
|
|
|
| NoObservableSideEffectsScope no_effects(this);
|
|
|
| @@ -360,9 +360,10 @@ HValue* CodeStubGraphBuilder<FastCloneShallowArrayStub>::BuildCodeStub() {
|
| length));
|
| }
|
|
|
| - HValue* result = environment()->Pop();
|
| checker.ElseDeopt();
|
| - return result;
|
| + checker.End();
|
| +
|
| + return environment()->Pop();
|
| }
|
|
|
|
|
| @@ -409,8 +410,11 @@ HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() {
|
| AddStore(object, access, AddLoad(boilerplate, access));
|
| }
|
|
|
| + environment()->Push(object);
|
| checker.ElseDeopt();
|
| - return object;
|
| + checker.End();
|
| +
|
| + return environment()->Pop();
|
| }
|
|
|
|
|
|
|