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

Side by Side Diff: src/objects.h

Issue 9167011: Support inlining and crankshaft optimization of Math.random. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 8 years, 11 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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('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 4875 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 V(Math, abs, MathAbs) \ 4886 V(Math, abs, MathAbs) \
4887 V(Math, log, MathLog) \ 4887 V(Math, log, MathLog) \
4888 V(Math, sin, MathSin) \ 4888 V(Math, sin, MathSin) \
4889 V(Math, cos, MathCos) \ 4889 V(Math, cos, MathCos) \
4890 V(Math, tan, MathTan) \ 4890 V(Math, tan, MathTan) \
4891 V(Math, asin, MathASin) \ 4891 V(Math, asin, MathASin) \
4892 V(Math, acos, MathACos) \ 4892 V(Math, acos, MathACos) \
4893 V(Math, atan, MathATan) \ 4893 V(Math, atan, MathATan) \
4894 V(Math, exp, MathExp) \ 4894 V(Math, exp, MathExp) \
4895 V(Math, sqrt, MathSqrt) \ 4895 V(Math, sqrt, MathSqrt) \
4896 V(Math, pow, MathPow) 4896 V(Math, pow, MathPow) \
4897 V(Math, random, MathRandom)
4897 4898
4898 4899
4899 enum BuiltinFunctionId { 4900 enum BuiltinFunctionId {
4900 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 4901 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
4901 k##name, 4902 k##name,
4902 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 4903 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
4903 #undef DECLARE_FUNCTION_ID 4904 #undef DECLARE_FUNCTION_ID
4904 // Fake id for a special case of Math.pow. Note, it continues the 4905 // Fake id for a special case of Math.pow. Note, it continues the
4905 // list of math functions. 4906 // list of math functions.
4906 kMathPowHalf, 4907 kMathPowHalf,
(...skipping 3244 matching lines...) Expand 10 before | Expand all | Expand 10 after
8151 } else { 8152 } else {
8152 value &= ~(1 << bit_position); 8153 value &= ~(1 << bit_position);
8153 } 8154 }
8154 return value; 8155 return value;
8155 } 8156 }
8156 }; 8157 };
8157 8158
8158 } } // namespace v8::internal 8159 } } // namespace v8::internal
8159 8160
8160 #endif // V8_OBJECTS_H_ 8161 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698