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

Side by Side Diff: src/objects.h

Issue 635323002: Remove premordial math functions from native context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/contexts.h ('k') | test/unittests/compiler/js-builtin-reducer-unittest.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 // 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6530 matching lines...) Expand 10 before | Expand all | Expand 10 after
6541 #define FUNCTIONS_WITH_ID_LIST(V) \ 6541 #define FUNCTIONS_WITH_ID_LIST(V) \
6542 V(Array.prototype, indexOf, ArrayIndexOf) \ 6542 V(Array.prototype, indexOf, ArrayIndexOf) \
6543 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \ 6543 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \
6544 V(Array.prototype, push, ArrayPush) \ 6544 V(Array.prototype, push, ArrayPush) \
6545 V(Array.prototype, pop, ArrayPop) \ 6545 V(Array.prototype, pop, ArrayPop) \
6546 V(Array.prototype, shift, ArrayShift) \ 6546 V(Array.prototype, shift, ArrayShift) \
6547 V(Function.prototype, apply, FunctionApply) \ 6547 V(Function.prototype, apply, FunctionApply) \
6548 V(String.prototype, charCodeAt, StringCharCodeAt) \ 6548 V(String.prototype, charCodeAt, StringCharCodeAt) \
6549 V(String.prototype, charAt, StringCharAt) \ 6549 V(String.prototype, charAt, StringCharAt) \
6550 V(String, fromCharCode, StringFromCharCode) \ 6550 V(String, fromCharCode, StringFromCharCode) \
6551 V(Math, random, MathRandom) \
6551 V(Math, floor, MathFloor) \ 6552 V(Math, floor, MathFloor) \
6552 V(Math, round, MathRound) \ 6553 V(Math, round, MathRound) \
6553 V(Math, ceil, MathCeil) \ 6554 V(Math, ceil, MathCeil) \
6554 V(Math, abs, MathAbs) \ 6555 V(Math, abs, MathAbs) \
6555 V(Math, log, MathLog) \ 6556 V(Math, log, MathLog) \
6556 V(Math, exp, MathExp) \ 6557 V(Math, exp, MathExp) \
6557 V(Math, sqrt, MathSqrt) \ 6558 V(Math, sqrt, MathSqrt) \
6558 V(Math, pow, MathPow) \ 6559 V(Math, pow, MathPow) \
6559 V(Math, max, MathMax) \ 6560 V(Math, max, MathMax) \
6560 V(Math, min, MathMin) \ 6561 V(Math, min, MathMin) \
6562 V(Math, cos, MathCos) \
6563 V(Math, sin, MathSin) \
6564 V(Math, tan, MathTan) \
6565 V(Math, acos, MathAcos) \
6566 V(Math, asin, MathAsin) \
6567 V(Math, atan, MathAtan) \
6568 V(Math, atan2, MathAtan2) \
6561 V(Math, imul, MathImul) \ 6569 V(Math, imul, MathImul) \
6562 V(Math, clz32, MathClz32) \ 6570 V(Math, clz32, MathClz32) \
6563 V(Math, fround, MathFround) 6571 V(Math, fround, MathFround)
6564 6572
6565 enum BuiltinFunctionId { 6573 enum BuiltinFunctionId {
6566 kArrayCode, 6574 kArrayCode,
6567 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6575 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6568 k##name, 6576 k##name,
6569 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6577 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6570 #undef DECLARE_FUNCTION_ID 6578 #undef DECLARE_FUNCTION_ID
(...skipping 4270 matching lines...) Expand 10 before | Expand all | Expand 10 after
10841 } else { 10849 } else {
10842 value &= ~(1 << bit_position); 10850 value &= ~(1 << bit_position);
10843 } 10851 }
10844 return value; 10852 return value;
10845 } 10853 }
10846 }; 10854 };
10847 10855
10848 } } // namespace v8::internal 10856 } } // namespace v8::internal
10849 10857
10850 #endif // V8_OBJECTS_H_ 10858 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698