| 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/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 7181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7192 PcDescriptors::Handle(this->pc_descriptors()); | 7192 PcDescriptors::Handle(this->pc_descriptors()); |
| 7193 ICData& ic_data_obj = ICData::Handle(); | 7193 ICData& ic_data_obj = ICData::Handle(); |
| 7194 intptr_t max_id = -1; | 7194 intptr_t max_id = -1; |
| 7195 for (intptr_t i = 0; i < descriptors.Length(); i++) { | 7195 for (intptr_t i = 0; i < descriptors.Length(); i++) { |
| 7196 if (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall) { | 7196 if (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall) { |
| 7197 intptr_t deopt_id = descriptors.DeoptId(i); | 7197 intptr_t deopt_id = descriptors.DeoptId(i); |
| 7198 if (deopt_id > max_id) { | 7198 if (deopt_id > max_id) { |
| 7199 max_id = deopt_id; | 7199 max_id = deopt_id; |
| 7200 } | 7200 } |
| 7201 node_ids->Add(deopt_id); | 7201 node_ids->Add(deopt_id); |
| 7202 ic_data_obj = CodePatcher::GetInstanceCallIcDataAt(descriptors.PC(i)); | 7202 CodePatcher::GetInstanceCallAt(descriptors.PC(i), &ic_data_obj, NULL); |
| 7203 ic_data_objs.Add(ic_data_obj); | 7203 ic_data_objs.Add(ic_data_obj); |
| 7204 } | 7204 } |
| 7205 } | 7205 } |
| 7206 return max_id; | 7206 return max_id; |
| 7207 } | 7207 } |
| 7208 | 7208 |
| 7209 | 7209 |
| 7210 RawArray* Code::ExtractTypeFeedbackArray() const { | 7210 RawArray* Code::ExtractTypeFeedbackArray() const { |
| 7211 ASSERT(!IsNull() && !is_optimized()); | 7211 ASSERT(!IsNull() && !is_optimized()); |
| 7212 GrowableArray<intptr_t> deopt_ids; | 7212 GrowableArray<intptr_t> deopt_ids; |
| (...skipping 4906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12119 } | 12119 } |
| 12120 return result.raw(); | 12120 return result.raw(); |
| 12121 } | 12121 } |
| 12122 | 12122 |
| 12123 | 12123 |
| 12124 const char* WeakProperty::ToCString() const { | 12124 const char* WeakProperty::ToCString() const { |
| 12125 return "_WeakProperty"; | 12125 return "_WeakProperty"; |
| 12126 } | 12126 } |
| 12127 | 12127 |
| 12128 } // namespace dart | 12128 } // namespace dart |
| OLD | NEW |