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

Unified Diff: runtime/vm/object.cc

Issue 14012005: Implement rethrow statement (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 21305)
+++ runtime/vm/object.cc (working copy)
@@ -4461,14 +4461,22 @@
}
-bool Function::CheckSourceFingerprint(intptr_t fp) const {
+bool Function::CheckSourceFingerprint(int32_t fp) const {
if (SourceFingerprint() != fp) {
- OS::Print("FP mismatch while recognizing method %s:"
- " expecting %"Pd" found %d\n",
- ToFullyQualifiedCString(),
- fp,
- SourceFingerprint());
- return false;
+ const bool recalculatingFingerprints = false;
+ if (recalculatingFingerprints) {
+ // This output can be copied into a file, then used with sed
+ // to replace the old values.
+ // sed -i .bak -f /tmp/newkeys runtime/vm/intrinsifier.h
+ OS::Print("s/%d/%d/\n", fp, SourceFingerprint());
+ } else {
+ OS::Print("FP mismatch while recognizing method %s:"
+ " expecting %d found %d\n",
+ ToFullyQualifiedCString(),
+ fp,
+ SourceFingerprint());
+ return false;
+ }
}
return true;
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698