| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // a pending exception. | 54 // a pending exception. |
| 55 // | 55 // |
| 56 MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> func, | 56 MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> func, |
| 57 int argc, | 57 int argc, |
| 58 Handle<Object> argv[]); | 58 Handle<Object> argv[]); |
| 59 | 59 |
| 60 // Call a function, just like Call(), but make sure to silently catch | 60 // Call a function, just like Call(), but make sure to silently catch |
| 61 // any thrown exceptions. The return value is either the result of | 61 // any thrown exceptions. The return value is either the result of |
| 62 // calling the function (if caught exception is false) or the exception | 62 // calling the function (if caught exception is false) or the exception |
| 63 // that occurred (if caught exception is true). | 63 // that occurred (if caught exception is true). |
| 64 MUST_USE_RESULT static MaybeHandle<Object> TryCall( | 64 static MaybeHandle<Object> TryCall( |
| 65 Handle<JSFunction> func, | 65 Handle<JSFunction> func, |
| 66 Handle<Object> receiver, | 66 Handle<Object> receiver, |
| 67 int argc, | 67 int argc, |
| 68 Handle<Object> argv[], | 68 Handle<Object> argv[], |
| 69 Handle<Object>* exception_out = NULL); | 69 Handle<Object>* exception_out = NULL); |
| 70 | 70 |
| 71 // ECMA-262 9.3 | 71 // ECMA-262 9.3 |
| 72 MUST_USE_RESULT static MaybeHandle<Object> ToNumber( | 72 MUST_USE_RESULT static MaybeHandle<Object> ToNumber( |
| 73 Isolate* isolate, Handle<Object> obj); | 73 Isolate* isolate, Handle<Object> obj); |
| 74 | 74 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 friend class Isolate; | 299 friend class Isolate; |
| 300 friend class StackLimitCheck; | 300 friend class StackLimitCheck; |
| 301 friend class PostponeInterruptsScope; | 301 friend class PostponeInterruptsScope; |
| 302 | 302 |
| 303 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 303 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 } } // namespace v8::internal | 306 } } // namespace v8::internal |
| 307 | 307 |
| 308 #endif // V8_EXECUTION_H_ | 308 #endif // V8_EXECUTION_H_ |
| OLD | NEW |