| 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 11032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11043 ASSERT(!target.IsNull()); | 11043 ASSERT(!target.IsNull()); |
| 11044 data.SetAt(data_pos++, target); | 11044 data.SetAt(data_pos++, target); |
| 11045 const Smi& value = Smi::Handle(Smi::New(0)); | 11045 const Smi& value = Smi::Handle(Smi::New(0)); |
| 11046 data.SetAt(data_pos, value); | 11046 data.SetAt(data_pos, value); |
| 11047 } | 11047 } |
| 11048 | 11048 |
| 11049 | 11049 |
| 11050 void ICData::AddCheck(const GrowableArray<intptr_t>& class_ids, | 11050 void ICData::AddCheck(const GrowableArray<intptr_t>& class_ids, |
| 11051 const Function& target) const { | 11051 const Function& target) const { |
| 11052 ASSERT(!target.IsNull()); | 11052 ASSERT(!target.IsNull()); |
| 11053 DEBUG_ASSERT(!HasCheck(class_ids)); | 11053 ASSERT(!HasCheck(class_ids)); |
| 11054 ASSERT(NumArgsTested() > 1); // Otherwise use 'AddReceiverCheck'. | 11054 ASSERT(NumArgsTested() > 1); // Otherwise use 'AddReceiverCheck'. |
| 11055 ASSERT(class_ids.length() == NumArgsTested()); | 11055 ASSERT(class_ids.length() == NumArgsTested()); |
| 11056 const intptr_t old_num = NumberOfChecks(); | 11056 const intptr_t old_num = NumberOfChecks(); |
| 11057 Array& data = Array::Handle(ic_data()); | 11057 Array& data = Array::Handle(ic_data()); |
| 11058 // ICData of static calls with NumArgsTested() > 0 have initially a | 11058 // ICData of static calls with NumArgsTested() > 0 have initially a |
| 11059 // dummy set of cids entered (see ICData::AddTarget). That entry is | 11059 // dummy set of cids entered (see ICData::AddTarget). That entry is |
| 11060 // overwritten by first real type feedback data. | 11060 // overwritten by first real type feedback data. |
| 11061 if (old_num == 1) { | 11061 if (old_num == 1) { |
| 11062 bool has_dummy_entry = true; | 11062 bool has_dummy_entry = true; |
| 11063 for (intptr_t i = 0; i < NumArgsTested(); i++) { | 11063 for (intptr_t i = 0; i < NumArgsTested(); i++) { |
| (...skipping 7955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19019 return tag_label.ToCString(); | 19019 return tag_label.ToCString(); |
| 19020 } | 19020 } |
| 19021 | 19021 |
| 19022 | 19022 |
| 19023 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19023 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19024 Instance::PrintJSONImpl(stream, ref); | 19024 Instance::PrintJSONImpl(stream, ref); |
| 19025 } | 19025 } |
| 19026 | 19026 |
| 19027 | 19027 |
| 19028 } // namespace dart | 19028 } // namespace dart |
| OLD | NEW |