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

Side by Side Diff: src/execution.cc

Issue 2221853002: Revert of [Tracing] Embed V8 runtime call stats into tracing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Call the function through the right JS entry stub. 102 // Call the function through the right JS entry stub.
103 Object* orig_func = *new_target; 103 Object* orig_func = *new_target;
104 Object* func = *target; 104 Object* func = *target;
105 Object* recv = *receiver; 105 Object* recv = *receiver;
106 Object*** argv = reinterpret_cast<Object***>(args); 106 Object*** argv = reinterpret_cast<Object***>(args);
107 if (FLAG_profile_deserialization && target->IsJSFunction()) { 107 if (FLAG_profile_deserialization && target->IsJSFunction()) {
108 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); 108 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target));
109 } 109 }
110 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); 110 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution);
111 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED(
112 isolate, &tracing::TraceEventStatsTable::JS_Execution);
113 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 111 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
114 argc, argv); 112 argc, argv);
115 } 113 }
116 114
117 #ifdef VERIFY_HEAP 115 #ifdef VERIFY_HEAP
118 if (FLAG_verify_heap) { 116 if (FLAG_verify_heap) {
119 value->ObjectVerify(); 117 value->ObjectVerify();
120 } 118 }
121 #endif 119 #endif
122 120
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 492
495 isolate_->counters()->stack_interrupts()->Increment(); 493 isolate_->counters()->stack_interrupts()->Increment();
496 isolate_->counters()->runtime_profiler_ticks()->Increment(); 494 isolate_->counters()->runtime_profiler_ticks()->Increment();
497 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 495 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
498 496
499 return isolate_->heap()->undefined_value(); 497 return isolate_->heap()->undefined_value();
500 } 498 }
501 499
502 } // namespace internal 500 } // namespace internal
503 } // namespace v8 501 } // 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