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