| 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_H_ | 5 #ifndef V8_RUNTIME_H_ |
| 6 #define V8_RUNTIME_H_ | 6 #define V8_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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 F(BreakIteratorFirst, 1, 1) \ | 625 F(BreakIteratorFirst, 1, 1) \ |
| 626 F(BreakIteratorNext, 1, 1) \ | 626 F(BreakIteratorNext, 1, 1) \ |
| 627 F(BreakIteratorCurrent, 1, 1) \ | 627 F(BreakIteratorCurrent, 1, 1) \ |
| 628 F(BreakIteratorBreakType, 1, 1) | 628 F(BreakIteratorBreakType, 1, 1) |
| 629 | 629 |
| 630 #else | 630 #else |
| 631 #define RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) | 631 #define RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) |
| 632 #endif | 632 #endif |
| 633 | 633 |
| 634 | 634 |
| 635 #ifdef DEBUG | |
| 636 #define RUNTIME_FUNCTION_LIST_DEBUG(F) \ | |
| 637 /* Testing */ \ | |
| 638 F(ListNatives, 0, 1) | |
| 639 #else | |
| 640 #define RUNTIME_FUNCTION_LIST_DEBUG(F) | |
| 641 #endif | |
| 642 | |
| 643 // ---------------------------------------------------------------------------- | 635 // ---------------------------------------------------------------------------- |
| 644 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed | 636 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed |
| 645 // either directly by id (via the code generator), or indirectly | 637 // either directly by id (via the code generator), or indirectly |
| 646 // via a native call by name (from within JS code). | 638 // via a native call by name (from within JS code). |
| 647 // Entries have the form F(name, number of arguments, number of return values). | 639 // Entries have the form F(name, number of arguments, number of return values). |
| 648 | 640 |
| 649 #define RUNTIME_FUNCTION_LIST_RETURN_OBJECT(F) \ | 641 #define RUNTIME_FUNCTION_LIST_RETURN_OBJECT(F) \ |
| 650 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \ | 642 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \ |
| 651 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 643 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
| 652 RUNTIME_FUNCTION_LIST_ALWAYS_3(F) \ | 644 RUNTIME_FUNCTION_LIST_ALWAYS_3(F) \ |
| 653 RUNTIME_FUNCTION_LIST_DEBUG(F) \ | |
| 654 RUNTIME_FUNCTION_LIST_DEBUGGER(F) \ | 645 RUNTIME_FUNCTION_LIST_DEBUGGER(F) \ |
| 655 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) | 646 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) |
| 656 | 647 |
| 657 | 648 |
| 658 #define RUNTIME_FUNCTION_LIST(F) \ | 649 #define RUNTIME_FUNCTION_LIST(F) \ |
| 659 RUNTIME_FUNCTION_LIST_RETURN_OBJECT(F) \ | 650 RUNTIME_FUNCTION_LIST_RETURN_OBJECT(F) \ |
| 660 RUNTIME_FUNCTION_LIST_RETURN_PAIR(F) | 651 RUNTIME_FUNCTION_LIST_RETURN_PAIR(F) |
| 661 | 652 |
| 662 // ---------------------------------------------------------------------------- | 653 // ---------------------------------------------------------------------------- |
| 663 // INLINE_FUNCTION_LIST defines all inlined functions accessed | 654 // INLINE_FUNCTION_LIST defines all inlined functions accessed |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 903 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
| 913 | 904 |
| 914 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 905 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 915 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 906 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 916 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 907 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
| 917 | 908 |
| 918 } // namespace internal | 909 } // namespace internal |
| 919 } // namespace v8 | 910 } // namespace v8 |
| 920 | 911 |
| 921 #endif // V8_RUNTIME_H_ | 912 #endif // V8_RUNTIME_H_ |
| OLD | NEW |