OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 | 898 |
899 | 899 |
900 // Lookup table for code generators for special runtime calls which are | 900 // Lookup table for code generators for special runtime calls which are |
901 // generated inline. | 901 // generated inline. |
902 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ | 902 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ |
903 &FullCodeGenerator::Emit##Name, | 903 &FullCodeGenerator::Emit##Name, |
904 | 904 |
905 const FullCodeGenerator::InlineFunctionGenerator | 905 const FullCodeGenerator::InlineFunctionGenerator |
906 FullCodeGenerator::kInlineFunctionGenerators[] = { | 906 FullCodeGenerator::kInlineFunctionGenerators[] = { |
907 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS) | 907 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS) |
908 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS) | |
909 }; | 908 }; |
910 #undef INLINE_FUNCTION_GENERATOR_ADDRESS | 909 #undef INLINE_FUNCTION_GENERATOR_ADDRESS |
911 | 910 |
912 | 911 |
913 FullCodeGenerator::InlineFunctionGenerator | 912 FullCodeGenerator::InlineFunctionGenerator |
914 FullCodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) { | 913 FullCodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) { |
915 int lookup_index = | 914 int lookup_index = |
916 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction); | 915 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction); |
917 ASSERT(lookup_index >= 0); | 916 ASSERT(lookup_index >= 0); |
918 ASSERT(static_cast<size_t>(lookup_index) < | 917 ASSERT(static_cast<size_t>(lookup_index) < |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 } | 1727 } |
1729 return true; | 1728 return true; |
1730 } | 1729 } |
1731 #endif // DEBUG | 1730 #endif // DEBUG |
1732 | 1731 |
1733 | 1732 |
1734 #undef __ | 1733 #undef __ |
1735 | 1734 |
1736 | 1735 |
1737 } } // namespace v8::internal | 1736 } } // namespace v8::internal |
OLD | NEW |