| 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 7081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7092 const char* PcDescriptors::KindAsStr(intptr_t index) const { | 7092 const char* PcDescriptors::KindAsStr(intptr_t index) const { |
| 7093 switch (DescriptorKind(index)) { | 7093 switch (DescriptorKind(index)) { |
| 7094 case PcDescriptors::kDeopt: return "deopt "; | 7094 case PcDescriptors::kDeopt: return "deopt "; |
| 7095 case PcDescriptors::kEntryPatch: return "entry-patch "; | 7095 case PcDescriptors::kEntryPatch: return "entry-patch "; |
| 7096 case PcDescriptors::kPatchCode: return "patch "; | 7096 case PcDescriptors::kPatchCode: return "patch "; |
| 7097 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; | 7097 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; |
| 7098 case PcDescriptors::kIcCall: return "ic-call "; | 7098 case PcDescriptors::kIcCall: return "ic-call "; |
| 7099 case PcDescriptors::kFuncCall: return "fn-call "; | 7099 case PcDescriptors::kFuncCall: return "fn-call "; |
| 7100 case PcDescriptors::kClosureCall: return "closure-call "; | 7100 case PcDescriptors::kClosureCall: return "closure-call "; |
| 7101 case PcDescriptors::kReturn: return "return "; | 7101 case PcDescriptors::kReturn: return "return "; |
| 7102 case PcDescriptors::kEqualNull: return "equal-null "; |
| 7102 case PcDescriptors::kOther: return "other "; | 7103 case PcDescriptors::kOther: return "other "; |
| 7103 } | 7104 } |
| 7104 UNREACHABLE(); | 7105 UNREACHABLE(); |
| 7105 return ""; | 7106 return ""; |
| 7106 } | 7107 } |
| 7107 | 7108 |
| 7108 | 7109 |
| 7109 void PcDescriptors::PrintHeaderString() { | 7110 void PcDescriptors::PrintHeaderString() { |
| 7110 // 4 bits per hex digit + 2 for "0x". | 7111 // 4 bits per hex digit + 2 for "0x". |
| 7111 const int addr_width = (kBitsPerWord / 4) + 2; | 7112 const int addr_width = (kBitsPerWord / 4) + 2; |
| (...skipping 6144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13256 } | 13257 } |
| 13257 return result.raw(); | 13258 return result.raw(); |
| 13258 } | 13259 } |
| 13259 | 13260 |
| 13260 | 13261 |
| 13261 const char* WeakProperty::ToCString() const { | 13262 const char* WeakProperty::ToCString() const { |
| 13262 return "_WeakProperty"; | 13263 return "_WeakProperty"; |
| 13263 } | 13264 } |
| 13264 | 13265 |
| 13265 } // namespace dart | 13266 } // namespace dart |
| OLD | NEW |