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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 F(TruncateString, 2, 1) \ | 178 F(TruncateString, 2, 1) \ |
179 \ | 179 \ |
180 /* Numbers */ \ | 180 /* Numbers */ \ |
181 F(NumberToRadixString, 2, 1) \ | 181 F(NumberToRadixString, 2, 1) \ |
182 F(NumberToFixed, 2, 1) \ | 182 F(NumberToFixed, 2, 1) \ |
183 F(NumberToExponential, 2, 1) \ | 183 F(NumberToExponential, 2, 1) \ |
184 F(NumberToPrecision, 2, 1) \ | 184 F(NumberToPrecision, 2, 1) \ |
185 F(IsValidSmi, 1, 1) \ | 185 F(IsValidSmi, 1, 1) \ |
186 \ | 186 \ |
187 /* Classes support */ \ | 187 /* Classes support */ \ |
188 F(ToMethod, 2, 1) \ | 188 F(ClassGetSourceCode, 1, 1) \ |
189 F(HomeObjectSymbol, 0, 1) \ | |
190 F(DefineClass, 6, 1) \ | 189 F(DefineClass, 6, 1) \ |
191 F(DefineClassMethod, 3, 1) \ | 190 F(DefineClassMethod, 3, 1) \ |
192 F(ClassGetSourceCode, 1, 1) \ | 191 F(HandleStepInForDerivedConstructors, 1, 1) \ |
| 192 F(HomeObjectSymbol, 0, 1) \ |
193 F(LoadFromSuper, 3, 1) \ | 193 F(LoadFromSuper, 3, 1) \ |
194 F(LoadKeyedFromSuper, 3, 1) \ | 194 F(LoadKeyedFromSuper, 3, 1) \ |
| 195 F(StoreKeyedToSuper_Sloppy, 4, 1) \ |
| 196 F(StoreKeyedToSuper_Strict, 4, 1) \ |
| 197 F(StoreToSuper_Sloppy, 4, 1) \ |
| 198 F(StoreToSuper_Strict, 4, 1) \ |
| 199 F(ThrowArrayNotSubclassableError, 0, 1) \ |
195 F(ThrowConstructorNonCallableError, 0, 1) \ | 200 F(ThrowConstructorNonCallableError, 0, 1) \ |
196 F(ThrowArrayNotSubclassableError, 0, 1) \ | 201 F(ThrowIfStaticPrototype, 1, 1) \ |
197 F(ThrowNonMethodError, 0, 1) \ | 202 F(ThrowNonMethodError, 0, 1) \ |
| 203 F(ThrowStaticPrototypeError, 0, 1) \ |
198 F(ThrowUnsupportedSuperError, 0, 1) \ | 204 F(ThrowUnsupportedSuperError, 0, 1) \ |
199 F(HandleStepInForDerivedConstructors, 1, 1) \ | 205 F(ToMethod, 2, 1) |
200 F(StoreToSuper_Strict, 4, 1) \ | |
201 F(StoreToSuper_Sloppy, 4, 1) \ | |
202 F(StoreKeyedToSuper_Strict, 4, 1) \ | |
203 F(StoreKeyedToSuper_Sloppy, 4, 1) | |
204 | 206 |
205 | 207 |
206 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 208 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
207 /* Reflection */ \ | 209 /* Reflection */ \ |
208 F(FunctionSetInstanceClassName, 2, 1) \ | 210 F(FunctionSetInstanceClassName, 2, 1) \ |
209 F(FunctionSetLength, 2, 1) \ | 211 F(FunctionSetLength, 2, 1) \ |
210 F(FunctionSetPrototype, 2, 1) \ | 212 F(FunctionSetPrototype, 2, 1) \ |
211 F(FunctionGetName, 1, 1) \ | 213 F(FunctionGetName, 1, 1) \ |
212 F(FunctionSetName, 2, 1) \ | 214 F(FunctionSetName, 2, 1) \ |
213 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ | 215 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 904 |
903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 905 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 906 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
905 STATIC_ASSERT(LANGUAGE_END == 3); | 907 STATIC_ASSERT(LANGUAGE_END == 3); |
906 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 908 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
907 | 909 |
908 } // namespace internal | 910 } // namespace internal |
909 } // namespace v8 | 911 } // namespace v8 |
910 | 912 |
911 #endif // V8_RUNTIME_RUNTIME_H_ | 913 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |