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 "execution.h" | 5 #include "execution.h" |
6 | 6 |
7 #include "bootstrapper.h" | 7 #include "bootstrapper.h" |
8 #include "codegen.h" | 8 #include "codegen.h" |
9 #include "deoptimizer.h" | 9 #include "deoptimizer.h" |
10 #include "isolate-inl.h" | 10 #include "isolate-inl.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Call the function through the right JS entry stub. | 88 // Call the function through the right JS entry stub. |
89 byte* function_entry = function->code()->entry(); | 89 byte* function_entry = function->code()->entry(); |
90 JSFunction* func = *function; | 90 JSFunction* func = *function; |
91 Object* recv = *receiver; | 91 Object* recv = *receiver; |
92 Object*** argv = reinterpret_cast<Object***>(args); | 92 Object*** argv = reinterpret_cast<Object***>(args); |
93 value = | 93 value = |
94 CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv); | 94 CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv); |
95 } | 95 } |
96 | 96 |
97 #ifdef VERIFY_HEAP | 97 #ifdef VERIFY_HEAP |
98 value->Verify(); | 98 value->ObjectVerify(); |
99 #endif | 99 #endif |
100 | 100 |
101 // Update the pending exception flag and return the value. | 101 // Update the pending exception flag and return the value. |
102 bool has_exception = value->IsException(); | 102 bool has_exception = value->IsException(); |
103 ASSERT(has_exception == isolate->has_pending_exception()); | 103 ASSERT(has_exception == isolate->has_pending_exception()); |
104 if (has_exception) { | 104 if (has_exception) { |
105 isolate->ReportPendingMessages(); | 105 isolate->ReportPendingMessages(); |
106 // Reset stepping state when script exits with uncaught exception. | 106 // Reset stepping state when script exits with uncaught exception. |
107 if (isolate->debugger()->IsDebuggerActive()) { | 107 if (isolate->debugger()->IsDebuggerActive()) { |
108 isolate->debug()->ClearStepping(); | 108 isolate->debug()->ClearStepping(); |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 if (stack_guard->IsInstallCodeRequest()) { | 971 if (stack_guard->IsInstallCodeRequest()) { |
972 ASSERT(isolate->concurrent_recompilation_enabled()); | 972 ASSERT(isolate->concurrent_recompilation_enabled()); |
973 stack_guard->Continue(INSTALL_CODE); | 973 stack_guard->Continue(INSTALL_CODE); |
974 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); | 974 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
975 } | 975 } |
976 isolate->runtime_profiler()->OptimizeNow(); | 976 isolate->runtime_profiler()->OptimizeNow(); |
977 return isolate->heap()->undefined_value(); | 977 return isolate->heap()->undefined_value(); |
978 } | 978 } |
979 | 979 |
980 } } // namespace v8::internal | 980 } } // namespace v8::internal |
OLD | NEW |