Commit 7fda3adb authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Use hashmap instead of RB tree for ArrayBufferTracker

BUG=chromium:611688
LOG=N
R=machenbach@chromium.org

Review-Url: https://codereview.chromium.org/2098443002
Cr-Commit-Position: refs/heads/master@{#37271}
parent 1e18c55e
......@@ -5,7 +5,7 @@
#ifndef V8_HEAP_ARRAY_BUFFER_TRACKER_H_
#define V8_HEAP_ARRAY_BUFFER_TRACKER_H_
#include <map>
#include <unordered_map>
#include "src/allocation.h"
#include "src/base/platform/mutex.h"
......@@ -90,9 +90,7 @@ class LocalArrayBufferTracker {
}
private:
// TODO(mlippautz): Switch to unordered_map once it is supported on all
// platforms.
typedef std::map<Key, Value> TrackingMap;
typedef std::unordered_map<Key, Value> TrackingMap;
Heap* heap_;
TrackingMap array_buffers_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment