Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: runtime/vm/megamorphic_cache_table.cc

Issue 2017663002: Fix Dartium GOMA builds (-Werror,-Wmismatched-new-delete). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/object.h" 8 #include "vm/object.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 #include "vm/stub_code.h" 10 #include "vm/stub_code.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 } 142 }
143 intptr_t cumulative_entries = 0; 143 intptr_t cumulative_entries = 0;
144 for (intptr_t i = 0; i <= max_probe_count; i++) { 144 for (intptr_t i = 0; i <= max_probe_count; i++) {
145 cumulative_entries += probe_counts[i]; 145 cumulative_entries += probe_counts[i];
146 OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n", 146 OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n",
147 i, probe_counts[i], 147 i, probe_counts[i],
148 static_cast<double>(cumulative_entries) / 148 static_cast<double>(cumulative_entries) /
149 static_cast<double>(entry_count)); 149 static_cast<double>(entry_count));
150 } 150 }
151 delete probe_counts; 151 delete[] probe_counts;
152 } 152 }
153 153
154 } // namespace dart 154 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698