Commit 15f80e8f authored by Stephan Hartmann's avatar Stephan Hartmann Committed by V8 LUCI CQ

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/+/3492523Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#79302}
parent 84f14bde
......@@ -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:
......
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