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

Side by Side Diff: src/api.h

Issue 14657003: Implementation of Uint8ClampedArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 V(Signature, SignatureInfo) \ 166 V(Signature, SignatureInfo) \
167 V(AccessorSignature, FunctionTemplateInfo) \ 167 V(AccessorSignature, FunctionTemplateInfo) \
168 V(TypeSwitch, TypeSwitchInfo) \ 168 V(TypeSwitch, TypeSwitchInfo) \
169 V(Data, Object) \ 169 V(Data, Object) \
170 V(RegExp, JSRegExp) \ 170 V(RegExp, JSRegExp) \
171 V(Object, JSObject) \ 171 V(Object, JSObject) \
172 V(Array, JSArray) \ 172 V(Array, JSArray) \
173 V(ArrayBuffer, JSArrayBuffer) \ 173 V(ArrayBuffer, JSArrayBuffer) \
174 V(TypedArray, JSTypedArray) \ 174 V(TypedArray, JSTypedArray) \
175 V(Uint8Array, JSTypedArray) \ 175 V(Uint8Array, JSTypedArray) \
176 V(Uint8ClampedArray, JSTypedArray) \
176 V(Int8Array, JSTypedArray) \ 177 V(Int8Array, JSTypedArray) \
177 V(Uint16Array, JSTypedArray) \ 178 V(Uint16Array, JSTypedArray) \
178 V(Int16Array, JSTypedArray) \ 179 V(Int16Array, JSTypedArray) \
179 V(Uint32Array, JSTypedArray) \ 180 V(Uint32Array, JSTypedArray) \
180 V(Int32Array, JSTypedArray) \ 181 V(Int32Array, JSTypedArray) \
181 V(Float32Array, JSTypedArray) \ 182 V(Float32Array, JSTypedArray) \
182 V(Float64Array, JSTypedArray) \ 183 V(Float64Array, JSTypedArray) \
183 V(String, String) \ 184 V(String, String) \
184 V(Symbol, Symbol) \ 185 V(Symbol, Symbol) \
185 V(Script, Object) \ 186 V(Script, Object) \
(...skipping 29 matching lines...) Expand all
215 v8::internal::Handle<v8::internal::JSObject> obj); 216 v8::internal::Handle<v8::internal::JSObject> obj);
216 static inline Local<Array> ToLocal( 217 static inline Local<Array> ToLocal(
217 v8::internal::Handle<v8::internal::JSArray> obj); 218 v8::internal::Handle<v8::internal::JSArray> obj);
218 static inline Local<ArrayBuffer> ToLocal( 219 static inline Local<ArrayBuffer> ToLocal(
219 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); 220 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
220 221
221 static inline Local<TypedArray> ToLocal( 222 static inline Local<TypedArray> ToLocal(
222 v8::internal::Handle<v8::internal::JSTypedArray> obj); 223 v8::internal::Handle<v8::internal::JSTypedArray> obj);
223 static inline Local<Uint8Array> ToLocalUint8Array( 224 static inline Local<Uint8Array> ToLocalUint8Array(
224 v8::internal::Handle<v8::internal::JSTypedArray> obj); 225 v8::internal::Handle<v8::internal::JSTypedArray> obj);
226 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray(
227 v8::internal::Handle<v8::internal::JSTypedArray> obj);
225 static inline Local<Int8Array> ToLocalInt8Array( 228 static inline Local<Int8Array> ToLocalInt8Array(
226 v8::internal::Handle<v8::internal::JSTypedArray> obj); 229 v8::internal::Handle<v8::internal::JSTypedArray> obj);
227 static inline Local<Uint16Array> ToLocalUint16Array( 230 static inline Local<Uint16Array> ToLocalUint16Array(
228 v8::internal::Handle<v8::internal::JSTypedArray> obj); 231 v8::internal::Handle<v8::internal::JSTypedArray> obj);
229 static inline Local<Int16Array> ToLocalInt16Array( 232 static inline Local<Int16Array> ToLocalInt16Array(
230 v8::internal::Handle<v8::internal::JSTypedArray> obj); 233 v8::internal::Handle<v8::internal::JSTypedArray> obj);
231 static inline Local<Uint32Array> ToLocalUint32Array( 234 static inline Local<Uint32Array> ToLocalUint32Array(
232 v8::internal::Handle<v8::internal::JSTypedArray> obj); 235 v8::internal::Handle<v8::internal::JSTypedArray> obj);
233 static inline Local<Int32Array> ToLocalInt32Array( 236 static inline Local<Int32Array> ToLocalInt32Array(
234 v8::internal::Handle<v8::internal::JSTypedArray> obj); 237 v8::internal::Handle<v8::internal::JSTypedArray> obj);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 318 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
316 MAKE_TO_LOCAL(ToLocal, String, String) 319 MAKE_TO_LOCAL(ToLocal, String, String)
317 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 320 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
318 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 321 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
319 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 322 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
320 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 323 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
321 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) 324 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer)
322 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 325 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
323 326
324 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray) 327 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray)
328 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray)
325 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray) 329 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray)
326 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray) 330 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray)
327 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray) 331 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray)
328 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray) 332 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray)
329 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray) 333 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray)
330 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray) 334 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray)
331 MAKE_TO_LOCAL_TYPED_ARRAY(Float64Array, kExternalDoubleArray) 335 MAKE_TO_LOCAL_TYPED_ARRAY(Float64Array, kExternalDoubleArray)
332 336
333 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) 337 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate)
334 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) 338 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate)
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 stress_type_ = stress_type; 656 stress_type_ = stress_type;
653 } 657 }
654 658
655 private: 659 private:
656 static v8::Testing::StressType stress_type_; 660 static v8::Testing::StressType stress_type_;
657 }; 661 };
658 662
659 } } // namespace v8::internal 663 } } // namespace v8::internal
660 664
661 #endif // V8_API_H_ 665 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698