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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 F(LiveEditReplaceFunctionCode, 2, 1) \ | 346 F(LiveEditReplaceFunctionCode, 2, 1) \ |
347 F(LiveEditFunctionSetScript, 2, 1) \ | 347 F(LiveEditFunctionSetScript, 2, 1) \ |
348 F(LiveEditReplaceRefToNestedFunction, 3, 1) \ | 348 F(LiveEditReplaceRefToNestedFunction, 3, 1) \ |
349 F(LiveEditPatchFunctionPositions, 2, 1) \ | 349 F(LiveEditPatchFunctionPositions, 2, 1) \ |
350 F(LiveEditCheckAndDropActivations, 3, 1) \ | 350 F(LiveEditCheckAndDropActivations, 3, 1) \ |
351 F(LiveEditCompareStrings, 2, 1) \ | 351 F(LiveEditCompareStrings, 2, 1) \ |
352 F(LiveEditRestartFrame, 2, 1) | 352 F(LiveEditRestartFrame, 2, 1) |
353 | 353 |
354 #define FOR_EACH_INTRINSIC_MATHS(F) F(GenerateRandomNumbers, 0, 1) | 354 #define FOR_EACH_INTRINSIC_MATHS(F) F(GenerateRandomNumbers, 0, 1) |
355 | 355 |
| 356 #define FOR_EACH_INTRINSIC_MODULE(F) \ |
| 357 F(GetModuleNamespace, 1, 1) \ |
| 358 F(LoadModuleExport, 1, 1) \ |
| 359 F(LoadModuleImport, 2, 1) \ |
| 360 F(StoreModuleExport, 2, 1) |
| 361 |
356 #define FOR_EACH_INTRINSIC_NUMBERS(F) \ | 362 #define FOR_EACH_INTRINSIC_NUMBERS(F) \ |
357 F(IsValidSmi, 1, 1) \ | 363 F(IsValidSmi, 1, 1) \ |
358 F(StringToNumber, 1, 1) \ | 364 F(StringToNumber, 1, 1) \ |
359 F(StringParseInt, 2, 1) \ | 365 F(StringParseInt, 2, 1) \ |
360 F(StringParseFloat, 1, 1) \ | 366 F(StringParseFloat, 1, 1) \ |
361 F(NumberToString, 1, 1) \ | 367 F(NumberToString, 1, 1) \ |
362 F(NumberToStringSkipCache, 1, 1) \ | 368 F(NumberToStringSkipCache, 1, 1) \ |
363 F(NumberToSmi, 1, 1) \ | 369 F(NumberToSmi, 1, 1) \ |
364 F(SmiLexicographicCompare, 2, 1) \ | 370 F(SmiLexicographicCompare, 2, 1) \ |
365 F(MaxSmi, 0, 1) \ | 371 F(MaxSmi, 0, 1) \ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 F(ToInteger, 1, 1) \ | 418 F(ToInteger, 1, 1) \ |
413 F(ToLength, 1, 1) \ | 419 F(ToLength, 1, 1) \ |
414 F(ToString, 1, 1) \ | 420 F(ToString, 1, 1) \ |
415 F(ToName, 1, 1) \ | 421 F(ToName, 1, 1) \ |
416 F(SameValue, 2, 1) \ | 422 F(SameValue, 2, 1) \ |
417 F(SameValueZero, 2, 1) \ | 423 F(SameValueZero, 2, 1) \ |
418 F(Compare, 3, 1) \ | 424 F(Compare, 3, 1) \ |
419 F(HasInPrototypeChain, 2, 1) \ | 425 F(HasInPrototypeChain, 2, 1) \ |
420 F(CreateIterResultObject, 2, 1) \ | 426 F(CreateIterResultObject, 2, 1) \ |
421 F(IsAccessCheckNeeded, 1, 1) \ | 427 F(IsAccessCheckNeeded, 1, 1) \ |
422 F(CreateDataProperty, 3, 1) \ | 428 F(CreateDataProperty, 3, 1) |
423 F(GetModuleNamespace, 1, 1) \ | |
424 F(LoadModuleExport, 1, 1) \ | |
425 F(LoadModuleImport, 2, 1) \ | |
426 F(StoreModuleExport, 2, 1) | |
427 | 429 |
428 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ | 430 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ |
429 F(Multiply, 2, 1) \ | 431 F(Multiply, 2, 1) \ |
430 F(Divide, 2, 1) \ | 432 F(Divide, 2, 1) \ |
431 F(Modulus, 2, 1) \ | 433 F(Modulus, 2, 1) \ |
432 F(Add, 2, 1) \ | 434 F(Add, 2, 1) \ |
433 F(Subtract, 2, 1) \ | 435 F(Subtract, 2, 1) \ |
434 F(ShiftLeft, 2, 1) \ | 436 F(ShiftLeft, 2, 1) \ |
435 F(ShiftRight, 2, 1) \ | 437 F(ShiftRight, 2, 1) \ |
436 F(ShiftRightLogical, 2, 1) \ | 438 F(ShiftRightLogical, 2, 1) \ |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 FOR_EACH_INTRINSIC_ERROR(F) \ | 968 FOR_EACH_INTRINSIC_ERROR(F) \ |
967 FOR_EACH_INTRINSIC_FORIN(F) \ | 969 FOR_EACH_INTRINSIC_FORIN(F) \ |
968 FOR_EACH_INTRINSIC_INTERPRETER(F) \ | 970 FOR_EACH_INTRINSIC_INTERPRETER(F) \ |
969 FOR_EACH_INTRINSIC_FUNCTION(F) \ | 971 FOR_EACH_INTRINSIC_FUNCTION(F) \ |
970 FOR_EACH_INTRINSIC_GENERATOR(F) \ | 972 FOR_EACH_INTRINSIC_GENERATOR(F) \ |
971 FOR_EACH_INTRINSIC_I18N(F) \ | 973 FOR_EACH_INTRINSIC_I18N(F) \ |
972 FOR_EACH_INTRINSIC_INTERNAL(F) \ | 974 FOR_EACH_INTRINSIC_INTERNAL(F) \ |
973 FOR_EACH_INTRINSIC_LITERALS(F) \ | 975 FOR_EACH_INTRINSIC_LITERALS(F) \ |
974 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 976 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
975 FOR_EACH_INTRINSIC_MATHS(F) \ | 977 FOR_EACH_INTRINSIC_MATHS(F) \ |
| 978 FOR_EACH_INTRINSIC_MODULE(F) \ |
976 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 979 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
977 FOR_EACH_INTRINSIC_OBJECT(F) \ | 980 FOR_EACH_INTRINSIC_OBJECT(F) \ |
978 FOR_EACH_INTRINSIC_OPERATORS(F) \ | 981 FOR_EACH_INTRINSIC_OPERATORS(F) \ |
979 FOR_EACH_INTRINSIC_PROXY(F) \ | 982 FOR_EACH_INTRINSIC_PROXY(F) \ |
980 FOR_EACH_INTRINSIC_REGEXP(F) \ | 983 FOR_EACH_INTRINSIC_REGEXP(F) \ |
981 FOR_EACH_INTRINSIC_SCOPES(F) \ | 984 FOR_EACH_INTRINSIC_SCOPES(F) \ |
982 FOR_EACH_INTRINSIC_SIMD(F) \ | 985 FOR_EACH_INTRINSIC_SIMD(F) \ |
983 FOR_EACH_INTRINSIC_STRINGS(F) \ | 986 FOR_EACH_INTRINSIC_STRINGS(F) \ |
984 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 987 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
985 FOR_EACH_INTRINSIC_TEST(F) \ | 988 FOR_EACH_INTRINSIC_TEST(F) \ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 | 1130 |
1128 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1131 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1129 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1132 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1130 STATIC_ASSERT(LANGUAGE_END == 2); | 1133 STATIC_ASSERT(LANGUAGE_END == 2); |
1131 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; | 1134 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; |
1132 | 1135 |
1133 } // namespace internal | 1136 } // namespace internal |
1134 } // namespace v8 | 1137 } // namespace v8 |
1135 | 1138 |
1136 #endif // V8_RUNTIME_RUNTIME_H_ | 1139 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |