| 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 #ifndef V8_EXECUTION_H_ | 5 #ifndef V8_EXECUTION_H_ |
| 6 #define V8_EXECUTION_H_ | 6 #define V8_EXECUTION_H_ |
| 7 | 7 |
| 8 #include "handles.h" | 8 #include "handles.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( | 111 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( |
| 112 Handle<FunctionTemplateInfo> data); | 112 Handle<FunctionTemplateInfo> data); |
| 113 MUST_USE_RESULT static MaybeHandle<JSObject> InstantiateObject( | 113 MUST_USE_RESULT static MaybeHandle<JSObject> InstantiateObject( |
| 114 Handle<ObjectTemplateInfo> data); | 114 Handle<ObjectTemplateInfo> data); |
| 115 MUST_USE_RESULT static MaybeHandle<Object> ConfigureInstance( | 115 MUST_USE_RESULT static MaybeHandle<Object> ConfigureInstance( |
| 116 Isolate* isolate, Handle<Object> instance, Handle<Object> data); | 116 Isolate* isolate, Handle<Object> instance, Handle<Object> data); |
| 117 static Handle<String> GetStackTraceLine(Handle<Object> recv, | 117 static Handle<String> GetStackTraceLine(Handle<Object> recv, |
| 118 Handle<JSFunction> fun, | 118 Handle<JSFunction> fun, |
| 119 Handle<Object> pos, | 119 Handle<Object> pos, |
| 120 Handle<Object> is_global); | 120 Handle<Object> is_global); |
| 121 #ifdef ENABLE_DEBUGGER_SUPPORT | 121 |
| 122 static Object* DebugBreakHelper(Isolate* isolate); | 122 static Object* DebugBreakHelper(Isolate* isolate); |
| 123 static void ProcessDebugMessages(Isolate* isolate, bool debug_command_only); | 123 static void ProcessDebugMessages(Isolate* isolate, bool debug_command_only); |
| 124 #endif | |
| 125 | 124 |
| 126 // If the stack guard is triggered, but it is not an actual | 125 // If the stack guard is triggered, but it is not an actual |
| 127 // stack overflow, then handle the interruption accordingly. | 126 // stack overflow, then handle the interruption accordingly. |
| 128 static Object* HandleStackGuardInterrupt(Isolate* isolate); | 127 static Object* HandleStackGuardInterrupt(Isolate* isolate); |
| 129 | 128 |
| 130 // Get a function delegate (or undefined) for the given non-function | 129 // Get a function delegate (or undefined) for the given non-function |
| 131 // object. Used for support calling objects as functions. | 130 // object. Used for support calling objects as functions. |
| 132 static Handle<Object> GetFunctionDelegate(Isolate* isolate, | 131 static Handle<Object> GetFunctionDelegate(Isolate* isolate, |
| 133 Handle<Object> object); | 132 Handle<Object> object); |
| 134 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( | 133 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void ClearThread(const ExecutionAccess& lock); | 171 void ClearThread(const ExecutionAccess& lock); |
| 173 | 172 |
| 174 bool IsStackOverflow(); | 173 bool IsStackOverflow(); |
| 175 bool IsPreempted(); | 174 bool IsPreempted(); |
| 176 void Preempt(); | 175 void Preempt(); |
| 177 bool IsInterrupted(); | 176 bool IsInterrupted(); |
| 178 void Interrupt(); | 177 void Interrupt(); |
| 179 bool IsTerminateExecution(); | 178 bool IsTerminateExecution(); |
| 180 void TerminateExecution(); | 179 void TerminateExecution(); |
| 181 void CancelTerminateExecution(); | 180 void CancelTerminateExecution(); |
| 182 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 183 bool IsDebugBreak(); | 181 bool IsDebugBreak(); |
| 184 void DebugBreak(); | 182 void DebugBreak(); |
| 185 bool IsDebugCommand(); | 183 bool IsDebugCommand(); |
| 186 void DebugCommand(); | 184 void DebugCommand(); |
| 187 #endif | |
| 188 bool IsGCRequest(); | 185 bool IsGCRequest(); |
| 189 void RequestGC(); | 186 void RequestGC(); |
| 190 bool IsInstallCodeRequest(); | 187 bool IsInstallCodeRequest(); |
| 191 void RequestInstallCode(); | 188 void RequestInstallCode(); |
| 192 bool IsFullDeopt(); | 189 bool IsFullDeopt(); |
| 193 void FullDeopt(); | 190 void FullDeopt(); |
| 194 bool IsDeoptMarkedAllocationSites(); | 191 bool IsDeoptMarkedAllocationSites(); |
| 195 void DeoptMarkedAllocationSites(); | 192 void DeoptMarkedAllocationSites(); |
| 196 void Continue(InterruptFlag after_what); | 193 void Continue(InterruptFlag after_what); |
| 197 | 194 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 friend class Isolate; | 295 friend class Isolate; |
| 299 friend class StackLimitCheck; | 296 friend class StackLimitCheck; |
| 300 friend class PostponeInterruptsScope; | 297 friend class PostponeInterruptsScope; |
| 301 | 298 |
| 302 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 299 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 303 }; | 300 }; |
| 304 | 301 |
| 305 } } // namespace v8::internal | 302 } } // namespace v8::internal |
| 306 | 303 |
| 307 #endif // V8_EXECUTION_H_ | 304 #endif // V8_EXECUTION_H_ |
| OLD | NEW |