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/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); | 88 JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); |
89 | 89 |
90 // Call the function through the right JS entry stub. | 90 // Call the function through the right JS entry stub. |
91 Object* orig_func = *new_target; | 91 Object* orig_func = *new_target; |
92 Object* func = *target; | 92 Object* func = *target; |
93 Object* recv = *receiver; | 93 Object* recv = *receiver; |
94 Object*** argv = reinterpret_cast<Object***>(args); | 94 Object*** argv = reinterpret_cast<Object***>(args); |
95 if (FLAG_profile_deserialization && target->IsJSFunction()) { | 95 if (FLAG_profile_deserialization && target->IsJSFunction()) { |
96 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); | 96 PrintDeserializedCodeInfo(Handle<JSFunction>::cast(target)); |
97 } | 97 } |
98 value = CALL_GENERATED_CODE(stub_entry, orig_func, func, recv, argc, argv); | 98 value = CALL_GENERATED_CODE(isolate, stub_entry, orig_func, func, recv, |
| 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 |
107 // Update the pending exception flag and return the value. | 108 // Update the pending exception flag and return the value. |
108 bool has_exception = value->IsException(); | 109 bool has_exception = value->IsException(); |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 517 |
517 isolate_->counters()->stack_interrupts()->Increment(); | 518 isolate_->counters()->stack_interrupts()->Increment(); |
518 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 519 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
519 isolate_->runtime_profiler()->OptimizeNow(); | 520 isolate_->runtime_profiler()->OptimizeNow(); |
520 | 521 |
521 return isolate_->heap()->undefined_value(); | 522 return isolate_->heap()->undefined_value(); |
522 } | 523 } |
523 | 524 |
524 } // namespace internal | 525 } // namespace internal |
525 } // namespace v8 | 526 } // namespace v8 |
OLD | NEW |