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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); | 87 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); |
88 | 88 |
89 // Call the function through the right JS entry stub. | 89 // Call the function through the right JS entry stub. |
90 Object* orig_func = *new_target; | 90 Object* orig_func = *new_target; |
91 Object* func = *target; | 91 Object* func = *target; |
92 Object* recv = *receiver; | 92 Object* recv = *receiver; |
93 Object*** argv = reinterpret_cast<Object***>(args); | 93 Object*** argv = reinterpret_cast<Object***>(args); |
94 if (FLAG_profile_deserialization && target->IsJSFunction()) { | 94 if (FLAG_profile_deserialization && target->IsJSFunction()) { |
95 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); | 95 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); |
96 } | 96 } |
| 97 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); |
97 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, | 98 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
98 argc, argv); | 99 argc, argv); |
99 } | 100 } |
100 | 101 |
101 #ifdef VERIFY_HEAP | 102 #ifdef VERIFY_HEAP |
102 if (FLAG_verify_heap) { | 103 if (FLAG_verify_heap) { |
103 value->ObjectVerify(); | 104 value->ObjectVerify(); |
104 } | 105 } |
105 #endif | 106 #endif |
106 | 107 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 471 |
471 isolate_->counters()->stack_interrupts()->Increment(); | 472 isolate_->counters()->stack_interrupts()->Increment(); |
472 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 473 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
473 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 474 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
474 | 475 |
475 return isolate_->heap()->undefined_value(); | 476 return isolate_->heap()->undefined_value(); |
476 } | 477 } |
477 | 478 |
478 } // namespace internal | 479 } // namespace internal |
479 } // namespace v8 | 480 } // namespace v8 |
OLD | NEW |