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/isolate-inl.h" | 9 #include "src/isolate-inl.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Call the function through the right JS entry stub. | 128 // Call the function through the right JS entry stub. |
129 Object* orig_func = *new_target; | 129 Object* orig_func = *new_target; |
130 Object* func = *target; | 130 Object* func = *target; |
131 Object* recv = *receiver; | 131 Object* recv = *receiver; |
132 Object*** argv = reinterpret_cast<Object***>(args); | 132 Object*** argv = reinterpret_cast<Object***>(args); |
133 if (FLAG_profile_deserialization && target->IsJSFunction()) { | 133 if (FLAG_profile_deserialization && target->IsJSFunction()) { |
134 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); | 134 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); |
135 } | 135 } |
136 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); | 136 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); |
| 137 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
| 138 isolate, &tracing::TraceEventStatsTable::JS_Execution); |
137 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, | 139 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
138 argc, argv); | 140 argc, argv); |
139 } | 141 } |
140 | 142 |
141 #ifdef VERIFY_HEAP | 143 #ifdef VERIFY_HEAP |
142 if (FLAG_verify_heap) { | 144 if (FLAG_verify_heap) { |
143 value->ObjectVerify(); | 145 value->ObjectVerify(); |
144 } | 146 } |
145 #endif | 147 #endif |
146 | 148 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 500 |
499 isolate_->counters()->stack_interrupts()->Increment(); | 501 isolate_->counters()->stack_interrupts()->Increment(); |
500 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 502 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
501 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 503 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
502 | 504 |
503 return isolate_->heap()->undefined_value(); | 505 return isolate_->heap()->undefined_value(); |
504 } | 506 } |
505 | 507 |
506 } // namespace internal | 508 } // namespace internal |
507 } // namespace v8 | 509 } // namespace v8 |
OLD | NEW |