| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 6277)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -5489,6 +5489,7 @@
|
| case PcDescriptors::kIcCall: return "ic-call";
|
| case PcDescriptors::kFuncCall: return "func-call";
|
| case PcDescriptors::kReturn: return "return";
|
| + case PcDescriptors::kTypeTest: return "type-test";
|
| case PcDescriptors::kOther: return "other";
|
| }
|
| UNREACHABLE();
|
| @@ -5932,6 +5933,18 @@
|
| }
|
|
|
|
|
| +uword Code::GetTypeTestAtNodeId(intptr_t node_id) const {
|
| + const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors());
|
| + for (intptr_t i = 0; i < descriptors.Length(); i++) {
|
| + if ((descriptors.NodeId(i) == node_id) &&
|
| + (descriptors.DescriptorKind(i) == PcDescriptors::kTypeTest)) {
|
| + return descriptors.PC(i);
|
| + }
|
| + }
|
| + return 0;
|
| +}
|
| +
|
| +
|
| const char* Code::ToCString() const {
|
| const char* kFormat = "Code entry:0x%d";
|
| intptr_t len = OS::SNPrint(NULL, 0, kFormat, EntryPoint());
|
|
|