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" |
11 #include "src/utils.h" | 11 #include "src/utils.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 class Execution final : public AllStatic { | 16 class Execution final : public AllStatic { |
17 public: | 17 public: |
18 // Call a function, the caller supplies a receiver and an array | 18 // Call a function, the caller supplies a receiver and an array |
19 // of arguments. | 19 // of arguments. |
20 // | 20 // |
21 // When the function called is not in strict mode, receiver is | 21 // When the function called is not in strict mode, receiver is |
22 // converted to an object. | 22 // converted to an object. |
23 // | 23 // |
24 MUST_USE_RESULT static MaybeHandle<Object> Call(Isolate* isolate, | 24 V8_EXPORT_PRIVATE MUST_USE_RESULT static MaybeHandle<Object> Call( |
25 Handle<Object> callable, | 25 Isolate* isolate, Handle<Object> callable, Handle<Object> receiver, |
26 Handle<Object> receiver, | 26 int argc, Handle<Object> argv[]); |
27 int argc, | |
28 Handle<Object> argv[]); | |
29 | 27 |
30 // Construct object from function, the caller supplies an array of | 28 // Construct object from function, the caller supplies an array of |
31 // arguments. | 29 // arguments. |
32 MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> constructor, | 30 MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> constructor, |
33 int argc, | 31 int argc, |
34 Handle<Object> argv[]); | 32 Handle<Object> argv[]); |
35 MUST_USE_RESULT static MaybeHandle<Object> New(Isolate* isolate, | 33 MUST_USE_RESULT static MaybeHandle<Object> New(Isolate* isolate, |
36 Handle<Object> constructor, | 34 Handle<Object> constructor, |
37 Handle<Object> new_target, | 35 Handle<Object> new_target, |
38 int argc, | 36 int argc, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 friend class StackLimitCheck; | 218 friend class StackLimitCheck; |
221 friend class PostponeInterruptsScope; | 219 friend class PostponeInterruptsScope; |
222 | 220 |
223 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 221 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
224 }; | 222 }; |
225 | 223 |
226 } // namespace internal | 224 } // namespace internal |
227 } // namespace v8 | 225 } // namespace v8 |
228 | 226 |
229 #endif // V8_EXECUTION_H_ | 227 #endif // V8_EXECUTION_H_ |
OLD | NEW |