Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: src/api.h

Issue 15943002: v8 typed arrays: add DataView type (Closed)
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 V(FunctionTemplate, FunctionTemplateInfo) \ 162 V(FunctionTemplate, FunctionTemplateInfo) \
163 V(ObjectTemplate, ObjectTemplateInfo) \ 163 V(ObjectTemplate, ObjectTemplateInfo) \
164 V(Signature, SignatureInfo) \ 164 V(Signature, SignatureInfo) \
165 V(AccessorSignature, FunctionTemplateInfo) \ 165 V(AccessorSignature, FunctionTemplateInfo) \
166 V(TypeSwitch, TypeSwitchInfo) \ 166 V(TypeSwitch, TypeSwitchInfo) \
167 V(Data, Object) \ 167 V(Data, Object) \
168 V(RegExp, JSRegExp) \ 168 V(RegExp, JSRegExp) \
169 V(Object, JSObject) \ 169 V(Object, JSObject) \
170 V(Array, JSArray) \ 170 V(Array, JSArray) \
171 V(ArrayBuffer, JSArrayBuffer) \ 171 V(ArrayBuffer, JSArrayBuffer) \
172 V(DataView, JSDataView) \
172 V(TypedArray, JSTypedArray) \ 173 V(TypedArray, JSTypedArray) \
173 V(Uint8Array, JSTypedArray) \ 174 V(Uint8Array, JSTypedArray) \
174 V(Uint8ClampedArray, JSTypedArray) \ 175 V(Uint8ClampedArray, JSTypedArray) \
175 V(Int8Array, JSTypedArray) \ 176 V(Int8Array, JSTypedArray) \
176 V(Uint16Array, JSTypedArray) \ 177 V(Uint16Array, JSTypedArray) \
177 V(Int16Array, JSTypedArray) \ 178 V(Int16Array, JSTypedArray) \
178 V(Uint32Array, JSTypedArray) \ 179 V(Uint32Array, JSTypedArray) \
179 V(Int32Array, JSTypedArray) \ 180 V(Int32Array, JSTypedArray) \
180 V(Float32Array, JSTypedArray) \ 181 V(Float32Array, JSTypedArray) \
181 V(Float64Array, JSTypedArray) \ 182 V(Float64Array, JSTypedArray) \
(...skipping 27 matching lines...) Expand all
209 static inline Local<Symbol> ToLocal( 210 static inline Local<Symbol> ToLocal(
210 v8::internal::Handle<v8::internal::Symbol> obj); 211 v8::internal::Handle<v8::internal::Symbol> obj);
211 static inline Local<RegExp> ToLocal( 212 static inline Local<RegExp> ToLocal(
212 v8::internal::Handle<v8::internal::JSRegExp> obj); 213 v8::internal::Handle<v8::internal::JSRegExp> obj);
213 static inline Local<Object> ToLocal( 214 static inline Local<Object> ToLocal(
214 v8::internal::Handle<v8::internal::JSObject> obj); 215 v8::internal::Handle<v8::internal::JSObject> obj);
215 static inline Local<Array> ToLocal( 216 static inline Local<Array> ToLocal(
216 v8::internal::Handle<v8::internal::JSArray> obj); 217 v8::internal::Handle<v8::internal::JSArray> obj);
217 static inline Local<ArrayBuffer> ToLocal( 218 static inline Local<ArrayBuffer> ToLocal(
218 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); 219 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
219 220 static inline Local<DataView> ToLocal(
221 v8::internal::Handle<v8::internal::JSDataView> obj);
220 static inline Local<TypedArray> ToLocal( 222 static inline Local<TypedArray> ToLocal(
221 v8::internal::Handle<v8::internal::JSTypedArray> obj); 223 v8::internal::Handle<v8::internal::JSTypedArray> obj);
222 static inline Local<Uint8Array> ToLocalUint8Array( 224 static inline Local<Uint8Array> ToLocalUint8Array(
223 v8::internal::Handle<v8::internal::JSTypedArray> obj); 225 v8::internal::Handle<v8::internal::JSTypedArray> obj);
224 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray( 226 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray(
225 v8::internal::Handle<v8::internal::JSTypedArray> obj); 227 v8::internal::Handle<v8::internal::JSTypedArray> obj);
226 static inline Local<Int8Array> ToLocalInt8Array( 228 static inline Local<Int8Array> ToLocalInt8Array(
227 v8::internal::Handle<v8::internal::JSTypedArray> obj); 229 v8::internal::Handle<v8::internal::JSTypedArray> obj);
228 static inline Local<Uint16Array> ToLocalUint16Array( 230 static inline Local<Uint16Array> ToLocalUint16Array(
229 v8::internal::Handle<v8::internal::JSTypedArray> obj); 231 v8::internal::Handle<v8::internal::JSTypedArray> obj);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 324
323 MAKE_TO_LOCAL(ToLocal, Context, Context) 325 MAKE_TO_LOCAL(ToLocal, Context, Context)
324 MAKE_TO_LOCAL(ToLocal, Object, Value) 326 MAKE_TO_LOCAL(ToLocal, Object, Value)
325 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 327 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
326 MAKE_TO_LOCAL(ToLocal, String, String) 328 MAKE_TO_LOCAL(ToLocal, String, String)
327 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 329 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
328 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 330 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
329 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 331 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
330 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 332 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
331 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) 333 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer)
334 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView)
332 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 335 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
333 336
334 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray) 337 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray)
335 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray) 338 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray)
336 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray) 339 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray)
337 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray) 340 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray)
338 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray) 341 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray)
339 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray) 342 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray)
340 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray) 343 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray)
341 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray) 344 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray)
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 stress_type_ = stress_type; 666 stress_type_ = stress_type;
664 } 667 }
665 668
666 private: 669 private:
667 static v8::Testing::StressType stress_type_; 670 static v8::Testing::StressType stress_type_;
668 }; 671 };
669 672
670 } } // namespace v8::internal 673 } } // namespace v8::internal
671 674
672 #endif // V8_API_H_ 675 #endif // V8_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698