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

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: merging master 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
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen/full-codegen.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 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(isolate, &RuntimeCallStats::JS_Execution);
97 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 98 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
98 argc, argv); 99 argc, argv);
99 } 100 }
100 101
101 #ifdef VERIFY_HEAP 102 #ifdef VERIFY_HEAP
102 if (FLAG_verify_heap) { 103 if (FLAG_verify_heap) {
103 value->ObjectVerify(); 104 value->ObjectVerify();
104 } 105 }
105 #endif 106 #endif
106 107
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 471
471 isolate_->counters()->stack_interrupts()->Increment(); 472 isolate_->counters()->stack_interrupts()->Increment();
472 isolate_->counters()->runtime_profiler_ticks()->Increment(); 473 isolate_->counters()->runtime_profiler_ticks()->Increment();
473 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 474 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
474 475
475 return isolate_->heap()->undefined_value(); 476 return isolate_->heap()->undefined_value();
476 } 477 }
477 478
478 } // namespace internal 479 } // namespace internal
479 } // namespace v8 480 } // namespace v8
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698