| 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 10837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10848 } | 10848 } |
| 10849 | 10849 |
| 10850 | 10850 |
| 10851 intptr_t ICData::TestEntryLength() const { | 10851 intptr_t ICData::TestEntryLength() const { |
| 10852 return TestEntryLengthFor(num_args_tested()); | 10852 return TestEntryLengthFor(num_args_tested()); |
| 10853 } | 10853 } |
| 10854 | 10854 |
| 10855 | 10855 |
| 10856 intptr_t ICData::NumberOfChecks() const { | 10856 intptr_t ICData::NumberOfChecks() const { |
| 10857 // Do not count the sentinel; | 10857 // Do not count the sentinel; |
| 10858 return (Array::Handle(ic_data()).Length() / TestEntryLength()) - 1; | 10858 return (Smi::Value(ic_data()->ptr()->length_) / TestEntryLength()) - 1; |
| 10859 } | 10859 } |
| 10860 | 10860 |
| 10861 | 10861 |
| 10862 void ICData::WriteSentinel(const Array& data) const { | 10862 void ICData::WriteSentinel(const Array& data) const { |
| 10863 ASSERT(!data.IsNull()); | 10863 ASSERT(!data.IsNull()); |
| 10864 for (intptr_t i = 1; i <= TestEntryLength(); i++) { | 10864 for (intptr_t i = 1; i <= TestEntryLength(); i++) { |
| 10865 data.SetAt(data.Length() - i, smi_illegal_cid()); | 10865 data.SetAt(data.Length() - i, smi_illegal_cid()); |
| 10866 } | 10866 } |
| 10867 } | 10867 } |
| 10868 | 10868 |
| (...skipping 6766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17635 return "_MirrorReference"; | 17635 return "_MirrorReference"; |
| 17636 } | 17636 } |
| 17637 | 17637 |
| 17638 | 17638 |
| 17639 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 17639 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 17640 Instance::PrintToJSONStream(stream, ref); | 17640 Instance::PrintToJSONStream(stream, ref); |
| 17641 } | 17641 } |
| 17642 | 17642 |
| 17643 | 17643 |
| 17644 } // namespace dart | 17644 } // namespace dart |
| OLD | NEW |