Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 6736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6747 } | 6747 } |
| 6748 | 6748 |
| 6749 | 6749 |
| 6750 bool Function::CheckSourceFingerprint(int32_t fp) const { | 6750 bool Function::CheckSourceFingerprint(int32_t fp) const { |
| 6751 if (SourceFingerprint() != fp) { | 6751 if (SourceFingerprint() != fp) { |
| 6752 const bool recalculatingFingerprints = false; | 6752 const bool recalculatingFingerprints = false; |
| 6753 if (recalculatingFingerprints) { | 6753 if (recalculatingFingerprints) { |
| 6754 // This output can be copied into a file, then used with sed | 6754 // This output can be copied into a file, then used with sed |
| 6755 // to replace the old values. | 6755 // to replace the old values. |
| 6756 // sed -i .bak -f /tmp/newkeys runtime/vm/method_recognizer.h | 6756 // sed -i .bak -f /tmp/newkeys runtime/vm/method_recognizer.h |
| 6757 // sed -i .bak -f /tmp/newkeys runtime/vm/intermediate_language.h | |
| 6758 // sed -i .bak -f /tmp/newkeys runtime/vm/flow_graph_builder.h | 6757 // sed -i .bak -f /tmp/newkeys runtime/vm/flow_graph_builder.h |
|
zra
2014/12/29 18:00:11
Unrelated to this change, but I wonder if RECOGNIZ
srdjan
2014/12/29 18:24:46
Maybe move it into method_recognizer.{h,cc}, but I
| |
| 6759 OS::Print("s/%d/%d/\n", fp, SourceFingerprint()); | 6758 OS::Print("s/%d/%d/\n", fp, SourceFingerprint()); |
| 6760 } else { | 6759 } else { |
| 6761 OS::Print("FP mismatch while recognizing method %s:" | 6760 OS::Print("FP mismatch while recognizing method %s:" |
| 6762 " expecting %d found %d\n", | 6761 " expecting %d found %d\n", |
| 6763 ToFullyQualifiedCString(), | 6762 ToFullyQualifiedCString(), |
| 6764 fp, | 6763 fp, |
| 6765 SourceFingerprint()); | 6764 SourceFingerprint()); |
| 6766 return false; | 6765 return false; |
| 6767 } | 6766 } |
| 6768 } | 6767 } |
| (...skipping 13862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 20631 return tag_label.ToCString(); | 20630 return tag_label.ToCString(); |
| 20632 } | 20631 } |
| 20633 | 20632 |
| 20634 | 20633 |
| 20635 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20634 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20636 Instance::PrintJSONImpl(stream, ref); | 20635 Instance::PrintJSONImpl(stream, ref); |
| 20637 } | 20636 } |
| 20638 | 20637 |
| 20639 | 20638 |
| 20640 } // namespace dart | 20639 } // namespace dart |
| OLD | NEW |