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

Side by Side Diff: src/api.h

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 V(ArrayBufferView, JSArrayBufferView) \ 173 V(ArrayBufferView, JSArrayBufferView) \
174 V(TypedArray, JSTypedArray) \ 174 V(TypedArray, JSTypedArray) \
175 V(Uint8Array, JSTypedArray) \ 175 V(Uint8Array, JSTypedArray) \
176 V(Uint8ClampedArray, JSTypedArray) \ 176 V(Uint8ClampedArray, JSTypedArray) \
177 V(Int8Array, JSTypedArray) \ 177 V(Int8Array, JSTypedArray) \
178 V(Uint16Array, JSTypedArray) \ 178 V(Uint16Array, JSTypedArray) \
179 V(Int16Array, JSTypedArray) \ 179 V(Int16Array, JSTypedArray) \
180 V(Uint32Array, JSTypedArray) \ 180 V(Uint32Array, JSTypedArray) \
181 V(Int32Array, JSTypedArray) \ 181 V(Int32Array, JSTypedArray) \
182 V(Float32Array, JSTypedArray) \ 182 V(Float32Array, JSTypedArray) \
183 V(Float32x4Array, JSTypedArray) \
184 V(Int32x4Array, JSTypedArray) \
183 V(Float64Array, JSTypedArray) \ 185 V(Float64Array, JSTypedArray) \
184 V(DataView, JSDataView) \ 186 V(DataView, JSDataView) \
185 V(String, String) \ 187 V(String, String) \
186 V(Symbol, Symbol) \ 188 V(Symbol, Symbol) \
187 V(Script, Object) \ 189 V(Script, Object) \
188 V(Function, JSFunction) \ 190 V(Function, JSFunction) \
189 V(Message, JSObject) \ 191 V(Message, JSObject) \
190 V(Context, Context) \ 192 V(Context, Context) \
191 V(External, Foreign) \ 193 V(External, Foreign) \
192 V(StackTrace, JSArray) \ 194 V(StackTrace, JSArray) \
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 static inline Local<Uint16Array> ToLocalUint16Array( 237 static inline Local<Uint16Array> ToLocalUint16Array(
236 v8::internal::Handle<v8::internal::JSTypedArray> obj); 238 v8::internal::Handle<v8::internal::JSTypedArray> obj);
237 static inline Local<Int16Array> ToLocalInt16Array( 239 static inline Local<Int16Array> ToLocalInt16Array(
238 v8::internal::Handle<v8::internal::JSTypedArray> obj); 240 v8::internal::Handle<v8::internal::JSTypedArray> obj);
239 static inline Local<Uint32Array> ToLocalUint32Array( 241 static inline Local<Uint32Array> ToLocalUint32Array(
240 v8::internal::Handle<v8::internal::JSTypedArray> obj); 242 v8::internal::Handle<v8::internal::JSTypedArray> obj);
241 static inline Local<Int32Array> ToLocalInt32Array( 243 static inline Local<Int32Array> ToLocalInt32Array(
242 v8::internal::Handle<v8::internal::JSTypedArray> obj); 244 v8::internal::Handle<v8::internal::JSTypedArray> obj);
243 static inline Local<Float32Array> ToLocalFloat32Array( 245 static inline Local<Float32Array> ToLocalFloat32Array(
244 v8::internal::Handle<v8::internal::JSTypedArray> obj); 246 v8::internal::Handle<v8::internal::JSTypedArray> obj);
247 static inline Local<Float32x4Array> ToLocalFloat32x4Array(
248 v8::internal::Handle<v8::internal::JSTypedArray> obj);
249 static inline Local<Int32x4Array> ToLocalInt32x4Array(
250 v8::internal::Handle<v8::internal::JSTypedArray> obj);
245 static inline Local<Float64Array> ToLocalFloat64Array( 251 static inline Local<Float64Array> ToLocalFloat64Array(
246 v8::internal::Handle<v8::internal::JSTypedArray> obj); 252 v8::internal::Handle<v8::internal::JSTypedArray> obj);
247 253
248 static inline Local<Message> MessageToLocal( 254 static inline Local<Message> MessageToLocal(
249 v8::internal::Handle<v8::internal::Object> obj); 255 v8::internal::Handle<v8::internal::Object> obj);
250 static inline Local<StackTrace> StackTraceToLocal( 256 static inline Local<StackTrace> StackTraceToLocal(
251 v8::internal::Handle<v8::internal::JSArray> obj); 257 v8::internal::Handle<v8::internal::JSArray> obj);
252 static inline Local<StackFrame> StackFrameToLocal( 258 static inline Local<StackFrame> StackFrameToLocal(
253 v8::internal::Handle<v8::internal::JSObject> obj); 259 v8::internal::Handle<v8::internal::JSObject> obj);
254 static inline Local<Number> NumberToLocal( 260 static inline Local<Number> NumberToLocal(
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 365 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
360 366
361 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray) 367 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8Array, kExternalUnsignedByteArray)
362 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray) 368 MAKE_TO_LOCAL_TYPED_ARRAY(Uint8ClampedArray, kExternalPixelArray)
363 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray) 369 MAKE_TO_LOCAL_TYPED_ARRAY(Int8Array, kExternalByteArray)
364 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray) 370 MAKE_TO_LOCAL_TYPED_ARRAY(Uint16Array, kExternalUnsignedShortArray)
365 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray) 371 MAKE_TO_LOCAL_TYPED_ARRAY(Int16Array, kExternalShortArray)
366 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray) 372 MAKE_TO_LOCAL_TYPED_ARRAY(Uint32Array, kExternalUnsignedIntArray)
367 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray) 373 MAKE_TO_LOCAL_TYPED_ARRAY(Int32Array, kExternalIntArray)
368 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray) 374 MAKE_TO_LOCAL_TYPED_ARRAY(Float32Array, kExternalFloatArray)
375 MAKE_TO_LOCAL_TYPED_ARRAY(Float32x4Array, kExternalFloat32x4Array)
376 MAKE_TO_LOCAL_TYPED_ARRAY(Int32x4Array, kExternalInt32x4Array)
369 MAKE_TO_LOCAL_TYPED_ARRAY(Float64Array, kExternalDoubleArray) 377 MAKE_TO_LOCAL_TYPED_ARRAY(Float64Array, kExternalDoubleArray)
370 378
371 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) 379 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate)
372 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) 380 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate)
373 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) 381 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature)
374 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) 382 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature)
375 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) 383 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch)
376 MAKE_TO_LOCAL(MessageToLocal, Object, Message) 384 MAKE_TO_LOCAL(MessageToLocal, Object, Message)
377 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) 385 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace)
378 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) 386 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame)
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 stress_type_ = stress_type; 715 stress_type_ = stress_type;
708 } 716 }
709 717
710 private: 718 private:
711 static v8::Testing::StressType stress_type_; 719 static v8::Testing::StressType stress_type_;
712 }; 720 };
713 721
714 } } // namespace v8::internal 722 } } // namespace v8::internal
715 723
716 #endif // V8_API_H_ 724 #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