| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 99c4db55b749c89dbd1cb657c35bc90ebb97773c..e1e25fb3cd741f37a04be5450e7a136375cf75cd 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -733,12 +733,13 @@ Handle<Code> InternalArrayNArgumentsConstructorStub::GenerateCode() {
|
|
|
| template <>
|
| HValue* CodeStubGraphBuilder<CompareNilICStub>::BuildCodeInitializedStub() {
|
| + Isolate* isolate = graph()->isolate();
|
| CompareNilICStub* stub = casted_stub();
|
| HIfContinuation continuation;
|
| - Handle<Map> sentinel_map(graph()->isolate()->heap()->meta_map());
|
| - BuildCompareNil(GetParameter(0),
|
| - stub->GetTypes(), sentinel_map,
|
| - RelocInfo::kNoPosition, &continuation);
|
| + Handle<Map> sentinel_map(isolate->heap()->meta_map());
|
| + Handle<Type> type =
|
| + CompareNilICStub::StateToType(isolate, stub->GetState(), sentinel_map);
|
| + BuildCompareNil(GetParameter(0), type, RelocInfo::kNoPosition, &continuation);
|
| IfBuilder if_nil(this, &continuation);
|
| if_nil.Then();
|
| if (continuation.IsFalseReachable()) {
|
|
|