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/become.h" | 10 #include "vm/become.h" |
(...skipping 14545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14556 // frame slots which are marked as having objects. | 14556 // frame slots which are marked as having objects. |
14557 *maps = stackmaps(); | 14557 *maps = stackmaps(); |
14558 *map = Stackmap::null(); | 14558 *map = Stackmap::null(); |
14559 for (intptr_t i = 0; i < maps->Length(); i++) { | 14559 for (intptr_t i = 0; i < maps->Length(); i++) { |
14560 *map ^= maps->At(i); | 14560 *map ^= maps->At(i); |
14561 ASSERT(!map->IsNull()); | 14561 ASSERT(!map->IsNull()); |
14562 if (map->PcOffset() == pc_offset) { | 14562 if (map->PcOffset() == pc_offset) { |
14563 return map->raw(); // We found a stack map for this frame. | 14563 return map->raw(); // We found a stack map for this frame. |
14564 } | 14564 } |
14565 } | 14565 } |
14566 ASSERT(!is_optimized()); | 14566 ASSERT(!is_optimized() || (pc_offset == Instructions::kUncheckedEntryOffset)); |
14567 return Stackmap::null(); | 14567 return Stackmap::null(); |
14568 } | 14568 } |
14569 | 14569 |
14570 | 14570 |
14571 intptr_t Code::GetCallerId(intptr_t inlined_id) const { | 14571 intptr_t Code::GetCallerId(intptr_t inlined_id) const { |
14572 if (inlined_id < 0) { | 14572 if (inlined_id < 0) { |
14573 return -1; | 14573 return -1; |
14574 } | 14574 } |
14575 const Array& map = Array::Handle(GetInlinedCallerIdMap()); | 14575 const Array& map = Array::Handle(GetInlinedCallerIdMap()); |
14576 if (map.IsNull() || (map.Length() == 0)) { | 14576 if (map.IsNull() || (map.Length() == 0)) { |
(...skipping 8428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23005 return UserTag::null(); | 23005 return UserTag::null(); |
23006 } | 23006 } |
23007 | 23007 |
23008 | 23008 |
23009 const char* UserTag::ToCString() const { | 23009 const char* UserTag::ToCString() const { |
23010 const String& tag_label = String::Handle(label()); | 23010 const String& tag_label = String::Handle(label()); |
23011 return tag_label.ToCString(); | 23011 return tag_label.ToCString(); |
23012 } | 23012 } |
23013 | 23013 |
23014 } // namespace dart | 23014 } // namespace dart |
OLD | NEW |