Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1164)

Unified Diff: src/isolate.h

Issue 768543002: [WIP] TrapHandler 2014/11/27. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/d8.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698