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/megamorphic_cache_table.h" | 5 #include "vm/megamorphic_cache_table.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include "vm/handles_impl.h" | |
9 #include "vm/object.h" | 8 #include "vm/object.h" |
10 #include "vm/object_store.h" | 9 #include "vm/object_store.h" |
11 #include "vm/stub_code.h" | 10 #include "vm/stub_code.h" |
12 #include "vm/symbols.h" | 11 #include "vm/symbols.h" |
13 | 12 |
14 namespace dart { | 13 namespace dart { |
15 | 14 |
16 RawMegamorphicCache* MegamorphicCacheTable::Lookup(Isolate* isolate, | 15 RawMegamorphicCache* MegamorphicCacheTable::Lookup(Isolate* isolate, |
17 const String& name, | 16 const String& name, |
18 const Array& descriptor) { | 17 const Array& descriptor) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 cumulative_entries += probe_counts[i]; | 145 cumulative_entries += probe_counts[i]; |
147 OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n", | 146 OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n", |
148 i, probe_counts[i], | 147 i, probe_counts[i], |
149 static_cast<double>(cumulative_entries) / | 148 static_cast<double>(cumulative_entries) / |
150 static_cast<double>(entry_count)); | 149 static_cast<double>(entry_count)); |
151 } | 150 } |
152 delete[] probe_counts; | 151 delete[] probe_counts; |
153 } | 152 } |
154 | 153 |
155 } // namespace dart | 154 } // namespace dart |
OLD | NEW |