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

Unified Diff: runtime/vm/object.cc

Issue 10880020: Use patching for regexp implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Real VM fix from Ivan. Created 8 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/lib/regexp_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 0f3a7f40b7915fd87bf70e6a795285195e3a55a0..4ceca8153a0812788936ba009b93e091d9a549f5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1600,7 +1600,10 @@ const char* Class::ApplyPatch(const Class& patch) const {
// Non-patched function is preserved, all patched functions are added in
// the loop below.
new_functions.Add(orig_func);
- } else if (!func.HasCompatibleParametersWith(orig_func)) {
+ } else if (!func.HasCompatibleParametersWith(orig_func) &&
+ !(func.IsFactory() && orig_func.IsConstructor() &&
+ (func.num_fixed_parameters() + 1 ==
+ orig_func.num_fixed_parameters()))) {
return FormatPatchError("mismatched parameters: %s", member_name);
}
}
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698