| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 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 | 124 #endif |
| 125 | 125 |
| 126 // If the stack guard is triggered, but it is not an actual | 126 // If the stack guard is triggered, but it is not an actual |
| 127 // stack overflow, then handle the interruption accordingly. | 127 // stack overflow, then handle the interruption accordingly. |
| 128 MUST_USE_RESULT static MaybeObject* HandleStackGuardInterrupt( | 128 static Object* HandleStackGuardInterrupt(Isolate* isolate); |
| 129 Isolate* isolate); | |
| 130 | 129 |
| 131 // Get a function delegate (or undefined) for the given non-function | 130 // Get a function delegate (or undefined) for the given non-function |
| 132 // object. Used for support calling objects as functions. | 131 // object. Used for support calling objects as functions. |
| 133 static Handle<Object> GetFunctionDelegate(Isolate* isolate, | 132 static Handle<Object> GetFunctionDelegate(Isolate* isolate, |
| 134 Handle<Object> object); | 133 Handle<Object> object); |
| 135 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( | 134 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( |
| 136 Isolate* isolate, | 135 Isolate* isolate, |
| 137 Handle<Object> object); | 136 Handle<Object> object); |
| 138 | 137 |
| 139 // Get a function delegate (or undefined) for the given non-function | 138 // Get a function delegate (or undefined) for the given non-function |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 friend class Isolate; | 298 friend class Isolate; |
| 300 friend class StackLimitCheck; | 299 friend class StackLimitCheck; |
| 301 friend class PostponeInterruptsScope; | 300 friend class PostponeInterruptsScope; |
| 302 | 301 |
| 303 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 302 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 304 }; | 303 }; |
| 305 | 304 |
| 306 } } // namespace v8::internal | 305 } } // namespace v8::internal |
| 307 | 306 |
| 308 #endif // V8_EXECUTION_H_ | 307 #endif // V8_EXECUTION_H_ |
| OLD | NEW |