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

Side by Side Diff: src/execution.cc

Issue 2311983002: Revert of [RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. (Closed)
Patch Set: 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);
139 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 141 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
140 argc, argv); 142 argc, argv);
141 } 143 }
142 144
143 #ifdef VERIFY_HEAP 145 #ifdef VERIFY_HEAP
144 if (FLAG_verify_heap) { 146 if (FLAG_verify_heap) {
145 value->ObjectVerify(); 147 value->ObjectVerify();
146 } 148 }
147 #endif 149 #endif
148 150
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 477
476 isolate_->counters()->stack_interrupts()->Increment(); 478 isolate_->counters()->stack_interrupts()->Increment();
477 isolate_->counters()->runtime_profiler_ticks()->Increment(); 479 isolate_->counters()->runtime_profiler_ticks()->Increment();
478 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 480 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
479 481
480 return isolate_->heap()->undefined_value(); 482 return isolate_->heap()->undefined_value();
481 } 483 }
482 484
483 } // namespace internal 485 } // namespace internal
484 } // namespace v8 486 } // 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