| 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 9788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9799 return FinalizeCode(function.ToFullyQualifiedCString(), | 9799 return FinalizeCode(function.ToFullyQualifiedCString(), |
| 9800 assembler, | 9800 assembler, |
| 9801 optimized); | 9801 optimized); |
| 9802 } else { | 9802 } else { |
| 9803 return FinalizeCode("", assembler); | 9803 return FinalizeCode("", assembler); |
| 9804 } | 9804 } |
| 9805 } | 9805 } |
| 9806 | 9806 |
| 9807 | 9807 |
| 9808 // Check if object matches find condition. | 9808 // Check if object matches find condition. |
| 9809 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) { | 9809 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) const { |
| 9810 return RawInstructions::ContainsPC(obj, pc_); | 9810 return RawInstructions::ContainsPC(obj, pc_); |
| 9811 } | 9811 } |
| 9812 | 9812 |
| 9813 | 9813 |
| 9814 RawCode* Code::LookupCode(uword pc) { | 9814 RawCode* Code::LookupCode(uword pc) { |
| 9815 Isolate* isolate = Isolate::Current(); | 9815 Isolate* isolate = Isolate::Current(); |
| 9816 NoGCScope no_gc; | 9816 NoGCScope no_gc; |
| 9817 FindRawCodeVisitor visitor(pc); | 9817 FindRawCodeVisitor visitor(pc); |
| 9818 RawInstructions* instr; | 9818 RawInstructions* instr; |
| 9819 if (isolate->heap() == NULL) { | 9819 if (isolate->heap() == NULL) { |
| (...skipping 6962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16782 return "_MirrorReference"; | 16782 return "_MirrorReference"; |
| 16783 } | 16783 } |
| 16784 | 16784 |
| 16785 | 16785 |
| 16786 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 16786 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 16787 Instance::PrintToJSONStream(stream, ref); | 16787 Instance::PrintToJSONStream(stream, ref); |
| 16788 } | 16788 } |
| 16789 | 16789 |
| 16790 | 16790 |
| 16791 } // namespace dart | 16791 } // namespace dart |
| OLD | NEW |