OLD | NEW |
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 Loading... |
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) \ |
364 F(TypedArrayGetBuffer, 1, 1) \ | 365 F(TypedArrayGetBuffer, 1, 1) \ |
365 F(TypedArrayGetByteLength, 1, 1) \ | 366 F(TypedArrayGetByteLength, 1, 1) \ |
366 F(TypedArrayGetByteOffset, 1, 1) \ | 367 F(TypedArrayGetByteOffset, 1, 1) \ |
367 F(TypedArrayGetLength, 1, 1) \ | 368 F(TypedArrayGetLength, 1, 1) \ |
368 F(TypedArraySetFastCases, 3, 1) \ | 369 F(TypedArraySetFastCases, 3, 1) \ |
369 \ | 370 \ |
370 F(DataViewInitialize, 4, 1) \ | 371 F(DataViewInitialize, 4, 1) \ |
371 F(DataViewGetBuffer, 1, 1) \ | 372 F(DataViewGetBuffer, 1, 1) \ |
372 F(DataViewGetByteLength, 1, 1) \ | 373 F(DataViewGetByteLength, 1, 1) \ |
373 F(DataViewGetByteOffset, 1, 1) \ | 374 F(DataViewGetByteOffset, 1, 1) \ |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 | 778 |
778 static void SetupArrayBuffer(Isolate* isolate, | 779 static void SetupArrayBuffer(Isolate* isolate, |
779 Handle<JSArrayBuffer> array_buffer, | 780 Handle<JSArrayBuffer> array_buffer, |
780 bool is_external, | 781 bool is_external, |
781 void* data, | 782 void* data, |
782 size_t allocated_length); | 783 size_t allocated_length); |
783 | 784 |
784 static bool SetupArrayBufferAllocatingData( | 785 static bool SetupArrayBufferAllocatingData( |
785 Isolate* isolate, | 786 Isolate* isolate, |
786 Handle<JSArrayBuffer> array_buffer, | 787 Handle<JSArrayBuffer> array_buffer, |
787 size_t allocated_length); | 788 size_t allocated_length, |
| 789 bool initialize = true); |
788 | 790 |
789 static void FreeArrayBuffer( | 791 static void FreeArrayBuffer( |
790 Isolate* isolate, | 792 Isolate* isolate, |
791 JSArrayBuffer* phantom_array_buffer); | 793 JSArrayBuffer* phantom_array_buffer); |
792 | 794 |
793 // Helper functions used stubs. | 795 // Helper functions used stubs. |
794 static void PerformGC(Object* result); | 796 static void PerformGC(Object* result); |
795 | 797 |
796 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 798 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
797 static Handle<Object> CreateArrayLiteralBoilerplate( | 799 static Handle<Object> CreateArrayLiteralBoilerplate( |
798 Isolate* isolate, | 800 Isolate* isolate, |
799 Handle<FixedArray> literals, | 801 Handle<FixedArray> literals, |
800 Handle<FixedArray> elements); | 802 Handle<FixedArray> elements); |
801 }; | 803 }; |
802 | 804 |
803 | 805 |
804 //--------------------------------------------------------------------------- | 806 //--------------------------------------------------------------------------- |
805 // Constants used by interface to runtime functions. | 807 // Constants used by interface to runtime functions. |
806 | 808 |
807 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 809 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
808 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 810 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
809 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 811 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
810 | 812 |
811 } } // namespace v8::internal | 813 } } // namespace v8::internal |
812 | 814 |
813 #endif // V8_RUNTIME_H_ | 815 #endif // V8_RUNTIME_H_ |
OLD | NEW |