| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 static RegisteredExtension* first_extension_; | 133 static RegisteredExtension* first_extension_; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 | 136 |
| 137 #define OPEN_HANDLE_LIST(V) \ | 137 #define OPEN_HANDLE_LIST(V) \ |
| 138 V(Template, TemplateInfo) \ | 138 V(Template, TemplateInfo) \ |
| 139 V(FunctionTemplate, FunctionTemplateInfo) \ | 139 V(FunctionTemplate, FunctionTemplateInfo) \ |
| 140 V(ObjectTemplate, ObjectTemplateInfo) \ | 140 V(ObjectTemplate, ObjectTemplateInfo) \ |
| 141 V(Signature, SignatureInfo) \ | 141 V(Signature, SignatureInfo) \ |
| 142 V(AccessorSignature, FunctionTemplateInfo) \ | 142 V(AccessorSignature, FunctionTemplateInfo) \ |
| 143 V(Accessor, AccessorInfo) \ |
| 143 V(TypeSwitch, TypeSwitchInfo) \ | 144 V(TypeSwitch, TypeSwitchInfo) \ |
| 144 V(Data, Object) \ | 145 V(Data, Object) \ |
| 145 V(RegExp, JSRegExp) \ | 146 V(RegExp, JSRegExp) \ |
| 146 V(Object, JSObject) \ | 147 V(Object, JSObject) \ |
| 147 V(Array, JSArray) \ | 148 V(Array, JSArray) \ |
| 148 V(ArrayBuffer, JSArrayBuffer) \ | 149 V(ArrayBuffer, JSArrayBuffer) \ |
| 149 V(ArrayBufferView, JSArrayBufferView) \ | 150 V(ArrayBufferView, JSArrayBufferView) \ |
| 150 V(TypedArray, JSTypedArray) \ | 151 V(TypedArray, JSTypedArray) \ |
| 151 V(Uint8Array, JSTypedArray) \ | 152 V(Uint8Array, JSTypedArray) \ |
| 152 V(Uint8ClampedArray, JSTypedArray) \ | 153 V(Uint8ClampedArray, JSTypedArray) \ |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 static inline Local<Uint32> Uint32ToLocal( | 246 static inline Local<Uint32> Uint32ToLocal( |
| 246 v8::internal::Handle<v8::internal::Object> obj); | 247 v8::internal::Handle<v8::internal::Object> obj); |
| 247 static inline Local<FunctionTemplate> ToLocal( | 248 static inline Local<FunctionTemplate> ToLocal( |
| 248 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 249 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
| 249 static inline Local<ObjectTemplate> ToLocal( | 250 static inline Local<ObjectTemplate> ToLocal( |
| 250 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); | 251 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); |
| 251 static inline Local<Signature> ToLocal( | 252 static inline Local<Signature> ToLocal( |
| 252 v8::internal::Handle<v8::internal::SignatureInfo> obj); | 253 v8::internal::Handle<v8::internal::SignatureInfo> obj); |
| 253 static inline Local<AccessorSignature> AccessorSignatureToLocal( | 254 static inline Local<AccessorSignature> AccessorSignatureToLocal( |
| 254 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 255 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
| 256 static inline Local<Accessor> ToLocal( |
| 257 v8::internal::Handle<v8::internal::AccessorInfo> obj); |
| 255 static inline Local<TypeSwitch> ToLocal( | 258 static inline Local<TypeSwitch> ToLocal( |
| 256 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); | 259 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); |
| 257 static inline Local<External> ExternalToLocal( | 260 static inline Local<External> ExternalToLocal( |
| 258 v8::internal::Handle<v8::internal::JSObject> obj); | 261 v8::internal::Handle<v8::internal::JSObject> obj); |
| 259 static inline Local<DeclaredAccessorDescriptor> ToLocal( | 262 static inline Local<DeclaredAccessorDescriptor> ToLocal( |
| 260 v8::internal::Handle<v8::internal::DeclaredAccessorDescriptor> obj); | 263 v8::internal::Handle<v8::internal::DeclaredAccessorDescriptor> obj); |
| 261 | 264 |
| 262 #define DECLARE_OPEN_HANDLE(From, To) \ | 265 #define DECLARE_OPEN_HANDLE(From, To) \ |
| 263 static inline v8::internal::Handle<v8::internal::To> \ | 266 static inline v8::internal::Handle<v8::internal::To> \ |
| 264 OpenHandle(const From* that, bool allow_empty_handle = false); | 267 OpenHandle(const From* that, bool allow_empty_handle = false); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 351 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
| 349 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 352 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
| 350 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 353 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
| 351 | 354 |
| 352 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 355 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
| 353 | 356 |
| 354 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 357 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
| 355 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 358 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
| 356 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) | 359 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) |
| 357 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 360 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
| 361 MAKE_TO_LOCAL(ToLocal, AccessorInfo, Accessor) |
| 358 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 362 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
| 359 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 363 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
| 360 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) | 364 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) |
| 361 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) | 365 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) |
| 362 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) | 366 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) |
| 363 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 367 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
| 364 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) | 368 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) |
| 365 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) | 369 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) |
| 366 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) | 370 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) |
| 367 MAKE_TO_LOCAL(ToLocal, DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) | 371 MAKE_TO_LOCAL(ToLocal, DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 stress_type_ = stress_type; | 696 stress_type_ = stress_type; |
| 693 } | 697 } |
| 694 | 698 |
| 695 private: | 699 private: |
| 696 static v8::Testing::StressType stress_type_; | 700 static v8::Testing::StressType stress_type_; |
| 697 }; | 701 }; |
| 698 | 702 |
| 699 } } // namespace v8::internal | 703 } } // namespace v8::internal |
| 700 | 704 |
| 701 #endif // V8_API_H_ | 705 #endif // V8_API_H_ |
| OLD | NEW |