| 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/raw_object.h" | 5 #include "vm/raw_object.h" |
| 6 | 6 |
| 7 #include "vm/class_table.h" | 7 #include "vm/class_table.h" |
| 8 #include "vm/dart.h" | 8 #include "vm/dart.h" |
| 9 #include "vm/freelist.h" | 9 #include "vm/freelist.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 uword end_pc = start_pc + raw_instr->ptr()->size_; | 490 uword end_pc = start_pc + raw_instr->ptr()->size_; |
| 491 ASSERT(end_pc > start_pc); | 491 ASSERT(end_pc > start_pc); |
| 492 if ((pc >= start_pc) && (pc < end_pc)) { | 492 if ((pc >= start_pc) && (pc < end_pc)) { |
| 493 return true; | 493 return true; |
| 494 } | 494 } |
| 495 } | 495 } |
| 496 return false; | 496 return false; |
| 497 } | 497 } |
| 498 | 498 |
| 499 | 499 |
| 500 intptr_t RawPcDescriptors::RecordSize(bool has_try_index) { |
| 501 return has_try_index ? RawPcDescriptors::kFullRecSize |
| 502 : RawPcDescriptors::kCompressedRecSize; |
| 503 } |
| 504 |
| 505 |
| 500 intptr_t RawPcDescriptors::VisitPcDescriptorsPointers( | 506 intptr_t RawPcDescriptors::VisitPcDescriptorsPointers( |
| 501 RawPcDescriptors* raw_obj, ObjectPointerVisitor* visitor) { | 507 RawPcDescriptors* raw_obj, ObjectPointerVisitor* visitor) { |
| 502 return PcDescriptors::InstanceSize(raw_obj->ptr()->length_, | 508 return PcDescriptors::InstanceSize(raw_obj->ptr()->length_, |
| 503 raw_obj->ptr()->record_size_in_bytes_); | 509 raw_obj->ptr()->record_size_in_bytes_); |
| 504 } | 510 } |
| 505 | 511 |
| 506 | 512 |
| 507 intptr_t RawStackmap::VisitStackmapPointers(RawStackmap* raw_obj, | 513 intptr_t RawStackmap::VisitStackmapPointers(RawStackmap* raw_obj, |
| 508 ObjectPointerVisitor* visitor) { | 514 ObjectPointerVisitor* visitor) { |
| 509 return Stackmap::InstanceSize(raw_obj->ptr()->length_); | 515 return Stackmap::InstanceSize(raw_obj->ptr()->length_); |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 intptr_t RawUserTag::VisitUserTagPointers( | 874 intptr_t RawUserTag::VisitUserTagPointers( |
| 869 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { | 875 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { |
| 870 // Make sure that we got here with the tagged pointer as this. | 876 // Make sure that we got here with the tagged pointer as this. |
| 871 ASSERT(raw_obj->IsHeapObject()); | 877 ASSERT(raw_obj->IsHeapObject()); |
| 872 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); | 878 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); |
| 873 return UserTag::InstanceSize(); | 879 return UserTag::InstanceSize(); |
| 874 } | 880 } |
| 875 | 881 |
| 876 | 882 |
| 877 } // namespace dart | 883 } // namespace dart |
| OLD | NEW |