| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, FunctionTemplateInfo) \ | 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(Map, JSMap) \ |
| 150 V(Set, JSSet) \ |
| 149 V(ArrayBuffer, JSArrayBuffer) \ | 151 V(ArrayBuffer, JSArrayBuffer) \ |
| 150 V(ArrayBufferView, JSArrayBufferView) \ | 152 V(ArrayBufferView, JSArrayBufferView) \ |
| 151 V(TypedArray, JSTypedArray) \ | 153 V(TypedArray, JSTypedArray) \ |
| 152 V(Uint8Array, JSTypedArray) \ | 154 V(Uint8Array, JSTypedArray) \ |
| 153 V(Uint8ClampedArray, JSTypedArray) \ | 155 V(Uint8ClampedArray, JSTypedArray) \ |
| 154 V(Int8Array, JSTypedArray) \ | 156 V(Int8Array, JSTypedArray) \ |
| 155 V(Uint16Array, JSTypedArray) \ | 157 V(Uint16Array, JSTypedArray) \ |
| 156 V(Int16Array, JSTypedArray) \ | 158 V(Int16Array, JSTypedArray) \ |
| 157 V(Uint32Array, JSTypedArray) \ | 159 V(Uint32Array, JSTypedArray) \ |
| 158 V(Int32Array, JSTypedArray) \ | 160 V(Int32Array, JSTypedArray) \ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 static inline Local<String> ToLocal( | 197 static inline Local<String> ToLocal( |
| 196 v8::internal::Handle<v8::internal::String> obj); | 198 v8::internal::Handle<v8::internal::String> obj); |
| 197 static inline Local<Symbol> ToLocal( | 199 static inline Local<Symbol> ToLocal( |
| 198 v8::internal::Handle<v8::internal::Symbol> obj); | 200 v8::internal::Handle<v8::internal::Symbol> obj); |
| 199 static inline Local<RegExp> ToLocal( | 201 static inline Local<RegExp> ToLocal( |
| 200 v8::internal::Handle<v8::internal::JSRegExp> obj); | 202 v8::internal::Handle<v8::internal::JSRegExp> obj); |
| 201 static inline Local<Object> ToLocal( | 203 static inline Local<Object> ToLocal( |
| 202 v8::internal::Handle<v8::internal::JSObject> obj); | 204 v8::internal::Handle<v8::internal::JSObject> obj); |
| 203 static inline Local<Array> ToLocal( | 205 static inline Local<Array> ToLocal( |
| 204 v8::internal::Handle<v8::internal::JSArray> obj); | 206 v8::internal::Handle<v8::internal::JSArray> obj); |
| 207 static inline Local<Map> ToLocal( |
| 208 v8::internal::Handle<v8::internal::JSMap> obj); |
| 209 static inline Local<Set> ToLocal( |
| 210 v8::internal::Handle<v8::internal::JSSet> obj); |
| 205 static inline Local<ArrayBuffer> ToLocal( | 211 static inline Local<ArrayBuffer> ToLocal( |
| 206 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); | 212 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
| 207 static inline Local<ArrayBufferView> ToLocal( | 213 static inline Local<ArrayBufferView> ToLocal( |
| 208 v8::internal::Handle<v8::internal::JSArrayBufferView> obj); | 214 v8::internal::Handle<v8::internal::JSArrayBufferView> obj); |
| 209 static inline Local<DataView> ToLocal( | 215 static inline Local<DataView> ToLocal( |
| 210 v8::internal::Handle<v8::internal::JSDataView> obj); | 216 v8::internal::Handle<v8::internal::JSDataView> obj); |
| 211 | 217 |
| 212 static inline Local<TypedArray> ToLocal( | 218 static inline Local<TypedArray> ToLocal( |
| 213 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 219 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 214 static inline Local<Uint8Array> ToLocalUint8Array( | 220 static inline Local<Uint8Array> ToLocalUint8Array( |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 355 |
| 350 MAKE_TO_LOCAL(ToLocal, Context, Context) | 356 MAKE_TO_LOCAL(ToLocal, Context, Context) |
| 351 MAKE_TO_LOCAL(ToLocal, Object, Value) | 357 MAKE_TO_LOCAL(ToLocal, Object, Value) |
| 352 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) | 358 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) |
| 353 MAKE_TO_LOCAL(ToLocal, Name, Name) | 359 MAKE_TO_LOCAL(ToLocal, Name, Name) |
| 354 MAKE_TO_LOCAL(ToLocal, String, String) | 360 MAKE_TO_LOCAL(ToLocal, String, String) |
| 355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) | 361 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) |
| 356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) | 362 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) |
| 357 MAKE_TO_LOCAL(ToLocal, JSObject, Object) | 363 MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
| 358 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 364 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
| 365 MAKE_TO_LOCAL(ToLocal, JSMap, Map) |
| 366 MAKE_TO_LOCAL(ToLocal, JSSet, Set) |
| 359 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) | 367 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
| 360 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 368 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
| 361 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 369 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
| 362 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 370 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
| 363 | 371 |
| 364 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 372 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
| 365 | 373 |
| 366 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 374 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
| 367 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 375 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
| 368 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) | 376 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 stress_type_ = stress_type; | 709 stress_type_ = stress_type; |
| 702 } | 710 } |
| 703 | 711 |
| 704 private: | 712 private: |
| 705 static v8::Testing::StressType stress_type_; | 713 static v8::Testing::StressType stress_type_; |
| 706 }; | 714 }; |
| 707 | 715 |
| 708 } } // namespace v8::internal | 716 } } // namespace v8::internal |
| 709 | 717 |
| 710 #endif // V8_API_H_ | 718 #endif // V8_API_H_ |
| OLD | NEW |