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); | |
141 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, | 139 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
142 argc, argv); | 140 argc, argv); |
143 } | 141 } |
144 | 142 |
145 #ifdef VERIFY_HEAP | 143 #ifdef VERIFY_HEAP |
146 if (FLAG_verify_heap) { | 144 if (FLAG_verify_heap) { |
147 value->ObjectVerify(); | 145 value->ObjectVerify(); |
148 } | 146 } |
149 #endif | 147 #endif |
150 | 148 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 475 |
478 isolate_->counters()->stack_interrupts()->Increment(); | 476 isolate_->counters()->stack_interrupts()->Increment(); |
479 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 477 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
480 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 478 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
481 | 479 |
482 return isolate_->heap()->undefined_value(); | 480 return isolate_->heap()->undefined_value(); |
483 } | 481 } |
484 | 482 |
485 } // namespace internal | 483 } // namespace internal |
486 } // namespace v8 | 484 } // namespace v8 |
OLD | NEW |