| Index: src/lithium.cc
|
| diff --git a/src/lithium.cc b/src/lithium.cc
|
| index 74da8a3074c8a784eae5c9b80ed54bd5bce7a451..c6d64135c32d8d513753d2980ecbce1fccb83cb1 100644
|
| --- a/src/lithium.cc
|
| +++ b/src/lithium.cc
|
| @@ -238,6 +238,7 @@ LChunk::LChunk(CompilationInfo* info, HGraph* graph)
|
| instructions_(32, graph->zone()),
|
| pointer_maps_(8, graph->zone()),
|
| inlined_closures_(1, graph->zone()),
|
| + deprecation_dependencies_(MapLess(), MapAllocator(graph->zone())),
|
| stability_dependencies_(MapLess(), MapAllocator(graph->zone())) {
|
| }
|
|
|
| @@ -378,6 +379,14 @@ Representation LChunk::LookupLiteralRepresentation(
|
|
|
|
|
| void LChunk::CommitDependencies(Handle<Code> code) const {
|
| + for (MapSet::const_iterator it = deprecation_dependencies_.begin(),
|
| + iend = deprecation_dependencies_.end(); it != iend; ++it) {
|
| + Handle<Map> map = *it;
|
| + ASSERT(!map->is_deprecated());
|
| + ASSERT(map->CanBeDeprecated());
|
| + Map::AddDependentCode(map, DependentCode::kTransitionGroup, code);
|
| + }
|
| +
|
| for (MapSet::const_iterator it = stability_dependencies_.begin(),
|
| iend = stability_dependencies_.end(); it != iend; ++it) {
|
| Handle<Map> map = *it;
|
|
|