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

Side by Side Diff: src/counters.cc

Issue 2106113002: Revert of [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « src/counters.h ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/counters.h" 5 #include "src/counters.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 RuntimeCallStatEntries entries; 311 RuntimeCallStatEntries entries;
312 312
313 #define PRINT_COUNTER(name) entries.Add(&this->name); 313 #define PRINT_COUNTER(name) entries.Add(&this->name);
314 FOR_EACH_MANUAL_COUNTER(PRINT_COUNTER) 314 FOR_EACH_MANUAL_COUNTER(PRINT_COUNTER)
315 #undef PRINT_COUNTER 315 #undef PRINT_COUNTER
316 316
317 #define PRINT_COUNTER(name, nargs, ressize) entries.Add(&this->Runtime_##name); 317 #define PRINT_COUNTER(name, nargs, ressize) entries.Add(&this->Runtime_##name);
318 FOR_EACH_INTRINSIC(PRINT_COUNTER) 318 FOR_EACH_INTRINSIC(PRINT_COUNTER)
319 #undef PRINT_COUNTER 319 #undef PRINT_COUNTER
320 320
321 #define PRINT_COUNTER(name, ignore) entries.Add(&this->Builtin_##name); 321 #define PRINT_COUNTER(name) entries.Add(&this->Builtin_##name);
322 BUILTIN_LIST_C(PRINT_COUNTER) 322 BUILTIN_LIST_C(PRINT_COUNTER)
323 #undef PRINT_COUNTER 323 #undef PRINT_COUNTER
324 324
325 #define PRINT_COUNTER(name) entries.Add(&this->API_##name); 325 #define PRINT_COUNTER(name) entries.Add(&this->API_##name);
326 FOR_EACH_API_COUNTER(PRINT_COUNTER) 326 FOR_EACH_API_COUNTER(PRINT_COUNTER)
327 #undef PRINT_COUNTER 327 #undef PRINT_COUNTER
328 328
329 #define PRINT_COUNTER(name) entries.Add(&this->Handler_##name); 329 #define PRINT_COUNTER(name) entries.Add(&this->Handler_##name);
330 FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER) 330 FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER)
331 #undef PRINT_COUNTER 331 #undef PRINT_COUNTER
332 332
333 entries.Print(os); 333 entries.Print(os);
334 } 334 }
335 335
336 void RuntimeCallStats::Reset() { 336 void RuntimeCallStats::Reset() {
337 if (!FLAG_runtime_call_stats) return; 337 if (!FLAG_runtime_call_stats) return;
338 #define RESET_COUNTER(name) this->name.Reset(); 338 #define RESET_COUNTER(name) this->name.Reset();
339 FOR_EACH_MANUAL_COUNTER(RESET_COUNTER) 339 FOR_EACH_MANUAL_COUNTER(RESET_COUNTER)
340 #undef RESET_COUNTER 340 #undef RESET_COUNTER
341 341
342 #define RESET_COUNTER(name, nargs, result_size) this->Runtime_##name.Reset(); 342 #define RESET_COUNTER(name, nargs, result_size) this->Runtime_##name.Reset();
343 FOR_EACH_INTRINSIC(RESET_COUNTER) 343 FOR_EACH_INTRINSIC(RESET_COUNTER)
344 #undef RESET_COUNTER 344 #undef RESET_COUNTER
345 345
346 #define RESET_COUNTER(name, ignore) this->Builtin_##name.Reset(); 346 #define RESET_COUNTER(name) this->Builtin_##name.Reset();
347 BUILTIN_LIST_C(RESET_COUNTER) 347 BUILTIN_LIST_C(RESET_COUNTER)
348 #undef RESET_COUNTER 348 #undef RESET_COUNTER
349 349
350 #define RESET_COUNTER(name) this->API_##name.Reset(); 350 #define RESET_COUNTER(name) this->API_##name.Reset();
351 FOR_EACH_API_COUNTER(RESET_COUNTER) 351 FOR_EACH_API_COUNTER(RESET_COUNTER)
352 #undef RESET_COUNTER 352 #undef RESET_COUNTER
353 353
354 #define RESET_COUNTER(name) this->Handler_##name.Reset(); 354 #define RESET_COUNTER(name) this->Handler_##name.Reset();
355 FOR_EACH_HANDLER_COUNTER(RESET_COUNTER) 355 FOR_EACH_HANDLER_COUNTER(RESET_COUNTER)
356 #undef RESET_COUNTER 356 #undef RESET_COUNTER
357 } 357 }
358 358
359 } // namespace internal 359 } // namespace internal
360 } // namespace v8 360 } // namespace v8
OLDNEW
« no previous file with comments | « src/counters.h ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698