| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 V(TypedArray, JSTypedArray) \ | 153 V(TypedArray, JSTypedArray) \ |
| 154 V(Uint8Array, JSTypedArray) \ | 154 V(Uint8Array, JSTypedArray) \ |
| 155 V(Uint8ClampedArray, JSTypedArray) \ | 155 V(Uint8ClampedArray, JSTypedArray) \ |
| 156 V(Int8Array, JSTypedArray) \ | 156 V(Int8Array, JSTypedArray) \ |
| 157 V(Uint16Array, JSTypedArray) \ | 157 V(Uint16Array, JSTypedArray) \ |
| 158 V(Int16Array, JSTypedArray) \ | 158 V(Int16Array, JSTypedArray) \ |
| 159 V(Uint32Array, JSTypedArray) \ | 159 V(Uint32Array, JSTypedArray) \ |
| 160 V(Int32Array, JSTypedArray) \ | 160 V(Int32Array, JSTypedArray) \ |
| 161 V(Float32Array, JSTypedArray) \ | 161 V(Float32Array, JSTypedArray) \ |
| 162 V(Float64Array, JSTypedArray) \ | 162 V(Float64Array, JSTypedArray) \ |
| 163 V(Float32x4, Float32x4) \ |
| 163 V(DataView, JSDataView) \ | 164 V(DataView, JSDataView) \ |
| 164 V(SharedArrayBuffer, JSArrayBuffer) \ | 165 V(SharedArrayBuffer, JSArrayBuffer) \ |
| 165 V(Name, Name) \ | 166 V(Name, Name) \ |
| 166 V(String, String) \ | 167 V(String, String) \ |
| 167 V(Symbol, Symbol) \ | 168 V(Symbol, Symbol) \ |
| 168 V(Script, JSFunction) \ | 169 V(Script, JSFunction) \ |
| 169 V(UnboundScript, SharedFunctionInfo) \ | 170 V(UnboundScript, SharedFunctionInfo) \ |
| 170 V(Function, JSFunction) \ | 171 V(Function, JSFunction) \ |
| 171 V(Message, JSMessageObject) \ | 172 V(Message, JSMessageObject) \ |
| 172 V(Context, Context) \ | 173 V(Context, Context) \ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 231 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 231 static inline Local<Uint32Array> ToLocalUint32Array( | 232 static inline Local<Uint32Array> ToLocalUint32Array( |
| 232 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 233 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 233 static inline Local<Int32Array> ToLocalInt32Array( | 234 static inline Local<Int32Array> ToLocalInt32Array( |
| 234 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 235 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 235 static inline Local<Float32Array> ToLocalFloat32Array( | 236 static inline Local<Float32Array> ToLocalFloat32Array( |
| 236 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 237 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 237 static inline Local<Float64Array> ToLocalFloat64Array( | 238 static inline Local<Float64Array> ToLocalFloat64Array( |
| 238 v8::internal::Handle<v8::internal::JSTypedArray> obj); | 239 v8::internal::Handle<v8::internal::JSTypedArray> obj); |
| 239 | 240 |
| 241 static inline Local<Float32x4> ToLocal( |
| 242 v8::internal::Handle<v8::internal::Float32x4> obj); |
| 243 |
| 240 static inline Local<SharedArrayBuffer> ToLocalShared( | 244 static inline Local<SharedArrayBuffer> ToLocalShared( |
| 241 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); | 245 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
| 242 | 246 |
| 243 static inline Local<Message> MessageToLocal( | 247 static inline Local<Message> MessageToLocal( |
| 244 v8::internal::Handle<v8::internal::Object> obj); | 248 v8::internal::Handle<v8::internal::Object> obj); |
| 245 static inline Local<Promise> PromiseToLocal( | 249 static inline Local<Promise> PromiseToLocal( |
| 246 v8::internal::Handle<v8::internal::JSObject> obj); | 250 v8::internal::Handle<v8::internal::JSObject> obj); |
| 247 static inline Local<StackTrace> StackTraceToLocal( | 251 static inline Local<StackTrace> StackTraceToLocal( |
| 248 v8::internal::Handle<v8::internal::JSArray> obj); | 252 v8::internal::Handle<v8::internal::JSArray> obj); |
| 249 static inline Local<StackFrame> StackFrameToLocal( | 253 static inline Local<StackFrame> StackFrameToLocal( |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 MAKE_TO_LOCAL(ToLocal, JSMap, Map) | 373 MAKE_TO_LOCAL(ToLocal, JSMap, Map) |
| 370 MAKE_TO_LOCAL(ToLocal, JSSet, Set) | 374 MAKE_TO_LOCAL(ToLocal, JSSet, Set) |
| 371 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) | 375 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
| 372 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 376 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
| 373 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 377 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
| 374 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 378 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
| 375 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) | 379 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) |
| 376 | 380 |
| 377 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) | 381 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) |
| 378 | 382 |
| 383 MAKE_TO_LOCAL(ToLocal, Float32x4, Float32x4) |
| 384 |
| 379 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 385 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
| 380 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 386 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
| 381 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) | 387 MAKE_TO_LOCAL(SignatureToLocal, FunctionTemplateInfo, Signature) |
| 382 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 388 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
| 383 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 389 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
| 384 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 390 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
| 385 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) | 391 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) |
| 386 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) | 392 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) |
| 387 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) | 393 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) |
| 388 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 394 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 stress_type_ = stress_type; | 720 stress_type_ = stress_type; |
| 715 } | 721 } |
| 716 | 722 |
| 717 private: | 723 private: |
| 718 static v8::Testing::StressType stress_type_; | 724 static v8::Testing::StressType stress_type_; |
| 719 }; | 725 }; |
| 720 | 726 |
| 721 } } // namespace v8::internal | 727 } } // namespace v8::internal |
| 722 | 728 |
| 723 #endif // V8_API_H_ | 729 #endif // V8_API_H_ |
| OLD | NEW |