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

Side by Side Diff: src/runtime.h

Issue 21503002: Revert "Speed-up 'new TypedArray(arrayLike)'." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/d8.cc ('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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 F(GetObservationState, 0, 1) \ 354 F(GetObservationState, 0, 1) \
355 F(ObservationWeakMapCreate, 0, 1) \ 355 F(ObservationWeakMapCreate, 0, 1) \
356 F(UnwrapGlobalProxy, 1, 1) \ 356 F(UnwrapGlobalProxy, 1, 1) \
357 \ 357 \
358 /* Harmony typed arrays */ \ 358 /* Harmony typed arrays */ \
359 F(ArrayBufferInitialize, 2, 1)\ 359 F(ArrayBufferInitialize, 2, 1)\
360 F(ArrayBufferGetByteLength, 1, 1)\ 360 F(ArrayBufferGetByteLength, 1, 1)\
361 F(ArrayBufferSliceImpl, 3, 1) \ 361 F(ArrayBufferSliceImpl, 3, 1) \
362 \ 362 \
363 F(TypedArrayInitialize, 5, 1) \ 363 F(TypedArrayInitialize, 5, 1) \
364 F(TypedArrayInitializeFromArrayLike, 4, 1) \
365 F(TypedArrayGetBuffer, 1, 1) \ 364 F(TypedArrayGetBuffer, 1, 1) \
366 F(TypedArrayGetByteLength, 1, 1) \ 365 F(TypedArrayGetByteLength, 1, 1) \
367 F(TypedArrayGetByteOffset, 1, 1) \ 366 F(TypedArrayGetByteOffset, 1, 1) \
368 F(TypedArrayGetLength, 1, 1) \ 367 F(TypedArrayGetLength, 1, 1) \
369 F(TypedArraySetFastCases, 3, 1) \ 368 F(TypedArraySetFastCases, 3, 1) \
370 \ 369 \
371 F(DataViewInitialize, 4, 1) \ 370 F(DataViewInitialize, 4, 1) \
372 F(DataViewGetBuffer, 1, 1) \ 371 F(DataViewGetBuffer, 1, 1) \
373 F(DataViewGetByteLength, 1, 1) \ 372 F(DataViewGetByteLength, 1, 1) \
374 F(DataViewGetByteOffset, 1, 1) \ 373 F(DataViewGetByteOffset, 1, 1) \
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 777
779 static void SetupArrayBuffer(Isolate* isolate, 778 static void SetupArrayBuffer(Isolate* isolate,
780 Handle<JSArrayBuffer> array_buffer, 779 Handle<JSArrayBuffer> array_buffer,
781 bool is_external, 780 bool is_external,
782 void* data, 781 void* data,
783 size_t allocated_length); 782 size_t allocated_length);
784 783
785 static bool SetupArrayBufferAllocatingData( 784 static bool SetupArrayBufferAllocatingData(
786 Isolate* isolate, 785 Isolate* isolate,
787 Handle<JSArrayBuffer> array_buffer, 786 Handle<JSArrayBuffer> array_buffer,
788 size_t allocated_length, 787 size_t allocated_length);
789 bool initialize = true);
790 788
791 static void FreeArrayBuffer( 789 static void FreeArrayBuffer(
792 Isolate* isolate, 790 Isolate* isolate,
793 JSArrayBuffer* phantom_array_buffer); 791 JSArrayBuffer* phantom_array_buffer);
794 792
795 // Helper functions used stubs. 793 // Helper functions used stubs.
796 static void PerformGC(Object* result); 794 static void PerformGC(Object* result);
797 795
798 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 796 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
799 static Handle<Object> CreateArrayLiteralBoilerplate( 797 static Handle<Object> CreateArrayLiteralBoilerplate(
800 Isolate* isolate, 798 Isolate* isolate,
801 Handle<FixedArray> literals, 799 Handle<FixedArray> literals,
802 Handle<FixedArray> elements); 800 Handle<FixedArray> elements);
803 }; 801 };
804 802
805 803
806 //--------------------------------------------------------------------------- 804 //---------------------------------------------------------------------------
807 // Constants used by interface to runtime functions. 805 // Constants used by interface to runtime functions.
808 806
809 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 807 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
810 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 808 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
811 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 809 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
812 810
813 } } // namespace v8::internal 811 } } // namespace v8::internal
814 812
815 #endif // V8_RUNTIME_H_ 813 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698