| 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 6846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6857 if (ref) { | 6857 if (ref) { |
| 6858 return; | 6858 return; |
| 6859 } | 6859 } |
| 6860 jsobj.AddProperty("static", is_static()); | 6860 jsobj.AddProperty("static", is_static()); |
| 6861 jsobj.AddProperty("const", is_const()); | 6861 jsobj.AddProperty("const", is_const()); |
| 6862 Code& code = Code::Handle(CurrentCode()); | 6862 Code& code = Code::Handle(CurrentCode()); |
| 6863 if (!code.IsNull()) { | 6863 if (!code.IsNull()) { |
| 6864 jsobj.AddProperty("code", code); | 6864 jsobj.AddProperty("code", code); |
| 6865 } | 6865 } |
| 6866 jsobj.AddProperty("_optimizable", is_optimizable()); | 6866 jsobj.AddProperty("_optimizable", is_optimizable()); |
| 6867 jsobj.AddProperty("_inlinable", CanBeInlined()); | 6867 jsobj.AddProperty("_inlinable", is_inlinable()); |
| 6868 code = unoptimized_code(); | 6868 code = unoptimized_code(); |
| 6869 if (!code.IsNull()) { | 6869 if (!code.IsNull()) { |
| 6870 jsobj.AddProperty("_unoptimizedCode", code); | 6870 jsobj.AddProperty("_unoptimizedCode", code); |
| 6871 } | 6871 } |
| 6872 jsobj.AddProperty("_usageCounter", usage_counter()); | 6872 jsobj.AddProperty("_usageCounter", usage_counter()); |
| 6873 jsobj.AddProperty("_optimizedCallSiteCount", optimized_call_site_count()); | 6873 jsobj.AddProperty("_optimizedCallSiteCount", optimized_call_site_count()); |
| 6874 jsobj.AddProperty("_deoptimizations", | 6874 jsobj.AddProperty("_deoptimizations", |
| 6875 static_cast<intptr_t>(deoptimization_counter())); | 6875 static_cast<intptr_t>(deoptimization_counter())); |
| 6876 | 6876 |
| 6877 const Script& script = Script::Handle(this->script()); | 6877 const Script& script = Script::Handle(this->script()); |
| (...skipping 13802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20680 return tag_label.ToCString(); | 20680 return tag_label.ToCString(); |
| 20681 } | 20681 } |
| 20682 | 20682 |
| 20683 | 20683 |
| 20684 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20684 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20685 Instance::PrintJSONImpl(stream, ref); | 20685 Instance::PrintJSONImpl(stream, ref); |
| 20686 } | 20686 } |
| 20687 | 20687 |
| 20688 | 20688 |
| 20689 } // namespace dart | 20689 } // namespace dart |
| OLD | NEW |