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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( | 114 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( |
115 Isolate* isolate, | 115 Isolate* isolate, |
116 Handle<Object> object); | 116 Handle<Object> object); |
117 | 117 |
118 // Get a function delegate (or undefined) for the given non-function | 118 // Get a function delegate (or undefined) for the given non-function |
119 // object. Used for support calling objects as constructors. | 119 // object. Used for support calling objects as constructors. |
120 static Handle<Object> GetConstructorDelegate(Isolate* isolate, | 120 static Handle<Object> GetConstructorDelegate(Isolate* isolate, |
121 Handle<Object> object); | 121 Handle<Object> object); |
122 static MaybeHandle<Object> TryGetConstructorDelegate(Isolate* isolate, | 122 static MaybeHandle<Object> TryGetConstructorDelegate(Isolate* isolate, |
123 Handle<Object> object); | 123 Handle<Object> object); |
124 | |
125 static void RunMicrotasks(Isolate* isolate); | |
126 static void EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask); | |
127 }; | 124 }; |
128 | 125 |
129 | 126 |
130 class ExecutionAccess; | 127 class ExecutionAccess; |
131 | 128 |
132 | 129 |
133 // StackGuard contains the handling of the limits that are used to limit the | 130 // StackGuard contains the handling of the limits that are used to limit the |
134 // number of nested invocations of JavaScript and the stack size used in each | 131 // number of nested invocations of JavaScript and the stack size used in each |
135 // invocation. | 132 // invocation. |
136 class StackGuard V8_FINAL { | 133 class StackGuard V8_FINAL { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 friend class Isolate; | 278 friend class Isolate; |
282 friend class StackLimitCheck; | 279 friend class StackLimitCheck; |
283 friend class PostponeInterruptsScope; | 280 friend class PostponeInterruptsScope; |
284 | 281 |
285 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 282 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
286 }; | 283 }; |
287 | 284 |
288 } } // namespace v8::internal | 285 } } // namespace v8::internal |
289 | 286 |
290 #endif // V8_EXECUTION_H_ | 287 #endif // V8_EXECUTION_H_ |
OLD | NEW |