| 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 7063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7074 | 7074 |
| 7075 | 7075 |
| 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::kReturn: return "return "; | 7085 case PcDescriptors::kReturn: return "return "; |
| 7085 case PcDescriptors::kOther: return "other "; | 7086 case PcDescriptors::kOther: return "other "; |
| 7086 } | 7087 } |
| 7087 UNREACHABLE(); | 7088 UNREACHABLE(); |
| 7088 return ""; | 7089 return ""; |
| 7089 } | 7090 } |
| 7090 | 7091 |
| 7091 | 7092 |
| 7092 void PcDescriptors::PrintHeaderString() { | 7093 void PcDescriptors::PrintHeaderString() { |
| 7093 // 4 bits per hex digit + 2 for "0x". | 7094 // 4 bits per hex digit + 2 for "0x". |
| (...skipping 6140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13234 } | 13235 } |
| 13235 return result.raw(); | 13236 return result.raw(); |
| 13236 } | 13237 } |
| 13237 | 13238 |
| 13238 | 13239 |
| 13239 const char* WeakProperty::ToCString() const { | 13240 const char* WeakProperty::ToCString() const { |
| 13240 return "_WeakProperty"; | 13241 return "_WeakProperty"; |
| 13241 } | 13242 } |
| 13242 | 13243 |
| 13243 } // namespace dart | 13244 } // namespace dart |
| OLD | NEW |