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

Side by Side Diff: src/execution.cc

Issue 2296243002: [RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. (Closed)
Patch Set: Rebase Created 4 years, 3 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/compiler-dispatcher/optimizing-compile-dispatcher.h" 9 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Call the function through the right JS entry stub. 130 // Call the function through the right JS entry stub.
131 Object* orig_func = *new_target; 131 Object* orig_func = *new_target;
132 Object* func = *target; 132 Object* func = *target;
133 Object* recv = *receiver; 133 Object* recv = *receiver;
134 Object*** argv = reinterpret_cast<Object***>(args); 134 Object*** argv = reinterpret_cast<Object***>(args);
135 if (FLAG_profile_deserialization && target->IsJSFunction()) { 135 if (FLAG_profile_deserialization && target->IsJSFunction()) {
136 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); 136 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target));
137 } 137 }
138 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); 138 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution);
139 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED(
140 isolate, &tracing::TraceEventStatsTable::JS_Execution);
141 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 139 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
142 argc, argv); 140 argc, argv);
143 } 141 }
144 142
145 #ifdef VERIFY_HEAP 143 #ifdef VERIFY_HEAP
146 if (FLAG_verify_heap) { 144 if (FLAG_verify_heap) {
147 value->ObjectVerify(); 145 value->ObjectVerify();
148 } 146 }
149 #endif 147 #endif
150 148
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 475
478 isolate_->counters()->stack_interrupts()->Increment(); 476 isolate_->counters()->stack_interrupts()->Increment();
479 isolate_->counters()->runtime_profiler_ticks()->Increment(); 477 isolate_->counters()->runtime_profiler_ticks()->Increment();
480 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 478 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
481 479
482 return isolate_->heap()->undefined_value(); 480 return isolate_->heap()->undefined_value();
483 } 481 }
484 482
485 } // namespace internal 483 } // namespace internal
486 } // namespace v8 484 } // 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