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

Side by Side Diff: src/api.h

Issue 17155014: API for DataView. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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') | src/api.cc » ('J')
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 V(FunctionTemplate, FunctionTemplateInfo) \ 163 V(FunctionTemplate, FunctionTemplateInfo) \
164 V(ObjectTemplate, ObjectTemplateInfo) \ 164 V(ObjectTemplate, ObjectTemplateInfo) \
165 V(Signature, SignatureInfo) \ 165 V(Signature, SignatureInfo) \
166 V(AccessorSignature, FunctionTemplateInfo) \ 166 V(AccessorSignature, FunctionTemplateInfo) \
167 V(TypeSwitch, TypeSwitchInfo) \ 167 V(TypeSwitch, TypeSwitchInfo) \
168 V(Data, Object) \ 168 V(Data, Object) \
169 V(RegExp, JSRegExp) \ 169 V(RegExp, JSRegExp) \
170 V(Object, JSObject) \ 170 V(Object, JSObject) \
171 V(Array, JSArray) \ 171 V(Array, JSArray) \
172 V(ArrayBuffer, JSArrayBuffer) \ 172 V(ArrayBuffer, JSArrayBuffer) \
173 V(ArrayBufferView, JSArrayBufferView) \
173 V(TypedArray, JSTypedArray) \ 174 V(TypedArray, JSTypedArray) \
174 V(Uint8Array, JSTypedArray) \ 175 V(Uint8Array, JSTypedArray) \
175 V(Uint8ClampedArray, 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) \
184 V(DataView, JSDataView) \
183 V(String, String) \ 185 V(String, String) \
184 V(Symbol, Symbol) \ 186 V(Symbol, Symbol) \
185 V(Script, Object) \ 187 V(Script, Object) \
186 V(Function, JSFunction) \ 188 V(Function, JSFunction) \
187 V(Message, JSObject) \ 189 V(Message, JSObject) \
188 V(Context, Context) \ 190 V(Context, Context) \
189 V(External, Foreign) \ 191 V(External, Foreign) \
190 V(StackTrace, JSArray) \ 192 V(StackTrace, JSArray) \
191 V(StackFrame, JSObject) \ 193 V(StackFrame, JSObject) \
192 V(DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) 194 V(DeclaredAccessorDescriptor, DeclaredAccessorDescriptor)
(...skipping 17 matching lines...) Expand all
210 static inline Local<Symbol> ToLocal( 212 static inline Local<Symbol> ToLocal(
211 v8::internal::Handle<v8::internal::Symbol> obj); 213 v8::internal::Handle<v8::internal::Symbol> obj);
212 static inline Local<RegExp> ToLocal( 214 static inline Local<RegExp> ToLocal(
213 v8::internal::Handle<v8::internal::JSRegExp> obj); 215 v8::internal::Handle<v8::internal::JSRegExp> obj);
214 static inline Local<Object> ToLocal( 216 static inline Local<Object> ToLocal(
215 v8::internal::Handle<v8::internal::JSObject> obj); 217 v8::internal::Handle<v8::internal::JSObject> obj);
216 static inline Local<Array> ToLocal( 218 static inline Local<Array> ToLocal(
217 v8::internal::Handle<v8::internal::JSArray> obj); 219 v8::internal::Handle<v8::internal::JSArray> obj);
218 static inline Local<ArrayBuffer> ToLocal( 220 static inline Local<ArrayBuffer> ToLocal(
219 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); 221 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
222 static inline Local<ArrayBufferView> ToLocal(
223 v8::internal::Handle<v8::internal::JSArrayBufferView> obj);
224 static inline Local<DataView> ToLocal(
225 v8::internal::Handle<v8::internal::JSDataView> obj);
220 226
221 static inline Local<TypedArray> ToLocal( 227 static inline Local<TypedArray> ToLocal(
222 v8::internal::Handle<v8::internal::JSTypedArray> obj); 228 v8::internal::Handle<v8::internal::JSTypedArray> obj);
223 static inline Local<Uint8Array> ToLocalUint8Array( 229 static inline Local<Uint8Array> ToLocalUint8Array(
224 v8::internal::Handle<v8::internal::JSTypedArray> obj); 230 v8::internal::Handle<v8::internal::JSTypedArray> obj);
225 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray( 231 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray(
226 v8::internal::Handle<v8::internal::JSTypedArray> obj); 232 v8::internal::Handle<v8::internal::JSTypedArray> obj);
227 static inline Local<Int8Array> ToLocalInt8Array( 233 static inline Local<Int8Array> ToLocalInt8Array(
228 v8::internal::Handle<v8::internal::JSTypedArray> obj); 234 v8::internal::Handle<v8::internal::JSTypedArray> obj);
229 static inline Local<Uint16Array> ToLocalUint16Array( 235 static inline Local<Uint16Array> ToLocalUint16Array(
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 347
342 MAKE_TO_LOCAL(ToLocal, Context, Context) 348 MAKE_TO_LOCAL(ToLocal, Context, Context)
343 MAKE_TO_LOCAL(ToLocal, Object, Value) 349 MAKE_TO_LOCAL(ToLocal, Object, Value)
344 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 350 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
345 MAKE_TO_LOCAL(ToLocal, String, String) 351 MAKE_TO_LOCAL(ToLocal, String, String)
346 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 352 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
347 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 353 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
348 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 354 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
349 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 355 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
350 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) 356 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer)
357 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView)
358 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView)
351 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 359 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
352 360
353 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray) 361 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray)
354 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray) 362 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray)
355 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray) 363 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray)
356 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray) 364 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray)
357 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray) 365 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray)
358 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray) 366 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray)
359 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray) 367 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray)
360 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray) 368 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray)
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 stress_type_ = stress_type; 713 stress_type_ = stress_type;
706 } 714 }
707 715
708 private: 716 private:
709 static v8::Testing::StressType stress_type_; 717 static v8::Testing::StressType stress_type_;
710 }; 718 };
711 719
712 } } // namespace v8::internal 720 } } // namespace v8::internal
713 721
714 #endif // V8_API_H_ 722 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698