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

Side by Side Diff: src/execution.cc

Issue 2063853002: Reland: Add a trace-event for each runtime-stats timer (CL 2052523002) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: The reland fix: Use an atomic variable Created 4 years, 6 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/counters.h ('k') | src/lookup.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution);
98 TRACE_RUNTIME_CALL("JS_Execution");
98 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, 99 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv,
99 argc, argv); 100 argc, argv);
100 } 101 }
101 102
102 #ifdef VERIFY_HEAP 103 #ifdef VERIFY_HEAP
103 if (FLAG_verify_heap) { 104 if (FLAG_verify_heap) {
104 value->ObjectVerify(); 105 value->ObjectVerify();
105 } 106 }
106 #endif 107 #endif
107 108
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 472
472 isolate_->counters()->stack_interrupts()->Increment(); 473 isolate_->counters()->stack_interrupts()->Increment();
473 isolate_->counters()->runtime_profiler_ticks()->Increment(); 474 isolate_->counters()->runtime_profiler_ticks()->Increment();
474 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 475 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
475 476
476 return isolate_->heap()->undefined_value(); 477 return isolate_->heap()->undefined_value();
477 } 478 }
478 479
479 } // namespace internal 480 } // namespace internal
480 } // namespace v8 481 } // namespace v8
OLDNEW
« no previous file with comments | « src/counters.h ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698