Index: runtime/vm/kernel_reader.h |
diff --git a/runtime/vm/kernel_reader.h b/runtime/vm/kernel_reader.h |
index 3d20f90a6e245f7160e546bec58d5a8f7c9ac1f7..092b90d3702c9cfda1f11eaf51d54cac0a307300 100644 |
--- a/runtime/vm/kernel_reader.h |
+++ b/runtime/vm/kernel_reader.h |
@@ -34,18 +34,18 @@ template <typename KernelType, typename VmType> |
class Mapping { |
public: |
bool Lookup(KernelType* node, VmType** handle) { |
- typename MapType::iterator value = map_.find(node); |
- if (value != map_.end()) { |
- *handle = value->second; |
+ typename MapType::Pair* pair = map_.LookupPair(node); |
+ if (pair != NULL) { |
+ *handle = pair->value; |
return true; |
} |
return false; |
} |
- void Insert(KernelType* node, VmType* object) { map_[node] = object; } |
+ void Insert(KernelType* node, VmType* object) { map_.Insert(node, object); } |
private: |
- typedef typename std::map<KernelType*, VmType*> MapType; |
+ typedef MallocMap<KernelType, VmType*> MapType; |
MapType map_; |
}; |