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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 51 |
52 // ECMA-262 9.9 | |
53 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | |
54 Handle<Object> obj); | |
55 | |
56 static Handle<String> GetStackTraceLine(Handle<Object> recv, | 52 static Handle<String> GetStackTraceLine(Handle<Object> recv, |
57 Handle<JSFunction> fun, | 53 Handle<JSFunction> fun, |
58 Handle<Object> pos, | 54 Handle<Object> pos, |
59 Handle<Object> is_global); | 55 Handle<Object> is_global); |
60 }; | 56 }; |
61 | 57 |
62 | 58 |
63 class ExecutionAccess; | 59 class ExecutionAccess; |
64 class PostponeInterruptsScope; | 60 class PostponeInterruptsScope; |
65 | 61 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 friend class StackLimitCheck; | 225 friend class StackLimitCheck; |
230 friend class PostponeInterruptsScope; | 226 friend class PostponeInterruptsScope; |
231 | 227 |
232 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 228 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
233 }; | 229 }; |
234 | 230 |
235 } // namespace internal | 231 } // namespace internal |
236 } // namespace v8 | 232 } // namespace v8 |
237 | 233 |
238 #endif // V8_EXECUTION_H_ | 234 #endif // V8_EXECUTION_H_ |
OLD | NEW |