OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_API_H_ | 5 #ifndef V8_API_H_ |
6 #define V8_API_H_ | 6 #define V8_API_H_ |
7 | 7 |
8 #include "include/v8-testing.h" | 8 #include "include/v8-testing.h" |
9 #include "src/contexts.h" | 9 #include "src/contexts.h" |
10 #include "src/debug/debug-interface.h" | 10 #include "src/debug/debug-interface.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 V(Name, Name) \ | 98 V(Name, Name) \ |
99 V(String, String) \ | 99 V(String, String) \ |
100 V(Symbol, Symbol) \ | 100 V(Symbol, Symbol) \ |
101 V(Script, JSFunction) \ | 101 V(Script, JSFunction) \ |
102 V(UnboundScript, SharedFunctionInfo) \ | 102 V(UnboundScript, SharedFunctionInfo) \ |
103 V(Module, Module) \ | 103 V(Module, Module) \ |
104 V(Function, JSReceiver) \ | 104 V(Function, JSReceiver) \ |
105 V(Message, JSMessageObject) \ | 105 V(Message, JSMessageObject) \ |
106 V(Context, Context) \ | 106 V(Context, Context) \ |
107 V(External, Object) \ | 107 V(External, Object) \ |
108 V(StackTrace, JSArray) \ | 108 V(StackTrace, FixedArray) \ |
109 V(StackFrame, StackFrameInfo) \ | 109 V(StackFrame, StackFrameInfo) \ |
110 V(Proxy, JSProxy) \ | 110 V(Proxy, JSProxy) \ |
111 V(NativeWeakMap, JSWeakMap) \ | 111 V(NativeWeakMap, JSWeakMap) \ |
112 V(debug::GeneratorObject, JSGeneratorObject) \ | 112 V(debug::GeneratorObject, JSGeneratorObject) \ |
113 V(debug::Script, Script) \ | 113 V(debug::Script, Script) \ |
114 V(Promise, JSPromise) \ | 114 V(Promise, JSPromise) \ |
115 V(DynamicImportResult, JSPromise) | 115 V(DynamicImportResult, JSPromise) |
116 | 116 |
117 class Utils { | 117 class Utils { |
118 public: | 118 public: |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 static inline Local<SharedArrayBuffer> ToLocalShared( | 182 static inline Local<SharedArrayBuffer> ToLocalShared( |
183 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); | 183 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
184 | 184 |
185 static inline Local<Message> MessageToLocal( | 185 static inline Local<Message> MessageToLocal( |
186 v8::internal::Handle<v8::internal::Object> obj); | 186 v8::internal::Handle<v8::internal::Object> obj); |
187 static inline Local<Promise> PromiseToLocal( | 187 static inline Local<Promise> PromiseToLocal( |
188 v8::internal::Handle<v8::internal::JSObject> obj); | 188 v8::internal::Handle<v8::internal::JSObject> obj); |
189 static inline Local<DynamicImportResult> PromiseToDynamicImportResult( | 189 static inline Local<DynamicImportResult> PromiseToDynamicImportResult( |
190 v8::internal::Handle<v8::internal::JSPromise> obj); | 190 v8::internal::Handle<v8::internal::JSPromise> obj); |
191 static inline Local<StackTrace> StackTraceToLocal( | 191 static inline Local<StackTrace> StackTraceToLocal( |
192 v8::internal::Handle<v8::internal::JSArray> obj); | 192 v8::internal::Handle<v8::internal::FixedArray> obj); |
193 static inline Local<StackFrame> StackFrameToLocal( | 193 static inline Local<StackFrame> StackFrameToLocal( |
194 v8::internal::Handle<v8::internal::StackFrameInfo> obj); | 194 v8::internal::Handle<v8::internal::StackFrameInfo> obj); |
195 static inline Local<Number> NumberToLocal( | 195 static inline Local<Number> NumberToLocal( |
196 v8::internal::Handle<v8::internal::Object> obj); | 196 v8::internal::Handle<v8::internal::Object> obj); |
197 static inline Local<Integer> IntegerToLocal( | 197 static inline Local<Integer> IntegerToLocal( |
198 v8::internal::Handle<v8::internal::Object> obj); | 198 v8::internal::Handle<v8::internal::Object> obj); |
199 static inline Local<Uint32> Uint32ToLocal( | 199 static inline Local<Uint32> Uint32ToLocal( |
200 v8::internal::Handle<v8::internal::Object> obj); | 200 v8::internal::Handle<v8::internal::Object> obj); |
201 static inline Local<FunctionTemplate> ToLocal( | 201 static inline Local<FunctionTemplate> ToLocal( |
202 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 202 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 315 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
316 | 316 |
317 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 317 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
318 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 318 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
319 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) | 319 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) |
320 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 320 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
321 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 321 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
322 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) | 322 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) |
323 MAKE_TO_LOCAL(PromiseToDynamicImportResult, JSPromise, DynamicImportResult) | 323 MAKE_TO_LOCAL(PromiseToDynamicImportResult, JSPromise, DynamicImportResult) |
324 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) | 324 MAKE_TO_LOCAL(StackTraceToLocal, FixedArray, StackTrace) |
325 MAKE_TO_LOCAL(StackFrameToLocal, StackFrameInfo, StackFrame) | 325 MAKE_TO_LOCAL(StackFrameToLocal, StackFrameInfo, StackFrame) |
326 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 326 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
327 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) | 327 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) |
328 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) | 328 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) |
329 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) | 329 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) |
330 MAKE_TO_LOCAL(NativeWeakMapToLocal, JSWeakMap, NativeWeakMap) | 330 MAKE_TO_LOCAL(NativeWeakMapToLocal, JSWeakMap, NativeWeakMap) |
331 MAKE_TO_LOCAL(CallableToLocal, JSReceiver, Function) | 331 MAKE_TO_LOCAL(CallableToLocal, JSReceiver, Function) |
332 | 332 |
333 #undef MAKE_TO_LOCAL_TYPED_ARRAY | 333 #undef MAKE_TO_LOCAL_TYPED_ARRAY |
334 #undef MAKE_TO_LOCAL | 334 #undef MAKE_TO_LOCAL |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 } | 669 } |
670 | 670 |
671 private: | 671 private: |
672 static v8::Testing::StressType stress_type_; | 672 static v8::Testing::StressType stress_type_; |
673 }; | 673 }; |
674 | 674 |
675 } // namespace internal | 675 } // namespace internal |
676 } // namespace v8 | 676 } // namespace v8 |
677 | 677 |
678 #endif // V8_API_H_ | 678 #endif // V8_API_H_ |
OLD | NEW |