OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |