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

Unified Diff: runtime/vm/object_store.h

Issue 3003583002: [VM, Precompiler] PoC Obfuscator (Closed)
Patch Set: Fix bad refactoring in NewAtomicRename Created 3 years, 4 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 | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index e12fb5d06808755afdd8dc49a0ccd4ec82f5a5ae..92d747f0b54ce1ee52b7e9ae88dc37c5d440e2a1 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -405,6 +405,11 @@ class ObjectStore {
token_objects_map_ = value.raw();
}
+ RawArray* obfuscation_map() const { return obfuscation_map_; }
+ void set_obfuscation_map(const Array& value) {
+ obfuscation_map_ = value.raw();
+ }
+
RawGrowableObjectArray* megamorphic_cache_table() const {
return megamorphic_cache_table_;
}
@@ -584,22 +589,21 @@ class ObjectStore {
V(RawGrowableObjectArray*, megamorphic_cache_table_) \
V(RawCode*, megamorphic_miss_code_) \
V(RawFunction*, megamorphic_miss_function_) \
+ V(RawArray*, obfuscation_map_) \
// Please remember the last entry must be referred in the 'to' function below.
RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
#define DECLARE_OBJECT_STORE_FIELD(type, name) type name;
OBJECT_STORE_FIELD_LIST(DECLARE_OBJECT_STORE_FIELD)
#undef DECLARE_OBJECT_STORE_FIELD
- RawObject** to() {
- return reinterpret_cast<RawObject**>(&megamorphic_miss_function_);
- }
+ RawObject** to() { return reinterpret_cast<RawObject**>(&obfuscation_map_); }
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
case Snapshot::kFull:
return reinterpret_cast<RawObject**>(&library_load_error_table_);
case Snapshot::kFullJIT:
case Snapshot::kFullAOT:
- return to();
+ return reinterpret_cast<RawObject**>(&megamorphic_miss_function_);
case Snapshot::kScript:
case Snapshot::kMessage:
case Snapshot::kNone:
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698