| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index 96e044596d29a67bc71aa4c746a44b0c2180f1ac..04cd3bfa3a7339cfa1a37503ed757155de01e4c5 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -5,6 +5,9 @@
|
| #ifndef V8_ISOLATE_H_
|
| #define V8_ISOLATE_H_
|
|
|
| +#include <utility>
|
| +#include <vector>
|
| +
|
| #include "include/v8-debug.h"
|
| #include "src/allocation.h"
|
| #include "src/assert-scope.h"
|
| @@ -52,6 +55,7 @@ class ExternalCallbackScope;
|
| class ExternalReferenceTable;
|
| class Factory;
|
| class FunctionInfoListener;
|
| +struct GuardArea;
|
| class HandleScopeImplementer;
|
| class HeapProfiler;
|
| class HStatistics;
|
| @@ -1116,6 +1120,10 @@ class Isolate {
|
| int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; }
|
| #endif
|
|
|
| + void AddGuardArea(void const* address, size_t const length);
|
| + void RemoveGuardArea(void const* address, size_t const length);
|
| + bool IsInGuardArea(void const* address) const;
|
| +
|
| private:
|
| explicit Isolate(bool enable_serializer);
|
|
|
| @@ -1331,6 +1339,7 @@ class Isolate {
|
|
|
| v8::Isolate::UseCounterCallback use_counter_callback_;
|
| BasicBlockProfiler* basic_block_profiler_;
|
| + std::vector<std::pair<void const*, void const*>> guard_areas_;
|
|
|
| friend class ExecutionAccess;
|
| friend class HandleScopeImplementer;
|
|
|