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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); |
111 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, | 113 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
112 argc, argv); | 114 argc, argv); |
113 } | 115 } |
114 | 116 |
115 #ifdef VERIFY_HEAP | 117 #ifdef VERIFY_HEAP |
116 if (FLAG_verify_heap) { | 118 if (FLAG_verify_heap) { |
117 value->ObjectVerify(); | 119 value->ObjectVerify(); |
118 } | 120 } |
119 #endif | 121 #endif |
120 | 122 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 487 |
486 isolate_->counters()->stack_interrupts()->Increment(); | 488 isolate_->counters()->stack_interrupts()->Increment(); |
487 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 489 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
488 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 490 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
489 | 491 |
490 return isolate_->heap()->undefined_value(); | 492 return isolate_->heap()->undefined_value(); |
491 } | 493 } |
492 | 494 |
493 } // namespace internal | 495 } // namespace internal |
494 } // namespace v8 | 496 } // namespace v8 |
OLD | NEW |