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

Unified Diff: runtime/vm/object.h

Issue 3003583002: [VM, Precompiler] PoC Obfuscator (Closed)
Patch Set: address comments and fix stuff 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 55fdbb5a52e0332cab9c177a20f5d411c1e2351e..cea67f9cb181d7ea786b782b367c59e17f713382 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4047,6 +4047,11 @@ class Library : public Object {
static RawLibrary* New();
+ // These methods are only used by the Precompiler to obfuscate
+ // the name and url.
+ void set_name(const String& name) const;
+ void set_url(const String& url) const;
+
void set_num_imports(intptr_t value) const;
bool HasExports() const;
RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; }
@@ -5660,6 +5665,7 @@ class Instance : public Object {
friend class InstanceDeserializationCluster;
friend class ClassDeserializationCluster; // vtable
friend class InstanceMorpher;
+ friend class Obfuscator; // RawGetFieldAtOffset, RawSetFieldAtOffset
};
class LibraryPrefix : public Instance {

Powered by Google App Engine
This is Rietveld 408576698