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