| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/zone/zone.h" | 5 #include "src/zone/zone.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #include "src/utils.h" |
| 9 #include "src/v8.h" | 10 #include "src/v8.h" |
| 10 | 11 |
| 11 #ifdef V8_USE_ADDRESS_SANITIZER | 12 #ifdef V8_USE_ADDRESS_SANITIZER |
| 12 #include <sanitizer/asan_interface.h> | 13 #include <sanitizer/asan_interface.h> |
| 13 #endif // V8_USE_ADDRESS_SANITIZER | 14 #endif // V8_USE_ADDRESS_SANITIZER |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // size bytes + header and alignment padding) | 180 // size bytes + header and alignment padding) |
| 180 DCHECK(reinterpret_cast<uintptr_t>(position_) >= | 181 DCHECK(reinterpret_cast<uintptr_t>(position_) >= |
| 181 reinterpret_cast<uintptr_t>(result)); | 182 reinterpret_cast<uintptr_t>(result)); |
| 182 limit_ = segment->end(); | 183 limit_ = segment->end(); |
| 183 DCHECK(position_ <= limit_); | 184 DCHECK(position_ <= limit_); |
| 184 return result; | 185 return result; |
| 185 } | 186 } |
| 186 | 187 |
| 187 } // namespace internal | 188 } // namespace internal |
| 188 } // namespace v8 | 189 } // namespace v8 |
| OLD | NEW |