| 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 7091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7102 const char* PcDescriptors::KindAsStr(intptr_t index) const { | 7102 const char* PcDescriptors::KindAsStr(intptr_t index) const { |
| 7103 switch (DescriptorKind(index)) { | 7103 switch (DescriptorKind(index)) { |
| 7104 case PcDescriptors::kDeopt: return "deopt "; | 7104 case PcDescriptors::kDeopt: return "deopt "; |
| 7105 case PcDescriptors::kEntryPatch: return "entry-patch "; | 7105 case PcDescriptors::kEntryPatch: return "entry-patch "; |
| 7106 case PcDescriptors::kPatchCode: return "patch "; | 7106 case PcDescriptors::kPatchCode: return "patch "; |
| 7107 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; | 7107 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; |
| 7108 case PcDescriptors::kIcCall: return "ic-call "; | 7108 case PcDescriptors::kIcCall: return "ic-call "; |
| 7109 case PcDescriptors::kFuncCall: return "fn-call "; | 7109 case PcDescriptors::kFuncCall: return "fn-call "; |
| 7110 case PcDescriptors::kClosureCall: return "closure-call "; | 7110 case PcDescriptors::kClosureCall: return "closure-call "; |
| 7111 case PcDescriptors::kReturn: return "return "; | 7111 case PcDescriptors::kReturn: return "return "; |
| 7112 case PcDescriptors::kEqualNull: return "equal-null "; | 7112 case PcDescriptors::kRuntimeCall: return "runtime-call "; |
| 7113 case PcDescriptors::kOther: return "other "; | 7113 case PcDescriptors::kOther: return "other "; |
| 7114 } | 7114 } |
| 7115 UNREACHABLE(); | 7115 UNREACHABLE(); |
| 7116 return ""; | 7116 return ""; |
| 7117 } | 7117 } |
| 7118 | 7118 |
| 7119 | 7119 |
| 7120 void PcDescriptors::PrintHeaderString() { | 7120 void PcDescriptors::PrintHeaderString() { |
| 7121 // 4 bits per hex digit + 2 for "0x". | 7121 // 4 bits per hex digit + 2 for "0x". |
| 7122 const int addr_width = (kBitsPerWord / 4) + 2; | 7122 const int addr_width = (kBitsPerWord / 4) + 2; |
| (...skipping 6144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13267 } | 13267 } |
| 13268 return result.raw(); | 13268 return result.raw(); |
| 13269 } | 13269 } |
| 13270 | 13270 |
| 13271 | 13271 |
| 13272 const char* WeakProperty::ToCString() const { | 13272 const char* WeakProperty::ToCString() const { |
| 13273 return "_WeakProperty"; | 13273 return "_WeakProperty"; |
| 13274 } | 13274 } |
| 13275 | 13275 |
| 13276 } // namespace dart | 13276 } // namespace dart |
| OLD | NEW |