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