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 209393014: Merged r20022 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
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) \
368 \ 369 \
369 F(TypedArrayInitialize, 5, 1) \ 370 F(TypedArrayInitialize, 5, 1) \
370 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 371 F(TypedArrayInitializeFromArrayLike, 4, 1) \
371 F(TypedArrayGetBuffer, 1, 1) \ 372 F(TypedArrayGetBuffer, 1, 1) \
372 F(TypedArrayGetByteLength, 1, 1) \ 373 F(TypedArrayGetByteLength, 1, 1) \
373 F(TypedArrayGetByteOffset, 1, 1) \ 374 F(TypedArrayGetByteOffset, 1, 1) \
374 F(TypedArrayGetLength, 1, 1) \ 375 F(TypedArrayGetLength, 1, 1) \
375 F(TypedArraySetFastCases, 3, 1) \ 376 F(TypedArraySetFastCases, 3, 1) \
376 \ 377 \
377 F(DataViewInitialize, 4, 1) \ 378 F(DataViewInitialize, 4, 1) \
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 bool is_external, 821 bool is_external,
821 void* data, 822 void* data,
822 size_t allocated_length); 823 size_t allocated_length);
823 824
824 static bool SetupArrayBufferAllocatingData( 825 static bool SetupArrayBufferAllocatingData(
825 Isolate* isolate, 826 Isolate* isolate,
826 Handle<JSArrayBuffer> array_buffer, 827 Handle<JSArrayBuffer> array_buffer,
827 size_t allocated_length, 828 size_t allocated_length,
828 bool initialize = true); 829 bool initialize = true);
829 830
831 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer);
832
830 static void FreeArrayBuffer( 833 static void FreeArrayBuffer(
831 Isolate* isolate, 834 Isolate* isolate,
832 JSArrayBuffer* phantom_array_buffer); 835 JSArrayBuffer* phantom_array_buffer);
833 836
834 enum TypedArrayId { 837 enum TypedArrayId {
835 // arrayIds below should be synchromized with typedarray.js natives. 838 // arrayIds below should be synchromized with typedarray.js natives.
836 ARRAY_ID_UINT8 = 1, 839 ARRAY_ID_UINT8 = 1,
837 ARRAY_ID_INT8 = 2, 840 ARRAY_ID_INT8 = 2,
838 ARRAY_ID_UINT16 = 3, 841 ARRAY_ID_UINT16 = 3,
839 ARRAY_ID_INT16 = 4, 842 ARRAY_ID_INT16 = 4,
(...skipping 24 matching lines...) Expand all
864 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 867 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
865 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 868 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
866 869
867 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 870 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
868 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 871 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
869 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 872 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
870 873
871 } } // namespace v8::internal 874 } } // namespace v8::internal
872 875
873 #endif // V8_RUNTIME_H_ 876 #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