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

Side by Side Diff: src/runtime.h

Issue 199523006: Revert "Apply numeric casts correctly in typed arrays and related code." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « src/arraybuffer.js ('k') | src/runtime.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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 F(GetObservationState, 0, 1) \ 358 F(GetObservationState, 0, 1) \
359 F(ObservationWeakMapCreate, 0, 1) \ 359 F(ObservationWeakMapCreate, 0, 1) \
360 F(UnwrapGlobalProxy, 1, 1) \ 360 F(UnwrapGlobalProxy, 1, 1) \
361 F(IsAccessAllowedForObserver, 3, 1) \ 361 F(IsAccessAllowedForObserver, 3, 1) \
362 \ 362 \
363 /* Harmony typed arrays */ \ 363 /* Harmony typed arrays */ \
364 F(ArrayBufferInitialize, 2, 1)\ 364 F(ArrayBufferInitialize, 2, 1)\
365 F(ArrayBufferGetByteLength, 1, 1)\ 365 F(ArrayBufferGetByteLength, 1, 1)\
366 F(ArrayBufferSliceImpl, 3, 1) \ 366 F(ArrayBufferSliceImpl, 3, 1) \
367 F(ArrayBufferIsView, 1, 1) \ 367 F(ArrayBufferIsView, 1, 1) \
368 F(ArrayBufferNeuter, 1, 1) \
369 \ 368 \
370 F(TypedArrayInitialize, 5, 1) \ 369 F(TypedArrayInitialize, 5, 1) \
371 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 370 F(TypedArrayInitializeFromArrayLike, 4, 1) \
372 F(TypedArrayGetBuffer, 1, 1) \ 371 F(TypedArrayGetBuffer, 1, 1) \
373 F(TypedArrayGetByteLength, 1, 1) \ 372 F(TypedArrayGetByteLength, 1, 1) \
374 F(TypedArrayGetByteOffset, 1, 1) \ 373 F(TypedArrayGetByteOffset, 1, 1) \
375 F(TypedArrayGetLength, 1, 1) \ 374 F(TypedArrayGetLength, 1, 1) \
376 F(TypedArraySetFastCases, 3, 1) \ 375 F(TypedArraySetFastCases, 3, 1) \
377 \ 376 \
378 F(DataViewInitialize, 4, 1) \ 377 F(DataViewInitialize, 4, 1) \
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 bool is_external, 821 bool is_external,
823 void* data, 822 void* data,
824 size_t allocated_length); 823 size_t allocated_length);
825 824
826 static bool SetupArrayBufferAllocatingData( 825 static bool SetupArrayBufferAllocatingData(
827 Isolate* isolate, 826 Isolate* isolate,
828 Handle<JSArrayBuffer> array_buffer, 827 Handle<JSArrayBuffer> array_buffer,
829 size_t allocated_length, 828 size_t allocated_length,
830 bool initialize = true); 829 bool initialize = true);
831 830
832 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer);
833
834 static void FreeArrayBuffer( 831 static void FreeArrayBuffer(
835 Isolate* isolate, 832 Isolate* isolate,
836 JSArrayBuffer* phantom_array_buffer); 833 JSArrayBuffer* phantom_array_buffer);
837 834
838 enum TypedArrayId { 835 enum TypedArrayId {
839 // arrayIds below should be synchromized with typedarray.js natives. 836 // arrayIds below should be synchromized with typedarray.js natives.
840 ARRAY_ID_UINT8 = 1, 837 ARRAY_ID_UINT8 = 1,
841 ARRAY_ID_INT8 = 2, 838 ARRAY_ID_INT8 = 2,
842 ARRAY_ID_UINT16 = 3, 839 ARRAY_ID_UINT16 = 3,
843 ARRAY_ID_INT16 = 4, 840 ARRAY_ID_INT16 = 4,
(...skipping 24 matching lines...) Expand all
868 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 865 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
869 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 866 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
870 867
871 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 868 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
872 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 869 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
873 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 870 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
874 871
875 } } // namespace v8::internal 872 } } // namespace v8::internal
876 873
877 #endif // V8_RUNTIME_H_ 874 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/arraybuffer.js ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698