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