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/handles.h" | 8 #include "src/handles.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 Isolate* isolate, Handle<Object> obj); | 78 Isolate* isolate, Handle<Object> obj); |
79 | 79 |
80 // ECMA-262 9.9 | 80 // ECMA-262 9.9 |
81 MUST_USE_RESULT static MaybeHandle<Object> ToObject( | 81 MUST_USE_RESULT static MaybeHandle<Object> ToObject( |
82 Isolate* isolate, Handle<Object> obj); | 82 Isolate* isolate, Handle<Object> obj); |
83 | 83 |
84 // Create a new date object from 'time'. | 84 // Create a new date object from 'time'. |
85 MUST_USE_RESULT static MaybeHandle<Object> NewDate( | 85 MUST_USE_RESULT static MaybeHandle<Object> NewDate( |
86 Isolate* isolate, double time); | 86 Isolate* isolate, double time); |
87 | 87 |
| 88 MUST_USE_RESULT static MaybeHandle<Object> PromiseHasRejectHandler( |
| 89 Isolate* isolate, Handle<Object> promise); |
| 90 |
88 // Create a new regular expression object from 'pattern' and 'flags'. | 91 // Create a new regular expression object from 'pattern' and 'flags'. |
89 MUST_USE_RESULT static MaybeHandle<JSRegExp> NewJSRegExp( | 92 MUST_USE_RESULT static MaybeHandle<JSRegExp> NewJSRegExp( |
90 Handle<String> pattern, Handle<String> flags); | 93 Handle<String> pattern, Handle<String> flags); |
91 | 94 |
92 // Used to implement [] notation on strings (calls JS code) | 95 // Used to implement [] notation on strings (calls JS code) |
93 static Handle<Object> CharAt(Handle<String> str, uint32_t index); | 96 static Handle<Object> CharAt(Handle<String> str, uint32_t index); |
94 | 97 |
95 static Handle<Object> GetFunctionFor(); | 98 static Handle<Object> GetFunctionFor(); |
96 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( | 99 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( |
97 Handle<FunctionTemplateInfo> data); | 100 Handle<FunctionTemplateInfo> data); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 friend class Isolate; | 272 friend class Isolate; |
270 friend class StackLimitCheck; | 273 friend class StackLimitCheck; |
271 friend class PostponeInterruptsScope; | 274 friend class PostponeInterruptsScope; |
272 | 275 |
273 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 276 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
274 }; | 277 }; |
275 | 278 |
276 } } // namespace v8::internal | 279 } } // namespace v8::internal |
277 | 280 |
278 #endif // V8_EXECUTION_H_ | 281 #endif // V8_EXECUTION_H_ |
OLD | NEW |