| 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 11991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12002 } | 12002 } |
| 12003 } | 12003 } |
| 12004 code.set_comments(assembler->GetCodeComments()); | 12004 code.set_comments(assembler->GetCodeComments()); |
| 12005 return code.raw(); | 12005 return code.raw(); |
| 12006 } | 12006 } |
| 12007 | 12007 |
| 12008 | 12008 |
| 12009 RawCode* Code::FinalizeCode(const Function& function, | 12009 RawCode* Code::FinalizeCode(const Function& function, |
| 12010 Assembler* assembler, | 12010 Assembler* assembler, |
| 12011 bool optimized) { | 12011 bool optimized) { |
| 12012 // Calling ToFullyQualifiedCString is very expensive, try to avoid it. | 12012 // Calling ToQualifiedCString is very expensive, try to avoid it. |
| 12013 if (CodeObservers::AreActive()) { | 12013 if (CodeObservers::AreActive()) { |
| 12014 return FinalizeCode(function.ToFullyQualifiedCString(), | 12014 return FinalizeCode(function.ToQualifiedCString(), |
| 12015 assembler, | 12015 assembler, |
| 12016 optimized); | 12016 optimized); |
| 12017 } else { | 12017 } else { |
| 12018 return FinalizeCode("", assembler); | 12018 return FinalizeCode("", assembler); |
| 12019 } | 12019 } |
| 12020 } | 12020 } |
| 12021 | 12021 |
| 12022 | 12022 |
| 12023 // Check if object matches find condition. | 12023 // Check if object matches find condition. |
| 12024 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) const { | 12024 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) const { |
| (...skipping 7448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19473 return tag_label.ToCString(); | 19473 return tag_label.ToCString(); |
| 19474 } | 19474 } |
| 19475 | 19475 |
| 19476 | 19476 |
| 19477 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19477 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19478 Instance::PrintJSONImpl(stream, ref); | 19478 Instance::PrintJSONImpl(stream, ref); |
| 19479 } | 19479 } |
| 19480 | 19480 |
| 19481 | 19481 |
| 19482 } // namespace dart | 19482 } // namespace dart |
| OLD | NEW |