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

Side by Side Diff: src/execution.cc

Issue 1923893002: [counters] Annotate v8 with more runtime call counters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unused macro Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/execution.h" 5 #include "src/execution.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); 87 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry());
88 88
89 // Call the function through the right JS entry stub. 89 // Call the function through the right JS entry stub.
90 Object* orig_func = *new_target; 90 Object* orig_func = *new_target;
91 Object* func = *target; 91 Object* func = *target;
92 Object* recv = *receiver; 92 Object* recv = *receiver;
93 Object*** argv = reinterpret_cast<Object***>(args); 93 Object*** argv = reinterpret_cast<Object***>(args);
94 if (FLAG_profile_deserialization && target->IsJSFunction()) { 94 if (FLAG_profile_deserialization && target->IsJSFunction()) {
95 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); 95 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target));
96 } 96 }
97 RuntimeCallTimerScope timer(
98 isolate, &isolate->counters()->runtime_call_stats()->JS_Execution);
97 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 99 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
98 argc, argv); 100 argc, argv);
99 } 101 }
100 102
101 #ifdef VERIFY_HEAP 103 #ifdef VERIFY_HEAP
102 if (FLAG_verify_heap) { 104 if (FLAG_verify_heap) {
103 value->ObjectVerify(); 105 value->ObjectVerify();
104 } 106 }
105 #endif 107 #endif
106 108
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 472
471 isolate_->counters()->stack_interrupts()->Increment(); 473 isolate_->counters()->stack_interrupts()->Increment();
472 isolate_->counters()->runtime_profiler_ticks()->Increment(); 474 isolate_->counters()->runtime_profiler_ticks()->Increment();
473 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 475 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
474 476
475 return isolate_->heap()->undefined_value(); 477 return isolate_->heap()->undefined_value();
476 } 478 }
477 479
478 } // namespace internal 480 } // namespace internal
479 } // namespace v8 481 } // namespace v8
OLDNEW
« src/api.cc ('K') | « src/deoptimizer.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698