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/objects.h" | 9 #include "src/objects.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 /* Numbers */ \ | 179 /* Numbers */ \ |
180 F(NumberToRadixString, 2, 1) \ | 180 F(NumberToRadixString, 2, 1) \ |
181 F(NumberToFixed, 2, 1) \ | 181 F(NumberToFixed, 2, 1) \ |
182 F(NumberToExponential, 2, 1) \ | 182 F(NumberToExponential, 2, 1) \ |
183 F(NumberToPrecision, 2, 1) \ | 183 F(NumberToPrecision, 2, 1) \ |
184 F(IsValidSmi, 1, 1) \ | 184 F(IsValidSmi, 1, 1) \ |
185 \ | 185 \ |
186 /* Classes support */ \ | 186 /* Classes support */ \ |
187 F(ToMethod, 2, 1) \ | 187 F(ToMethod, 2, 1) \ |
188 F(HomeObjectSymbol, 0, 1) \ | 188 F(HomeObjectSymbol, 0, 1) \ |
| 189 F(DefaultConstructorSuperCall, 0, 1) \ |
189 F(DefineClass, 6, 1) \ | 190 F(DefineClass, 6, 1) \ |
190 F(DefineClassMethod, 3, 1) \ | 191 F(DefineClassMethod, 3, 1) \ |
191 F(ClassGetSourceCode, 1, 1) \ | 192 F(ClassGetSourceCode, 1, 1) \ |
| 193 F(LoadFromSuper, 3, 1) \ |
| 194 F(LoadKeyedFromSuper, 3, 1) \ |
| 195 F(ThrowConstructorNonCallableError, 0, 1) \ |
192 F(ThrowNonMethodError, 0, 1) \ | 196 F(ThrowNonMethodError, 0, 1) \ |
193 F(ThrowUnsupportedSuperError, 0, 1) \ | 197 F(ThrowUnsupportedSuperError, 0, 1) \ |
194 F(LoadFromSuper, 3, 1) \ | |
195 F(LoadKeyedFromSuper, 3, 1) \ | |
196 F(StoreToSuper_Strict, 4, 1) \ | 198 F(StoreToSuper_Strict, 4, 1) \ |
197 F(StoreToSuper_Sloppy, 4, 1) \ | 199 F(StoreToSuper_Sloppy, 4, 1) \ |
198 F(StoreKeyedToSuper_Strict, 4, 1) \ | 200 F(StoreKeyedToSuper_Strict, 4, 1) \ |
199 F(StoreKeyedToSuper_Sloppy, 4, 1) \ | 201 F(StoreKeyedToSuper_Sloppy, 4, 1) |
200 F(DefaultConstructorSuperCall, 0, 1) | |
201 | 202 |
202 | 203 |
203 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 204 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
204 /* Reflection */ \ | 205 /* Reflection */ \ |
205 F(FunctionSetInstanceClassName, 2, 1) \ | 206 F(FunctionSetInstanceClassName, 2, 1) \ |
206 F(FunctionSetLength, 2, 1) \ | 207 F(FunctionSetLength, 2, 1) \ |
207 F(FunctionSetPrototype, 2, 1) \ | 208 F(FunctionSetPrototype, 2, 1) \ |
208 F(FunctionGetName, 1, 1) \ | 209 F(FunctionGetName, 1, 1) \ |
209 F(FunctionSetName, 2, 1) \ | 210 F(FunctionSetName, 2, 1) \ |
210 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ | 211 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 | 895 |
895 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 896 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
896 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 897 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
897 STATIC_ASSERT(LANGUAGE_END == 3); | 898 STATIC_ASSERT(LANGUAGE_END == 3); |
898 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 899 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
899 | 900 |
900 } // namespace internal | 901 } // namespace internal |
901 } // namespace v8 | 902 } // namespace v8 |
902 | 903 |
903 #endif // V8_RUNTIME_RUNTIME_H_ | 904 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |