| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 Extension* extension_; | 132 Extension* extension_; |
| 133 RegisteredExtension* next_; | 133 RegisteredExtension* next_; |
| 134 static RegisteredExtension* first_extension_; | 134 static RegisteredExtension* first_extension_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 | 137 |
| 138 #define OPEN_HANDLE_LIST(V) \ | 138 #define OPEN_HANDLE_LIST(V) \ |
| 139 V(Template, TemplateInfo) \ | 139 V(Template, TemplateInfo) \ |
| 140 V(FunctionTemplate, FunctionTemplateInfo) \ | 140 V(FunctionTemplate, FunctionTemplateInfo) \ |
| 141 V(ObjectTemplate, ObjectTemplateInfo) \ | 141 V(ObjectTemplate, ObjectTemplateInfo) \ |
| 142 V(Signature, SignatureInfo) \ | 142 V(Signature, FunctionTemplateInfo) \ |
| 143 V(AccessorSignature, FunctionTemplateInfo) \ | 143 V(AccessorSignature, FunctionTemplateInfo) \ |
| 144 V(TypeSwitch, TypeSwitchInfo) \ | 144 V(TypeSwitch, TypeSwitchInfo) \ |
| 145 V(Data, Object) \ | 145 V(Data, Object) \ |
| 146 V(RegExp, JSRegExp) \ | 146 V(RegExp, JSRegExp) \ |
| 147 V(Object, JSObject) \ | 147 V(Object, JSObject) \ |
| 148 V(Array, JSArray) \ | 148 V(Array, JSArray) \ |
| 149 V(ArrayBuffer, JSArrayBuffer) \ | 149 V(ArrayBuffer, JSArrayBuffer) \ |
| 150 V(ArrayBufferView, JSArrayBufferView) \ | 150 V(ArrayBufferView, JSArrayBufferView) \ |
| 151 V(TypedArray, JSTypedArray) \ | 151 V(TypedArray, JSTypedArray) \ |
| 152 V(Uint8Array, JSTypedArray) \ | 152 V(Uint8Array, JSTypedArray) \ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 static inline Local<Number> NumberToLocal( | 240 static inline Local<Number> NumberToLocal( |
| 241 v8::internal::Handle<v8::internal::Object> obj); | 241 v8::internal::Handle<v8::internal::Object> obj); |
| 242 static inline Local<Integer> IntegerToLocal( | 242 static inline Local<Integer> IntegerToLocal( |
| 243 v8::internal::Handle<v8::internal::Object> obj); | 243 v8::internal::Handle<v8::internal::Object> obj); |
| 244 static inline Local<Uint32> Uint32ToLocal( | 244 static inline Local<Uint32> Uint32ToLocal( |
| 245 v8::internal::Handle<v8::internal::Object> obj); | 245 v8::internal::Handle<v8::internal::Object> obj); |
| 246 static inline Local<FunctionTemplate> ToLocal( | 246 static inline Local<FunctionTemplate> ToLocal( |
| 247 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 247 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
| 248 static inline Local<ObjectTemplate> ToLocal( | 248 static inline Local<ObjectTemplate> ToLocal( |
| 249 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); | 249 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); |
| 250 static inline Local<Signature> ToLocal( | 250 static inline Local<Signature> SignatureToLocal( |
| 251 v8::internal::Handle<v8::internal::SignatureInfo> obj); | 251 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
| 252 static inline Local<AccessorSignature> AccessorSignatureToLocal( | 252 static inline Local<AccessorSignature> AccessorSignatureToLocal( |
| 253 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 253 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
| 254 static inline Local<TypeSwitch> ToLocal( | 254 static inline Local<TypeSwitch> ToLocal( |
| 255 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); | 255 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); |
| 256 static inline Local<External> ExternalToLocal( | 256 static inline Local<External> ExternalToLocal( |
| 257 v8::internal::Handle<v8::internal::JSObject> obj); | 257 v8::internal::Handle<v8::internal::JSObject> obj); |
| 258 | 258 |
| 259 #define DECLARE_OPEN_HANDLE(From, To) \ | 259 #define DECLARE_OPEN_HANDLE(From, To) \ |
| 260 static inline v8::internal::Handle<v8::internal::To> \ | 260 static inline v8::internal::Handle<v8::internal::To> \ |
| 261 OpenHandle(const From* that, bool allow_empty_handle = false); | 261 OpenHandle(const From* that, bool allow_empty_handle = false); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 343 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
| 344 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) | 344 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
| 345 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 345 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
| 346 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 346 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
| 347 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 347 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
| 348 | 348 |
| 349 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 349 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
| 350 | 350 |
| 351 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 351 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
| 352 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 352 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
| 353 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) | 353 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) |
| 354 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 354 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
| 355 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 355 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
| 356 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 356 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
| 357 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) | 357 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) |
| 358 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) | 358 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) |
| 359 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) | 359 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) |
| 360 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 360 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
| 361 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) | 361 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) |
| 362 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) | 362 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) |
| 363 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) | 363 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 stress_type_ = stress_type; | 688 stress_type_ = stress_type; |
| 689 } | 689 } |
| 690 | 690 |
| 691 private: | 691 private: |
| 692 static v8::Testing::StressType stress_type_; | 692 static v8::Testing::StressType stress_type_; |
| 693 }; | 693 }; |
| 694 | 694 |
| 695 } } // namespace v8::internal | 695 } } // namespace v8::internal |
| 696 | 696 |
| 697 #endif // V8_API_H_ | 697 #endif // V8_API_H_ |
| OLD | NEW |