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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 /* Harmony observe */ \ | 321 /* Harmony observe */ \ |
322 F(IsObserved, 1, 1) \ | 322 F(IsObserved, 1, 1) \ |
323 F(SetIsObserved, 1, 1) \ | 323 F(SetIsObserved, 1, 1) \ |
324 F(GetObservationState, 0, 1) \ | 324 F(GetObservationState, 0, 1) \ |
325 F(ObservationWeakMapCreate, 0, 1) \ | 325 F(ObservationWeakMapCreate, 0, 1) \ |
326 F(UnwrapGlobalProxy, 1, 1) \ | 326 F(UnwrapGlobalProxy, 1, 1) \ |
327 F(IsAccessAllowedForObserver, 3, 1) \ | 327 F(IsAccessAllowedForObserver, 3, 1) \ |
328 \ | 328 \ |
329 /* Harmony typed arrays */ \ | 329 /* Harmony typed arrays */ \ |
330 F(ArrayBufferInitialize, 2, 1)\ | 330 F(ArrayBufferInitialize, 2, 1)\ |
| 331 F(ArrayBufferGetByteLength, 1, 1)\ |
331 F(ArrayBufferSliceImpl, 3, 1) \ | 332 F(ArrayBufferSliceImpl, 3, 1) \ |
332 F(ArrayBufferIsView, 1, 1) \ | 333 F(ArrayBufferIsView, 1, 1) \ |
333 F(ArrayBufferNeuter, 1, 1) \ | 334 F(ArrayBufferNeuter, 1, 1) \ |
334 \ | 335 \ |
335 F(TypedArrayInitializeFromArrayLike, 4, 1) \ | 336 F(TypedArrayInitializeFromArrayLike, 4, 1) \ |
336 F(TypedArrayGetBuffer, 1, 1) \ | 337 F(TypedArrayGetBuffer, 1, 1) \ |
| 338 F(TypedArrayGetByteLength, 1, 1) \ |
| 339 F(TypedArrayGetByteOffset, 1, 1) \ |
| 340 F(TypedArrayGetLength, 1, 1) \ |
337 F(TypedArraySetFastCases, 3, 1) \ | 341 F(TypedArraySetFastCases, 3, 1) \ |
338 \ | 342 \ |
339 F(DataViewGetBuffer, 1, 1) \ | 343 F(DataViewGetBuffer, 1, 1) \ |
| 344 F(DataViewGetByteLength, 1, 1) \ |
| 345 F(DataViewGetByteOffset, 1, 1) \ |
340 F(DataViewGetInt8, 3, 1) \ | 346 F(DataViewGetInt8, 3, 1) \ |
341 F(DataViewGetUint8, 3, 1) \ | 347 F(DataViewGetUint8, 3, 1) \ |
342 F(DataViewGetInt16, 3, 1) \ | 348 F(DataViewGetInt16, 3, 1) \ |
343 F(DataViewGetUint16, 3, 1) \ | 349 F(DataViewGetUint16, 3, 1) \ |
344 F(DataViewGetInt32, 3, 1) \ | 350 F(DataViewGetInt32, 3, 1) \ |
345 F(DataViewGetUint32, 3, 1) \ | 351 F(DataViewGetUint32, 3, 1) \ |
346 F(DataViewGetFloat32, 3, 1) \ | 352 F(DataViewGetFloat32, 3, 1) \ |
347 F(DataViewGetFloat64, 3, 1) \ | 353 F(DataViewGetFloat64, 3, 1) \ |
348 \ | 354 \ |
349 F(DataViewSetInt8, 4, 1) \ | 355 F(DataViewSetInt8, 4, 1) \ |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 F(NumberToString, 1, 1) | 683 F(NumberToString, 1, 1) |
678 | 684 |
679 | 685 |
680 // ---------------------------------------------------------------------------- | 686 // ---------------------------------------------------------------------------- |
681 // INLINE_OPTIMIZED_FUNCTION_LIST defines all inlined functions accessed | 687 // INLINE_OPTIMIZED_FUNCTION_LIST defines all inlined functions accessed |
682 // with a native call of the form %_name from within JS code that also have | 688 // with a native call of the form %_name from within JS code that also have |
683 // a corresponding runtime function, that is called from non-optimized code. | 689 // a corresponding runtime function, that is called from non-optimized code. |
684 // Entries have the form F(name, number of arguments, number of return values). | 690 // Entries have the form F(name, number of arguments, number of return values). |
685 #define INLINE_OPTIMIZED_FUNCTION_LIST(F) \ | 691 #define INLINE_OPTIMIZED_FUNCTION_LIST(F) \ |
686 /* Typed Arrays */ \ | 692 /* Typed Arrays */ \ |
| 693 F(ConstructDouble, 2, 1) \ |
687 F(TypedArrayInitialize, 5, 1) \ | 694 F(TypedArrayInitialize, 5, 1) \ |
688 F(DataViewInitialize, 4, 1) \ | 695 F(DataViewInitialize, 4, 1) \ |
689 F(MaxSmi, 0, 1) \ | 696 F(MaxSmi, 0, 1) \ |
690 F(TypedArrayMaxSizeInHeap, 0, 1) \ | 697 F(TypedArrayMaxSizeInHeap, 0, 1) \ |
691 F(ArrayBufferViewGetByteLength, 1, 1) \ | 698 \ |
692 F(ArrayBufferViewGetByteOffset, 1, 1) \ | |
693 F(TypedArrayGetLength, 1, 1) \ | |
694 /* ArrayBuffer */ \ | |
695 F(ArrayBufferGetByteLength, 1, 1) \ | |
696 /* Maths */ \ | 699 /* Maths */ \ |
697 F(ConstructDouble, 2, 1) \ | |
698 F(DoubleHi, 1, 1) \ | 700 F(DoubleHi, 1, 1) \ |
699 F(DoubleLo, 1, 1) \ | 701 F(DoubleLo, 1, 1) \ |
700 F(MathSqrt, 1, 1) \ | 702 F(MathSqrt, 1, 1) \ |
701 F(MathLog, 1, 1) | 703 F(MathLog, 1, 1) |
702 | 704 |
703 | 705 |
704 //--------------------------------------------------------------------------- | 706 //--------------------------------------------------------------------------- |
705 // Runtime provides access to all C++ runtime functions. | 707 // Runtime provides access to all C++ runtime functions. |
706 | 708 |
707 class RuntimeState { | 709 class RuntimeState { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 909 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
908 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 910 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
909 | 911 |
910 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 912 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
911 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 913 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
912 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 914 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
913 | 915 |
914 } } // namespace v8::internal | 916 } } // namespace v8::internal |
915 | 917 |
916 #endif // V8_RUNTIME_H_ | 918 #endif // V8_RUNTIME_H_ |
OLD | NEW |