OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_H_ |
6 #define V8_RUNTIME_H_ | 6 #define V8_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/zone.h" | 9 #include "src/zone.h" |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 F(MathFloorRT, 1, 1) \ | 147 F(MathFloorRT, 1, 1) \ |
148 F(MathAtan2, 2, 1) \ | 148 F(MathAtan2, 2, 1) \ |
149 F(MathExpRT, 1, 1) \ | 149 F(MathExpRT, 1, 1) \ |
150 F(RoundNumber, 1, 1) \ | 150 F(RoundNumber, 1, 1) \ |
151 F(MathFround, 1, 1) \ | 151 F(MathFround, 1, 1) \ |
152 F(RemPiO2, 1, 1) \ | 152 F(RemPiO2, 1, 1) \ |
153 \ | 153 \ |
154 /* Regular expressions */ \ | 154 /* Regular expressions */ \ |
155 F(RegExpCompile, 3, 1) \ | 155 F(RegExpCompile, 3, 1) \ |
156 F(RegExpExecMultiple, 4, 1) \ | 156 F(RegExpExecMultiple, 4, 1) \ |
157 F(RegExpInitializeObject, 5, 1) \ | 157 F(RegExpInitializeObject, 6, 1) \ |
158 \ | 158 \ |
159 /* JSON */ \ | 159 /* JSON */ \ |
160 F(ParseJson, 1, 1) \ | 160 F(ParseJson, 1, 1) \ |
161 F(BasicJSONStringify, 1, 1) \ | 161 F(BasicJSONStringify, 1, 1) \ |
162 F(QuoteJSONString, 1, 1) \ | 162 F(QuoteJSONString, 1, 1) \ |
163 \ | 163 \ |
164 /* Strings */ \ | 164 /* Strings */ \ |
165 F(StringIndexOf, 3, 1) \ | 165 F(StringIndexOf, 3, 1) \ |
166 F(StringLastIndexOf, 3, 1) \ | 166 F(StringLastIndexOf, 3, 1) \ |
167 F(StringLocaleCompare, 2, 1) \ | 167 F(StringLocaleCompare, 2, 1) \ |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 // a corresponding runtime function, that is called from non-optimized code. | 688 // a corresponding runtime function, that is called from non-optimized code. |
689 // For the benefit of (fuzz) tests, the runtime version can also be called | 689 // For the benefit of (fuzz) tests, the runtime version can also be called |
690 // directly as %name (i.e. without the leading underscore). | 690 // directly as %name (i.e. without the leading underscore). |
691 // Entries have the form F(name, number of arguments, number of return values). | 691 // Entries have the form F(name, number of arguments, number of return values). |
692 #define INLINE_OPTIMIZED_FUNCTION_LIST(F) \ | 692 #define INLINE_OPTIMIZED_FUNCTION_LIST(F) \ |
693 /* Typed Arrays */ \ | 693 /* Typed Arrays */ \ |
694 F(TypedArrayInitialize, 5, 1) \ | 694 F(TypedArrayInitialize, 5, 1) \ |
695 F(DataViewInitialize, 4, 1) \ | 695 F(DataViewInitialize, 4, 1) \ |
696 F(MaxSmi, 0, 1) \ | 696 F(MaxSmi, 0, 1) \ |
697 F(TypedArrayMaxSizeInHeap, 0, 1) \ | 697 F(TypedArrayMaxSizeInHeap, 0, 1) \ |
| 698 F(HarmonyRegExps, 0, 1) \ |
698 F(ArrayBufferViewGetByteLength, 1, 1) \ | 699 F(ArrayBufferViewGetByteLength, 1, 1) \ |
699 F(ArrayBufferViewGetByteOffset, 1, 1) \ | 700 F(ArrayBufferViewGetByteOffset, 1, 1) \ |
700 F(TypedArrayGetLength, 1, 1) \ | 701 F(TypedArrayGetLength, 1, 1) \ |
701 /* ArrayBuffer */ \ | 702 /* ArrayBuffer */ \ |
702 F(ArrayBufferGetByteLength, 1, 1) \ | 703 F(ArrayBufferGetByteLength, 1, 1) \ |
703 /* Maths */ \ | 704 /* Maths */ \ |
704 F(ConstructDouble, 2, 1) \ | 705 F(ConstructDouble, 2, 1) \ |
705 F(DoubleHi, 1, 1) \ | 706 F(DoubleHi, 1, 1) \ |
706 F(DoubleLo, 1, 1) \ | 707 F(DoubleLo, 1, 1) \ |
707 F(MathSqrtRT, 1, 1) \ | 708 F(MathSqrtRT, 1, 1) \ |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 906 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
906 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 907 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
907 | 908 |
908 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 909 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
909 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 910 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
910 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 911 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
911 | 912 |
912 } } // namespace v8::internal | 913 } } // namespace v8::internal |
913 | 914 |
914 #endif // V8_RUNTIME_H_ | 915 #endif // V8_RUNTIME_H_ |
OLD | NEW |