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

Side by Side Diff: src/objects.h

Issue 68723002: Implement Math.random() purely in JavaScript. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments only Created 7 years, 1 month 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/mips/lithium-mips.cc ('k') | src/runtime.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 6499 matching lines...) Expand 10 before | Expand all | Expand 10 after
6510 V(Math, log, MathLog) \ 6510 V(Math, log, MathLog) \
6511 V(Math, sin, MathSin) \ 6511 V(Math, sin, MathSin) \
6512 V(Math, cos, MathCos) \ 6512 V(Math, cos, MathCos) \
6513 V(Math, tan, MathTan) \ 6513 V(Math, tan, MathTan) \
6514 V(Math, asin, MathASin) \ 6514 V(Math, asin, MathASin) \
6515 V(Math, acos, MathACos) \ 6515 V(Math, acos, MathACos) \
6516 V(Math, atan, MathATan) \ 6516 V(Math, atan, MathATan) \
6517 V(Math, exp, MathExp) \ 6517 V(Math, exp, MathExp) \
6518 V(Math, sqrt, MathSqrt) \ 6518 V(Math, sqrt, MathSqrt) \
6519 V(Math, pow, MathPow) \ 6519 V(Math, pow, MathPow) \
6520 V(Math, random, MathRandom) \
6521 V(Math, max, MathMax) \ 6520 V(Math, max, MathMax) \
6522 V(Math, min, MathMin) \ 6521 V(Math, min, MathMin) \
6523 V(Math, imul, MathImul) 6522 V(Math, imul, MathImul)
6524 6523
6525 enum BuiltinFunctionId { 6524 enum BuiltinFunctionId {
6526 kArrayCode, 6525 kArrayCode,
6527 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6526 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6528 k##name, 6527 k##name,
6529 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6528 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6530 #undef DECLARE_FUNCTION_ID 6529 #undef DECLARE_FUNCTION_ID
(...skipping 4036 matching lines...) Expand 10 before | Expand all | Expand 10 after
10567 } else { 10566 } else {
10568 value &= ~(1 << bit_position); 10567 value &= ~(1 << bit_position);
10569 } 10568 }
10570 return value; 10569 return value;
10571 } 10570 }
10572 }; 10571 };
10573 10572
10574 } } // namespace v8::internal 10573 } } // namespace v8::internal
10575 10574
10576 #endif // V8_OBJECTS_H_ 10575 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698