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

Powered by Google App Engine
This is Rietveld 408576698