Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 7c29a344f1faa45140d865afe047c905fb742590..471144a42e105b467d16960ffbd5c4f4f91f53f7 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -7253,7 +7253,8 @@ bool Isolate::GetHeapSpaceStatistics(HeapSpaceStatistics* space_statistics, |
| size_t index) { |
| if (!space_statistics) |
| return false; |
| - if (index > i::LAST_SPACE || index < i::FIRST_SPACE) |
| + COMPILE_ASSERT(i::FIRST_SPACE == 0, first_space_assumed_to_be_zero); |
|
Sven Panne
2015/06/09 06:44:46
Sorry for chiming in so late, but IMHO this is sti
sejunho
2015/06/09 08:22:27
Thank you for comment sven.
First, I fixed like th
sejunho
2015/06/10 03:17:26
Done.
|
| + if (index > i::LAST_SPACE) |
| return false; |
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |