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 "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "include/v8-testing.h" | 10 #include "include/v8-testing.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 V(Uint8Array, JSTypedArray) \ | 152 V(Uint8Array, JSTypedArray) \ |
153 V(Uint8ClampedArray, JSTypedArray) \ | 153 V(Uint8ClampedArray, JSTypedArray) \ |
154 V(Int8Array, JSTypedArray) \ | 154 V(Int8Array, JSTypedArray) \ |
155 V(Uint16Array, JSTypedArray) \ | 155 V(Uint16Array, JSTypedArray) \ |
156 V(Int16Array, JSTypedArray) \ | 156 V(Int16Array, JSTypedArray) \ |
157 V(Uint32Array, JSTypedArray) \ | 157 V(Uint32Array, JSTypedArray) \ |
158 V(Int32Array, JSTypedArray) \ | 158 V(Int32Array, JSTypedArray) \ |
159 V(Float32Array, JSTypedArray) \ | 159 V(Float32Array, JSTypedArray) \ |
160 V(Float64Array, JSTypedArray) \ | 160 V(Float64Array, JSTypedArray) \ |
161 V(DataView, JSDataView) \ | 161 V(DataView, JSDataView) \ |
162 V(SharedArrayBuffer, JSArrayBuffer) \ | |
163 V(Name, Name) \ | 162 V(Name, Name) \ |
164 V(String, String) \ | 163 V(String, String) \ |
165 V(Symbol, Symbol) \ | 164 V(Symbol, Symbol) \ |
166 V(Script, JSFunction) \ | 165 V(Script, JSFunction) \ |
167 V(UnboundScript, SharedFunctionInfo) \ | 166 V(UnboundScript, SharedFunctionInfo) \ |
168 V(Function, JSFunction) \ | 167 V(Function, JSFunction) \ |
169 V(Message, JSMessageObject) \ | 168 V(Message, JSMessageObject) \ |
170 V(Context, Context) \ | 169 V(Context, Context) \ |
171 V(External, Object) \ | 170 V(External, Object) \ |
172 V(StackTrace, JSArray) \ | 171 V(StackTrace, JSArray) \ |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 223 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
225 static inline Local<Uint32Array> ToLocalUint32Array( | 224 static inline Local<Uint32Array> ToLocalUint32Array( |
226 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 225 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
227 static inline Local<Int32Array> ToLocalInt32Array( | 226 static inline Local<Int32Array> ToLocalInt32Array( |
228 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 227 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
229 static inline Local<Float32Array> ToLocalFloat32Array( | 228 static inline Local<Float32Array> ToLocalFloat32Array( |
230 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 229 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
231 static inline Local<Float64Array> ToLocalFloat64Array( | 230 static inline Local<Float64Array> ToLocalFloat64Array( |
232 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 231 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
233 | 232 |
234 static inline Local<SharedArrayBuffer> ToLocalShared( | |
235 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); | |
236 | |
237 static inline Local<Message> MessageToLocal( | 233 static inline Local<Message> MessageToLocal( |
238 v8::internal::Handle<v8::internal::Object> obj); | 234 v8::internal::Handle<v8::internal::Object> obj); |
239 static inline Local<Promise> PromiseToLocal( | 235 static inline Local<Promise> PromiseToLocal( |
240 v8::internal::Handle<v8::internal::JSObject> obj); | 236 v8::internal::Handle<v8::internal::JSObject> obj); |
241 static inline Local<StackTrace> StackTraceToLocal( | 237 static inline Local<StackTrace> StackTraceToLocal( |
242 v8::internal::Handle<v8::internal::JSArray> obj); | 238 v8::internal::Handle<v8::internal::JSArray> obj); |
243 static inline Local<StackFrame> StackFrameToLocal( | 239 static inline Local<StackFrame> StackFrameToLocal( |
244 v8::internal::Handle<v8::internal::JSObject> obj); | 240 v8::internal::Handle<v8::internal::JSObject> obj); |
245 static inline Local<Number> NumberToLocal( | 241 static inline Local<Number> NumberToLocal( |
246 v8::internal::Handle<v8::internal::Object> obj); | 242 v8::internal::Handle<v8::internal::Object> obj); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 MAKE_TO_LOCAL(ToLocal, Name, Name) | 353 MAKE_TO_LOCAL(ToLocal, Name, Name) |
358 MAKE_TO_LOCAL(ToLocal, String, String) | 354 MAKE_TO_LOCAL(ToLocal, String, String) |
359 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) | 355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) |
360 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) | 356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) |
361 MAKE_TO_LOCAL(ToLocal, JSObject, Object) | 357 MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
362 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 358 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
363 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) | 359 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
364 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 360 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
365 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 361 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
366 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 362 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
367 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) | |
368 | 363 |
369 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 364 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
370 | 365 |
371 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 366 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
372 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 367 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
373 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) | 368 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) |
374 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 369 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
375 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 370 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
376 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 371 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
377 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) | 372 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 stress_type_ = stress_type; | 701 stress_type_ = stress_type; |
707 } | 702 } |
708 | 703 |
709 private: | 704 private: |
710 static v8::Testing::StressType stress_type_; | 705 static v8::Testing::StressType stress_type_; |
711 }; | 706 }; |
712 | 707 |
713 } } // namespace v8::internal | 708 } } // namespace v8::internal |
714 | 709 |
715 #endif // V8_API_H_ | 710 #endif // V8_API_H_ |
OLD | NEW |