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 7707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7718 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { | 7718 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { |
7719 Function& function = Function::Handle(code.function()); | 7719 Function& function = Function::Handle(code.function()); |
7720 THR_Print("Deoptimizing %s because guard on field %s failed.\n", | 7720 THR_Print("Deoptimizing %s because guard on field %s failed.\n", |
7721 function.ToFullyQualifiedCString(), field_.ToCString()); | 7721 function.ToFullyQualifiedCString(), field_.ToCString()); |
7722 } | 7722 } |
7723 } | 7723 } |
7724 | 7724 |
7725 virtual void ReportSwitchingCode(const Code& code) { | 7725 virtual void ReportSwitchingCode(const Code& code) { |
7726 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { | 7726 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { |
7727 Function& function = Function::Handle(code.function()); | 7727 Function& function = Function::Handle(code.function()); |
7728 THR_Print("Switching %s to unoptimized code because guard" | 7728 THR_Print("Switching '%s' to unoptimized code because guard" |
7729 " on field %s was violated.\n", | 7729 " on field '%s' was violated.\n", |
7730 function.ToFullyQualifiedCString(), | 7730 function.ToFullyQualifiedCString(), |
7731 field_.ToCString()); | 7731 field_.ToCString()); |
7732 } | 7732 } |
7733 } | 7733 } |
7734 | 7734 |
7735 virtual void IncrementInvalidationGen() { | 7735 virtual void IncrementInvalidationGen() { |
7736 Isolate::Current()->IncrFieldInvalidationGen(); | 7736 Isolate::Current()->IncrFieldInvalidationGen(); |
7737 } | 7737 } |
7738 | 7738 |
7739 private: | 7739 private: |
(...skipping 14256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21996 return tag_label.ToCString(); | 21996 return tag_label.ToCString(); |
21997 } | 21997 } |
21998 | 21998 |
21999 | 21999 |
22000 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 22000 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
22001 Instance::PrintJSONImpl(stream, ref); | 22001 Instance::PrintJSONImpl(stream, ref); |
22002 } | 22002 } |
22003 | 22003 |
22004 | 22004 |
22005 } // namespace dart | 22005 } // namespace dart |
OLD | NEW |