Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/address-region.h')
-rw-r--r--deps/v8/src/base/address-region.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/base/address-region.h b/deps/v8/src/base/address-region.h
index 9ef6160d2a7..44151606c0c 100644
--- a/deps/v8/src/base/address-region.h
+++ b/deps/v8/src/base/address-region.h
@@ -15,6 +15,14 @@ namespace base {
// Helper class representing an address region of certain size.
class AddressRegion {
public:
+ // Function object that compares the start address of two regions. Usable as
+ // compare function on std data structures and algorithms.
+ struct StartAddressLess {
+ bool operator()(base::AddressRegion a, base::AddressRegion b) const {
+ return a.begin() < b.begin();
+ }
+ };
+
using Address = uintptr_t;
AddressRegion() = default;