OLD | NEW |
1 // Copyright (c) 2011, 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/debuginfo.h" | 5 #include "vm/debuginfo.h" |
6 | 6 |
| 7 |
7 namespace dart { | 8 namespace dart { |
8 | 9 |
9 DebugInfo::DebugInfo() { | 10 DebugInfo::DebugInfo() { |
10 handle_ = NULL; | 11 handle_ = NULL; |
11 } | 12 } |
12 | 13 |
13 | 14 |
14 DebugInfo::~DebugInfo() { | 15 DebugInfo::~DebugInfo() { |
15 } | 16 } |
16 | 17 |
17 | 18 |
18 void DebugInfo::AddCode(uword pc, intptr_t size) { | 19 void DebugInfo::AddCode(uword pc, intptr_t size) { |
19 // Nothing to do as there is no support for this on macos. | 20 // Nothing to do as there is no support for this on Android. |
20 } | 21 } |
21 | 22 |
22 | 23 |
23 void DebugInfo::AddCodeRegion(const char* name, uword pc, intptr_t size) { | 24 void DebugInfo::AddCodeRegion(const char* name, uword pc, intptr_t size) { |
24 // Nothing to do as there is no support for this on macos. | 25 // Nothing to do as there is no support for this on Android. |
25 } | 26 } |
26 | 27 |
27 | 28 |
28 bool DebugInfo::WriteToMemory(ByteBuffer* region) { | 29 bool DebugInfo::WriteToMemory(ByteBuffer* region) { |
29 // Nothing to do as there is no support for this on macos. | 30 // Nothing to do as there is no support for this on Android. |
30 return false; | 31 return false; |
31 } | 32 } |
32 | 33 |
33 | 34 |
34 DebugInfo* DebugInfo::NewGenerator() { | 35 DebugInfo* DebugInfo::NewGenerator() { |
35 return new DebugInfo(); | 36 return new DebugInfo(); |
36 } | 37 } |
37 | 38 |
38 | 39 |
39 void DebugInfo::RegisterSection(const char* name, | 40 void DebugInfo::RegisterSection(const char* name, |
40 uword entry_point, | 41 uword entry_point, |
41 intptr_t size) { | 42 intptr_t size) { |
42 // Nothing to do as there is no support for this on macos. | 43 // Nothing to do as there is no support for this on Android. |
43 } | 44 } |
44 | 45 |
45 | 46 |
46 void DebugInfo::UnregisterAllSections() { | 47 void DebugInfo::UnregisterAllSections() { |
47 // Nothing to do as there is no support for this on macos. | 48 // Nothing to do as there is no support for this on Android. |
48 } | 49 } |
49 | 50 |
50 } // namespace dart | 51 } // namespace dart |
OLD | NEW |