Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index c64c0e0462b081c5c59bd4b65c9c0afb76ee6fae..078c38b2dc80cfdb3340a3a44b55878a42844fd5 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4925,7 +4925,7 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { |
Handle<GlobalObject> global(current_info()->global_object()); |
Handle<PropertyCell> cell(global->GetPropertyCell(&lookup)); |
if (cell->type()->IsConstant()) { |
- cell->AddDependentCompilationInfo(top_info()); |
+ PropertyCell::AddDependentCompilationInfo(cell, top_info()); |
Handle<Object> constant_object = cell->type()->AsConstant(); |
if (constant_object->IsConsString()) { |
constant_object = |
@@ -5552,11 +5552,12 @@ void HOptimizedGraphBuilder::PropertyAccessInfo::LoadFieldMap(Handle<Map> map) { |
Handle<Map> field_map = field_type->AsClass(); |
if (field_map->is_stable()) { |
field_map_ = field_map; |
- field_map_->AddDependentCompilationInfo( |
- DependentCode::kPrototypeCheckGroup, top_info()); |
+ Map::AddDependentCompilationInfo( |
+ field_map_, DependentCode::kPrototypeCheckGroup, top_info()); |
// Add dependency on the map that introduced the field. |
- lookup_.GetFieldOwnerFromMap(*map)->AddDependentCompilationInfo( |
+ Map::AddDependentCompilationInfo( |
+ handle(lookup_.GetFieldOwnerFromMap(*map), isolate()), |
DependentCode::kFieldTypeGroup, top_info()); |
} |
} |
@@ -6828,7 +6829,8 @@ HInstruction* HGraphBuilder::BuildConstantMapCheck(Handle<JSObject> constant, |
HConstant* constant_value = New<HConstant>(constant); |
if (constant->map()->CanOmitMapChecks()) { |
- constant->map()->AddDependentCompilationInfo( |
+ Map::AddDependentCompilationInfo( |
+ handle(constant->map(), info->isolate()), |
Igor Sheludko
2014/04/15 08:58:35
Suggestion: below we are also wrapping the map to
Benedikt Meurer
2014/04/15 10:15:02
Done.
|
DependentCode::kPrototypeCheckGroup, info); |
return constant_value; |
} |