| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index bd7163a2f1da676ad36bed0d8b24bd53e79e1887..5c203f46ee7e497bf560f0c06e2b17c845120dff 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -43,7 +43,8 @@ namespace internal {
|
| // StubCache implementation.
|
|
|
|
|
| -StubCache::StubCache(Isolate* isolate) : isolate_(isolate) {
|
| +StubCache::StubCache(Isolate* isolate, Zone* zone)
|
| + : isolate_(isolate), zone_(zone) {
|
| ASSERT(isolate == Isolate::Current());
|
| }
|
|
|
| @@ -901,7 +902,7 @@ void StubCache::CollectMatchingMaps(SmallMapList* types,
|
| int offset = PrimaryOffset(name, flags, map);
|
| if (entry(primary_, offset) == &primary_[i] &&
|
| !TypeFeedbackOracle::CanRetainOtherContext(map, *global_context)) {
|
| - types->Add(Handle<Map>(map));
|
| + types->Add(Handle<Map>(map), zone());
|
| }
|
| }
|
| }
|
| @@ -925,7 +926,7 @@ void StubCache::CollectMatchingMaps(SmallMapList* types,
|
| int offset = SecondaryOffset(name, flags, primary_offset);
|
| if (entry(secondary_, offset) == &secondary_[i] &&
|
| !TypeFeedbackOracle::CanRetainOtherContext(map, *global_context)) {
|
| - types->Add(Handle<Map>(map));
|
| + types->Add(Handle<Map>(map), zone());
|
| }
|
| }
|
| }
|
|
|