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_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/platform/time.h" | 9 #include "src/base/platform/time.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // * Each compiler has an explicit list of intrisics it supports, falling back | 28 // * Each compiler has an explicit list of intrisics it supports, falling back |
29 // to a simple runtime call if necessary. | 29 // to a simple runtime call if necessary. |
30 | 30 |
31 | 31 |
32 // Entries have the form F(name, number of arguments, number of values): | 32 // Entries have the form F(name, number of arguments, number of values): |
33 | 33 |
34 #define FOR_EACH_INTRINSIC_ARRAY(F) \ | 34 #define FOR_EACH_INTRINSIC_ARRAY(F) \ |
35 F(FinishArrayPrototypeSetup, 1, 1) \ | 35 F(FinishArrayPrototypeSetup, 1, 1) \ |
36 F(SpecialArrayFunctions, 0, 1) \ | 36 F(SpecialArrayFunctions, 0, 1) \ |
37 F(TransitionElementsKind, 2, 1) \ | 37 F(TransitionElementsKind, 2, 1) \ |
38 F(PushIfAbsent, 2, 1) \ | |
39 F(RemoveArrayHoles, 2, 1) \ | 38 F(RemoveArrayHoles, 2, 1) \ |
40 F(MoveArrayContents, 2, 1) \ | 39 F(MoveArrayContents, 2, 1) \ |
41 F(EstimateNumberOfElements, 1, 1) \ | 40 F(EstimateNumberOfElements, 1, 1) \ |
42 F(GetArrayKeys, 2, 1) \ | 41 F(GetArrayKeys, 2, 1) \ |
43 F(ArrayConstructor, -1, 1) \ | 42 F(ArrayConstructor, -1, 1) \ |
44 F(NewArray, -1 /* >= 3 */, 1) \ | 43 F(NewArray, -1 /* >= 3 */, 1) \ |
45 F(InternalArrayConstructor, -1, 1) \ | 44 F(InternalArrayConstructor, -1, 1) \ |
46 F(NormalizeElements, 1, 1) \ | 45 F(NormalizeElements, 1, 1) \ |
47 F(GrowArrayElements, 2, 1) \ | 46 F(GrowArrayElements, 2, 1) \ |
48 F(HasComplexElements, 1, 1) \ | 47 F(HasComplexElements, 1, 1) \ |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 F(StringIndexOf, 3, 1) \ | 844 F(StringIndexOf, 3, 1) \ |
846 F(StringLastIndexOf, 3, 1) \ | 845 F(StringLastIndexOf, 3, 1) \ |
847 F(StringLocaleCompare, 2, 1) \ | 846 F(StringLocaleCompare, 2, 1) \ |
848 F(SubString, 3, 1) \ | 847 F(SubString, 3, 1) \ |
849 F(StringAdd, 2, 1) \ | 848 F(StringAdd, 2, 1) \ |
850 F(InternalizeString, 1, 1) \ | 849 F(InternalizeString, 1, 1) \ |
851 F(StringMatch, 3, 1) \ | 850 F(StringMatch, 3, 1) \ |
852 F(StringCharCodeAtRT, 2, 1) \ | 851 F(StringCharCodeAtRT, 2, 1) \ |
853 F(StringCompare, 2, 1) \ | 852 F(StringCompare, 2, 1) \ |
854 F(StringBuilderConcat, 3, 1) \ | 853 F(StringBuilderConcat, 3, 1) \ |
855 F(StringBuilderJoin, 3, 1) \ | |
856 F(SparseJoinWithSeparator, 3, 1) \ | 854 F(SparseJoinWithSeparator, 3, 1) \ |
857 F(StringToArray, 2, 1) \ | 855 F(StringToArray, 2, 1) \ |
858 F(StringToLowerCase, 1, 1) \ | 856 F(StringToLowerCase, 1, 1) \ |
859 F(StringToUpperCase, 1, 1) \ | 857 F(StringToUpperCase, 1, 1) \ |
860 F(StringTrim, 3, 1) \ | 858 F(StringTrim, 3, 1) \ |
861 F(TruncateString, 2, 1) \ | 859 F(TruncateString, 2, 1) \ |
862 F(NewString, 2, 1) \ | 860 F(NewString, 2, 1) \ |
863 F(StringLessThan, 2, 1) \ | 861 F(StringLessThan, 2, 1) \ |
864 F(StringLessThanOrEqual, 2, 1) \ | 862 F(StringLessThanOrEqual, 2, 1) \ |
865 F(StringGreaterThan, 2, 1) \ | 863 F(StringGreaterThan, 2, 1) \ |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 | 1187 |
1190 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1188 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1191 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1189 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1192 STATIC_ASSERT(LANGUAGE_END == 3); | 1190 STATIC_ASSERT(LANGUAGE_END == 3); |
1193 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1191 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1194 | 1192 |
1195 } // namespace internal | 1193 } // namespace internal |
1196 } // namespace v8 | 1194 } // namespace v8 |
1197 | 1195 |
1198 #endif // V8_RUNTIME_RUNTIME_H_ | 1196 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |