Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 1a8944995d32d419213214de5ce977c326a6205f..ef55357163924af08705b59366101e4747069b46 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -880,6 +880,10 @@ class CodeRange { |
DCHECK(valid()); |
return static_cast<Address>(code_range_->address()); |
} |
+ size_t size() { |
+ DCHECK(valid()); |
+ return code_range_->size(); |
+ } |
bool contains(Address address) { |
if (!valid()) return false; |
Address start = static_cast<Address>(code_range_->address()); |