OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 #else | 91 #else |
92 #error Unsupported target architecture. | 92 #error Unsupported target architecture. |
93 #endif | 93 #endif |
94 | 94 |
95 #include "register-allocator.h" | 95 #include "register-allocator.h" |
96 | 96 |
97 namespace v8 { | 97 namespace v8 { |
98 namespace internal { | 98 namespace internal { |
99 | 99 |
100 | 100 |
101 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | |
102 F(IsSmi, 1, 1) \ | |
103 F(IsNonNegativeSmi, 1, 1) \ | |
104 F(IsArray, 1, 1) \ | |
105 F(IsRegExp, 1, 1) \ | |
106 F(CallFunction, -1 /* receiver + n args + function */, 1) \ | |
107 F(IsConstructCall, 0, 1) \ | |
108 F(ArgumentsLength, 0, 1) \ | |
109 F(Arguments, 1, 1) \ | |
110 F(ClassOf, 1, 1) \ | |
111 F(ValueOf, 1, 1) \ | |
112 F(SetValueOf, 2, 1) \ | |
113 F(StringCharCodeAt, 2, 1) \ | |
114 F(StringCharFromCode, 1, 1) \ | |
115 F(StringCharAt, 2, 1) \ | |
116 F(ObjectEquals, 2, 1) \ | |
117 F(Log, 3, 1) \ | |
118 F(RandomHeapNumber, 0, 1) \ | |
119 F(IsObject, 1, 1) \ | |
120 F(IsFunction, 1, 1) \ | |
121 F(IsUndetectableObject, 1, 1) \ | |
122 F(StringAdd, 2, 1) \ | |
123 F(SubString, 3, 1) \ | |
124 F(StringCompare, 2, 1) \ | |
125 F(RegExpExec, 4, 1) \ | |
126 F(RegExpConstructResult, 3, 1) \ | |
127 F(GetFromCache, 2, 1) \ | |
128 F(NumberToString, 1, 1) \ | |
129 F(SwapElements, 3, 1) \ | |
130 F(MathPow, 2, 1) \ | |
131 F(MathSin, 1, 1) \ | |
132 F(MathCos, 1, 1) \ | |
133 F(MathSqrt, 1, 1) | |
134 | |
135 | |
136 // Support for "structured" code comments. | 101 // Support for "structured" code comments. |
137 #ifdef DEBUG | 102 #ifdef DEBUG |
138 | 103 |
139 class Comment BASE_EMBEDDED { | 104 class Comment BASE_EMBEDDED { |
140 public: | 105 public: |
141 Comment(MacroAssembler* masm, const char* msg); | 106 Comment(MacroAssembler* masm, const char* msg); |
142 ~Comment(); | 107 ~Comment(); |
143 | 108 |
144 private: | 109 private: |
145 MacroAssembler* masm_; | 110 MacroAssembler* masm_; |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 StringCharFromCodeGenerator char_from_code_generator_; | 823 StringCharFromCodeGenerator char_from_code_generator_; |
859 | 824 |
860 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); | 825 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); |
861 }; | 826 }; |
862 | 827 |
863 | 828 |
864 } // namespace internal | 829 } // namespace internal |
865 } // namespace v8 | 830 } // namespace v8 |
866 | 831 |
867 #endif // V8_CODEGEN_H_ | 832 #endif // V8_CODEGEN_H_ |
OLD | NEW |