Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 1d437e7b4609fb2a581e53058c12b69ce92bc2b0..6bc7f6982fb798f442eb5a55da8b380ac7868d0c 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1364,8 +1364,7 @@ HValue* HGraphBuilder::BuildCopyElementsOnWrite(HValue* object, |
IfBuilder cow_checker(this); |
- cow_checker.If<HCompareMap>( |
- elements, factory->fixed_cow_array_map(), top_info()); |
+ cow_checker.If<HCompareMap>(elements, factory->fixed_cow_array_map()); |
cow_checker.Then(); |
HValue* capacity = AddLoadFixedArrayLength(elements); |
@@ -1682,7 +1681,7 @@ HValue* HGraphBuilder::BuildNumberToString(HValue* object, Type* type) { |
// Check if the object is a heap number. |
IfBuilder if_objectisnumber(this); |
HValue* objectisnumber = if_objectisnumber.If<HCompareMap>( |
- object, isolate()->factory()->heap_number_map(), top_info()); |
+ object, isolate()->factory()->heap_number_map()); |
if_objectisnumber.Then(); |
{ |
// Compute hash for heap number similar to double_get_hash(). |
@@ -5745,15 +5744,13 @@ void HOptimizedGraphBuilder::HandlePolymorphicNamedFieldAccess( |
HValue* dependency; |
if (info.type()->Is(Type::Number())) { |
Handle<Map> heap_number_map = isolate()->factory()->heap_number_map(); |
- compare = New<HCompareMap>(object, heap_number_map, top_info(), |
- if_true, if_false); |
+ compare = New<HCompareMap>(object, heap_number_map, if_true, if_false); |
dependency = smi_check; |
} else if (info.type()->Is(Type::String())) { |
compare = New<HIsStringAndBranch>(object, if_true, if_false); |
dependency = compare; |
} else { |
- compare = New<HCompareMap>(object, info.map(), top_info(), |
- if_true, if_false); |
+ compare = New<HCompareMap>(object, info.map(), if_true, if_false); |
dependency = compare; |
} |
FinishCurrentBlock(compare); |
@@ -6371,7 +6368,7 @@ HInstruction* HOptimizedGraphBuilder::TryBuildConsolidatedElementLoad( |
} |
if (!has_double_maps && !has_smi_or_object_maps) return NULL; |
- HCheckMaps* checked_object = Add<HCheckMaps>(object, maps, top_info()); |
+ HCheckMaps* checked_object = Add<HCheckMaps>(object, maps); |
// FAST_ELEMENTS is considered more general than FAST_HOLEY_SMI_ELEMENTS. |
// If we've seen both, the consolidated load must use FAST_HOLEY_ELEMENTS. |
ElementsKind consolidated_elements_kind = has_seen_holey_elements |
@@ -6469,7 +6466,7 @@ HValue* HOptimizedGraphBuilder::HandlePolymorphicElementAccess( |
HBasicBlock* this_map = graph()->CreateBasicBlock(); |
HBasicBlock* other_map = graph()->CreateBasicBlock(); |
HCompareMap* mapcompare = |
- New<HCompareMap>(object, map, top_info(), this_map, other_map); |
+ New<HCompareMap>(object, map, this_map, other_map); |
FinishCurrentBlock(mapcompare); |
set_current_block(this_map); |
@@ -6681,7 +6678,7 @@ HInstruction* HOptimizedGraphBuilder::BuildNamedAccess( |
checked_object = |
Add<HCheckInstanceType>(object, HCheckInstanceType::IS_STRING); |
} else { |
- checked_object = Add<HCheckMaps>(object, types, top_info()); |
+ checked_object = Add<HCheckMaps>(object, types); |
} |
return BuildMonomorphicAccess( |
&info, object, checked_object, value, ast_id, return_id); |
@@ -6933,13 +6930,11 @@ void HOptimizedGraphBuilder::HandlePolymorphicCallNamed( |
Handle<Map> map = info.map(); |
if (info.type()->Is(Type::Number())) { |
Handle<Map> heap_number_map = isolate()->factory()->heap_number_map(); |
- compare = New<HCompareMap>(receiver, heap_number_map, top_info(), |
- if_true, if_false); |
+ compare = New<HCompareMap>(receiver, heap_number_map, if_true, if_false); |
} else if (info.type()->Is(Type::String())) { |
compare = New<HIsStringAndBranch>(receiver, if_true, if_false); |
} else { |
- compare = New<HCompareMap>(receiver, map, top_info(), |
- if_true, if_false); |
+ compare = New<HCompareMap>(receiver, map, if_true, if_false); |
} |
FinishCurrentBlock(compare); |
@@ -7789,7 +7784,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function, |
case kCallApiFunction: |
case kCallApiMethod: |
// Need to check that none of the receiver maps could have changed. |
- Add<HCheckMaps>(receiver, receiver_maps, top_info()); |
+ Add<HCheckMaps>(receiver, receiver_maps); |
// Need to ensure the chain between receiver and api_holder is intact. |
if (holder_lookup == CallOptimization::kHolderFound) { |
AddCheckPrototypeMaps(api_holder, receiver_maps->first()); |