| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::JS_Execution); |
| 98 TRACE_RUNTIME_CALL("JS_Execution"); |
| 98 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, | 99 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
| 99 argc, argv); | 100 argc, argv); |
| 100 } | 101 } |
| 101 | 102 |
| 102 #ifdef VERIFY_HEAP | 103 #ifdef VERIFY_HEAP |
| 103 if (FLAG_verify_heap) { | 104 if (FLAG_verify_heap) { |
| 104 value->ObjectVerify(); | 105 value->ObjectVerify(); |
| 105 } | 106 } |
| 106 #endif | 107 #endif |
| 107 | 108 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 | 472 |
| 472 isolate_->counters()->stack_interrupts()->Increment(); | 473 isolate_->counters()->stack_interrupts()->Increment(); |
| 473 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 474 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 474 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 475 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
| 475 | 476 |
| 476 return isolate_->heap()->undefined_value(); | 477 return isolate_->heap()->undefined_value(); |
| 477 } | 478 } |
| 478 | 479 |
| 479 } // namespace internal | 480 } // namespace internal |
| 480 } // namespace v8 | 481 } // namespace v8 |
| OLD | NEW |