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

Unified Diff: src/isolate.h

Issue 804603006: Regularly check hash set addresses to verify memory integrity. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months 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/heap/store-buffer.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 42a814ad729ecd7cda4bf34974ba01e0eafa5ed0..6a273c6eff297562265e46b05d7bb44056f4db1b 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1118,6 +1118,24 @@ class Isolate {
int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; }
#endif
+ void set_store_buffer_hash_set_1_address(
+ uintptr_t* store_buffer_hash_set_1_address) {
+ store_buffer_hash_set_1_address_ = store_buffer_hash_set_1_address;
+ }
+
+ uintptr_t* store_buffer_hash_set_1_address() {
+ return store_buffer_hash_set_1_address_;
+ }
+
+ void set_store_buffer_hash_set_2_address(
+ uintptr_t* store_buffer_hash_set_2_address) {
+ store_buffer_hash_set_2_address_ = store_buffer_hash_set_2_address;
+ }
+
+ uintptr_t* store_buffer_hash_set_2_address() {
+ return store_buffer_hash_set_2_address_;
+ }
+
private:
explicit Isolate(bool enable_serializer);
@@ -1270,6 +1288,9 @@ class Isolate {
unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
CallInterfaceDescriptorData* call_descriptor_data_;
base::RandomNumberGenerator* random_number_generator_;
+ // TODO(hpayer): Remove the following store buffer addresses.
+ uintptr_t* store_buffer_hash_set_1_address_;
+ uintptr_t* store_buffer_hash_set_2_address_;
// Whether the isolate has been created for snapshotting.
bool serializer_enabled_;
« no previous file with comments | « src/heap/store-buffer.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698