Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
David Srbecky | 4fda4eb | 2016-02-05 13:34:46 +0000 | [diff] [blame] | 17 | #ifndef ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |
| 18 | #define ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 19 | |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 20 | #include "compiled_method.h" |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 21 | #include "dex_file.h" |
| 22 | |
| 23 | namespace art { |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 24 | namespace debug { |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 25 | |
| 26 | struct MethodDebugInfo { |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 27 | const DexFile* dex_file; |
| 28 | size_t class_def_index; |
| 29 | uint32_t dex_method_index; |
| 30 | uint32_t access_flags; |
| 31 | const DexFile::CodeItem* code_item; |
| 32 | bool deduped; |
| 33 | uintptr_t low_pc; |
| 34 | uintptr_t high_pc; |
| 35 | CompiledMethod* compiled_method; |
| 36 | |
| 37 | bool IsFromOptimizingCompiler() const { |
| 38 | return compiled_method->GetQuickCode().size() > 0 && |
| 39 | compiled_method->GetVmapTable().size() > 0 && |
| 40 | compiled_method->GetGcMap().size() == 0 && |
| 41 | code_item != nullptr; |
| 42 | } |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 43 | }; |
| 44 | |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 45 | } // namespace debug |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 46 | } // namespace art |
| 47 | |
David Srbecky | 4fda4eb | 2016-02-05 13:34:46 +0000 | [diff] [blame] | 48 | #endif // ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |