libstdc++: add allocator for iterator type in maglev::Graph
Otherwise std::allocator is used and there is no conversion. Bug: chromium:819294 Change-Id: Ic93e75a3facef96dc901dda29a6be3b4539b68e7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3492523 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Stephan Hartmann <stha09@googlemail.com> Cr-Commit-Position: refs/heads/main@{#79302}
This commit is contained in:
parent
84f14bdeab
commit
15f80e8f91
@ -8,14 +8,17 @@
|
||||
#include <vector>
|
||||
|
||||
#include "src/maglev/maglev-basic-block.h"
|
||||
#include "src/zone/zone-allocator.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
namespace maglev {
|
||||
|
||||
using BlockConstIterator = std::vector<BasicBlock*>::const_iterator;
|
||||
using BlockConstIterator =
|
||||
std::vector<BasicBlock*, ZoneAllocator<BasicBlock*>>::const_iterator;
|
||||
using BlockConstReverseIterator =
|
||||
std::vector<BasicBlock*>::const_reverse_iterator;
|
||||
std::vector<BasicBlock*,
|
||||
ZoneAllocator<BasicBlock*>>::const_reverse_iterator;
|
||||
|
||||
class Graph {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user