Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: src/full-codegen.cc

Issue 177313005: Remove duplicates in runtime macros. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.h ('k') | src/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698