Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 2d9a13f19a6bc25a74d301c9e8ce07a58a9fc79e..982e35ab475ab20c550ee48b73a354ab7c28fc83 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2514,7 +2514,7 @@ Genesis::ExtensionStates::ExtensionStates() : map_(HashMap::PointersMatch, 8) {} |
Genesis::ExtensionTraversalState Genesis::ExtensionStates::get_state( |
RegisteredExtension* extension) { |
- i::HashMap::Entry* entry = map_.Lookup(extension, Hash(extension), false); |
+ i::HashMap::Entry* entry = map_.Lookup(extension, Hash(extension)); |
if (entry == NULL) { |
return UNVISITED; |
} |
@@ -2524,7 +2524,7 @@ Genesis::ExtensionTraversalState Genesis::ExtensionStates::get_state( |
void Genesis::ExtensionStates::set_state(RegisteredExtension* extension, |
ExtensionTraversalState state) { |
- map_.Lookup(extension, Hash(extension), true)->value = |
+ map_.LookupOrInsert(extension, Hash(extension))->value = |
reinterpret_cast<void*>(static_cast<intptr_t>(state)); |
} |