| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 764 |
| 765 class JavaScriptFrameIterator; // Forward declaration. | 765 class JavaScriptFrameIterator; // Forward declaration. |
| 766 | 766 |
| 767 | 767 |
| 768 class Runtime : public AllStatic { | 768 class Runtime : public AllStatic { |
| 769 public: | 769 public: |
| 770 enum FunctionId { | 770 enum FunctionId { |
| 771 #define F(name, nargs, ressize) k##name, | 771 #define F(name, nargs, ressize) k##name, |
| 772 #define I(name, nargs, ressize) kInline##name, | 772 #define I(name, nargs, ressize) kInline##name, |
| 773 RUNTIME_FUNCTION_LIST(F) INLINE_FUNCTION_LIST(F) | 773 RUNTIME_FUNCTION_LIST(F) INLINE_FUNCTION_LIST(F) |
| 774 INLINE_OPTIMIZED_FUNCTION_LIST(F) INLINE_FUNCTION_LIST(I) | 774 INLINE_OPTIMIZED_FUNCTION_LIST(F) RUNTIME_FUNCTION_LIST(I) |
| 775 INLINE_OPTIMIZED_FUNCTION_LIST(I) | 775 INLINE_FUNCTION_LIST(I) INLINE_OPTIMIZED_FUNCTION_LIST(I) |
| 776 #undef I | 776 #undef I |
| 777 #undef F | 777 #undef F |
| 778 kNumFunctions, | 778 kNumFunctions, |
| 779 // TODO(svenpanne) The values below are cruel hacks, remove them! | 779 // TODO(svenpanne) The values below are cruel hacks, remove them! |
| 780 kFirstInlineFunction = kInlineIsSmi, | 780 kFirstInlineFunction = kInlineIsSmi, |
| 781 kLastInlineFunction = kInlineDebugIsActive | 781 kLastInlineFunction = kInlineDebugIsActive |
| 782 }; | 782 }; |
| 783 | 783 |
| 784 enum IntrinsicType { RUNTIME, INLINE }; | 784 enum IntrinsicType { RUNTIME, INLINE }; |
| 785 | 785 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 | 902 |
| 903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 905 STATIC_ASSERT(LANGUAGE_END == 3); | 905 STATIC_ASSERT(LANGUAGE_END == 3); |
| 906 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 906 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
| 907 | 907 |
| 908 } // namespace internal | 908 } // namespace internal |
| 909 } // namespace v8 | 909 } // namespace v8 |
| 910 | 910 |
| 911 #endif // V8_RUNTIME_RUNTIME_H_ | 911 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |