| 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 7065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7076 const char* PcDescriptors::KindAsStr(intptr_t index) const { | 7076 const char* PcDescriptors::KindAsStr(intptr_t index) const { |
| 7077 switch (DescriptorKind(index)) { | 7077 switch (DescriptorKind(index)) { |
| 7078 case PcDescriptors::kDeopt: return "deopt "; | 7078 case PcDescriptors::kDeopt: return "deopt "; |
| 7079 case PcDescriptors::kEntryPatch: return "entry-patch "; | 7079 case PcDescriptors::kEntryPatch: return "entry-patch "; |
| 7080 case PcDescriptors::kPatchCode: return "patch "; | 7080 case PcDescriptors::kPatchCode: return "patch "; |
| 7081 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; | 7081 case PcDescriptors::kLazyDeoptJump: return "lazy-deopt "; |
| 7082 case PcDescriptors::kIcCall: return "ic-call "; | 7082 case PcDescriptors::kIcCall: return "ic-call "; |
| 7083 case PcDescriptors::kFuncCall: return "fn-call "; | 7083 case PcDescriptors::kFuncCall: return "fn-call "; |
| 7084 case PcDescriptors::kClosureCall: return "closure-call "; | 7084 case PcDescriptors::kClosureCall: return "closure-call "; |
| 7085 case PcDescriptors::kReturn: return "return "; | 7085 case PcDescriptors::kReturn: return "return "; |
| 7086 case PcDescriptors::kEqualNull: return "equal-null "; | 7086 case PcDescriptors::kRuntimeCall: return "runtime-call "; |
| 7087 case PcDescriptors::kOther: return "other "; | 7087 case PcDescriptors::kOther: return "other "; |
| 7088 } | 7088 } |
| 7089 UNREACHABLE(); | 7089 UNREACHABLE(); |
| 7090 return ""; | 7090 return ""; |
| 7091 } | 7091 } |
| 7092 | 7092 |
| 7093 | 7093 |
| 7094 void PcDescriptors::PrintHeaderString() { | 7094 void PcDescriptors::PrintHeaderString() { |
| 7095 // 4 bits per hex digit + 2 for "0x". | 7095 // 4 bits per hex digit + 2 for "0x". |
| 7096 const int addr_width = (kBitsPerWord / 4) + 2; | 7096 const int addr_width = (kBitsPerWord / 4) + 2; |
| (...skipping 6144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13241 } | 13241 } |
| 13242 return result.raw(); | 13242 return result.raw(); |
| 13243 } | 13243 } |
| 13244 | 13244 |
| 13245 | 13245 |
| 13246 const char* WeakProperty::ToCString() const { | 13246 const char* WeakProperty::ToCString() const { |
| 13247 return "_WeakProperty"; | 13247 return "_WeakProperty"; |
| 13248 } | 13248 } |
| 13249 | 13249 |
| 13250 } // namespace dart | 13250 } // namespace dart |
| OLD | NEW |