| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
| 10 #include "src/handles.h" | 10 #include "src/handles.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Call a function, just like Call(), but make sure to silently catch | 41 // Call a function, just like Call(), but make sure to silently catch |
| 42 // any thrown exceptions. The return value is either the result of | 42 // any thrown exceptions. The return value is either the result of |
| 43 // calling the function (if caught exception is false) or the exception | 43 // calling the function (if caught exception is false) or the exception |
| 44 // that occurred (if caught exception is true). | 44 // that occurred (if caught exception is true). |
| 45 // In the exception case, exception_out holds the caught exceptions, unless | 45 // In the exception case, exception_out holds the caught exceptions, unless |
| 46 // it is a termination exception. | 46 // it is a termination exception. |
| 47 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable, | 47 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable, |
| 48 Handle<Object> receiver, int argc, | 48 Handle<Object> receiver, int argc, |
| 49 Handle<Object> argv[], | 49 Handle<Object> argv[], |
| 50 MaybeHandle<Object>* exception_out = NULL); | 50 MaybeHandle<Object>* exception_out = NULL); |
| 51 |
| 52 static Handle<String> GetStackTraceLine(Handle<Object> recv, |
| 53 Handle<JSFunction> fun, |
| 54 Handle<Object> pos, |
| 55 Handle<Object> is_global); |
| 51 }; | 56 }; |
| 52 | 57 |
| 53 | 58 |
| 54 class ExecutionAccess; | 59 class ExecutionAccess; |
| 55 class PostponeInterruptsScope; | 60 class PostponeInterruptsScope; |
| 56 | 61 |
| 57 | 62 |
| 58 // StackGuard contains the handling of the limits that are used to limit the | 63 // StackGuard contains the handling of the limits that are used to limit the |
| 59 // number of nested invocations of JavaScript and the stack size used in each | 64 // number of nested invocations of JavaScript and the stack size used in each |
| 60 // invocation. | 65 // invocation. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 friend class StackLimitCheck; | 225 friend class StackLimitCheck; |
| 221 friend class PostponeInterruptsScope; | 226 friend class PostponeInterruptsScope; |
| 222 | 227 |
| 223 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 228 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 224 }; | 229 }; |
| 225 | 230 |
| 226 } // namespace internal | 231 } // namespace internal |
| 227 } // namespace v8 | 232 } // namespace v8 |
| 228 | 233 |
| 229 #endif // V8_EXECUTION_H_ | 234 #endif // V8_EXECUTION_H_ |
| OLD | NEW |