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

Unified Diff: runtime/vm/intrinsifier.cc

Issue 10990083: Reapply change to hide VM-only List implementation classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart:io perf regression. Created 8 years, 3 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/intrinsifier.h ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 27e83f7415bede22723ca6cbc421de3fe75a8207..128d13115eb6d3a5d17284656ff44fb1c77964b5 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -52,6 +52,16 @@ static bool TestFunction(const Function& function,
const char* function_name,
const char* test_class_name,
const char* test_function_name) {
+ // If test_function_name starts with a '.' we use that to indicate
+ // that it is a named constructor in the class. Therefore, if
+ // the class matches and the rest of the method name starting with
+ // the dot matches, we have found a match.
+ if (test_function_name[0] == '.') {
+ function_name = strstr(function_name, ".");
+ if (function_name == NULL) {
+ return false;
+ }
+ }
return CompareNames(test_class_name, function_class_name) &&
CompareNames(test_function_name, function_name);
}
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698