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

Unified Diff: runtime/vm/intrinsifier.cc

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/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 8eb5fabd52e4c6daf5d70446df3f0a0881bc37cd..2c09f7075d340ec774f522a7af2ced06321a6b17 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -88,7 +88,10 @@ void Intrinsifier::InitializeState() {
} \
func = cls.LookupFunctionAllowPrivate(str); \
} \
- ASSERT(!func.IsNull()); \
+ if (func.IsNull()) { \
+ FATAL2("Intrinsifier failed to find method %s in class %s\n", \
+ #function_name, #class_name); \
+ } \
func.set_is_intrinsic(true);
// Set up all core lib functions that can be intrinsified.

Powered by Google App Engine
This is Rietveld 408576698