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

Side by Side Diff: src/runtime.h

Issue 15943002: v8 typed arrays: add DataView type (Closed)
Patch Set: v8 typed arrays: add DataView type, v2 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
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 F(SetObserverDeliveryPending, 0, 1) \ 352 F(SetObserverDeliveryPending, 0, 1) \
353 F(GetObservationState, 0, 1) \ 353 F(GetObservationState, 0, 1) \
354 F(ObservationWeakMapCreate, 0, 1) \ 354 F(ObservationWeakMapCreate, 0, 1) \
355 F(UnwrapGlobalProxy, 1, 1) \ 355 F(UnwrapGlobalProxy, 1, 1) \
356 \ 356 \
357 /* Harmony typed arrays */ \ 357 /* Harmony typed arrays */ \
358 F(ArrayBufferInitialize, 2, 1)\ 358 F(ArrayBufferInitialize, 2, 1)\
359 F(ArrayBufferGetByteLength, 1, 1)\ 359 F(ArrayBufferGetByteLength, 1, 1)\
360 F(ArrayBufferSliceImpl, 3, 1) \ 360 F(ArrayBufferSliceImpl, 3, 1) \
361 \ 361 \
362 F(DataViewInitialize, 4, 1) \
363 F(DataViewGetBuffer, 1, 1) \
364 F(DataViewGetByteLength, 1, 1) \
365 F(DataViewGetByteOffset, 1, 1) \
366 F(DataViewGetInt8, 2, 1) \
367 F(DataViewGetUint8, 2, 1) \
368 F(DataViewGetInt16, 3, 1) \
369 F(DataViewGetUint16, 3, 1) \
370 F(DataViewGetInt32, 3, 1) \
371 F(DataViewGetUint32, 3, 1) \
372 F(DataViewGetFloat32, 3, 1) \
373 F(DataViewGetFloat64, 3, 1) \
374 F(DataViewSetInt8, 3, 1) \
375 F(DataViewSetUint8, 3, 1) \
376 F(DataViewSetInt16, 4, 1) \
377 F(DataViewSetUint16, 4, 1) \
378 F(DataViewSetInt32, 4, 1) \
379 F(DataViewSetUint32, 4, 1) \
380 F(DataViewSetFloat32, 4, 1) \
381 F(DataViewSetFloat64, 4, 1) \
382 \
362 F(TypedArrayInitialize, 5, 1) \ 383 F(TypedArrayInitialize, 5, 1) \
363 F(TypedArrayGetBuffer, 1, 1) \ 384 F(TypedArrayGetBuffer, 1, 1) \
364 F(TypedArrayGetByteLength, 1, 1) \ 385 F(TypedArrayGetByteLength, 1, 1) \
365 F(TypedArrayGetByteOffset, 1, 1) \ 386 F(TypedArrayGetByteOffset, 1, 1) \
366 F(TypedArrayGetLength, 1, 1) \ 387 F(TypedArrayGetLength, 1, 1) \
367 F(TypedArraySetFastCases, 3, 1) \ 388 F(TypedArraySetFastCases, 3, 1) \
368 \ 389 \
369 /* Statements */ \ 390 /* Statements */ \
370 F(NewClosure, 3, 1) \ 391 F(NewClosure, 3, 1) \
371 F(NewObject, 1, 1) \ 392 F(NewObject, 1, 1) \
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 //--------------------------------------------------------------------------- 801 //---------------------------------------------------------------------------
781 // Constants used by interface to runtime functions. 802 // Constants used by interface to runtime functions.
782 803
783 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 804 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
784 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 805 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
785 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 806 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
786 807
787 } } // namespace v8::internal 808 } } // namespace v8::internal
788 809
789 #endif // V8_RUNTIME_H_ 810 #endif // V8_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698