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

Side by Side Diff: src/runtime/runtime.h

Issue 990963003: [turbofan] Unify Math.floor / Math.ceil optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/math.js ('k') | src/runtime/runtime-maths.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_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 F(NumberEquals, 2, 1) \ 141 F(NumberEquals, 2, 1) \
142 F(StringEquals, 2, 1) \ 142 F(StringEquals, 2, 1) \
143 \ 143 \
144 F(NumberCompare, 3, 1) \ 144 F(NumberCompare, 3, 1) \
145 F(SmiLexicographicCompare, 2, 1) \ 145 F(SmiLexicographicCompare, 2, 1) \
146 \ 146 \
147 /* Math */ \ 147 /* Math */ \
148 F(MathAcos, 1, 1) \ 148 F(MathAcos, 1, 1) \
149 F(MathAsin, 1, 1) \ 149 F(MathAsin, 1, 1) \
150 F(MathAtan, 1, 1) \ 150 F(MathAtan, 1, 1) \
151 F(MathFloorRT, 1, 1) \
152 F(MathAtan2, 2, 1) \ 151 F(MathAtan2, 2, 1) \
153 F(MathExpRT, 1, 1) \ 152 F(MathExpRT, 1, 1) \
154 F(RoundNumber, 1, 1) \ 153 F(RoundNumber, 1, 1) \
155 F(MathFround, 1, 1) \ 154 F(MathFround, 1, 1) \
156 F(RemPiO2, 2, 1) \ 155 F(RemPiO2, 2, 1) \
157 \ 156 \
158 /* Regular expressions */ \ 157 /* Regular expressions */ \
159 F(RegExpInitializeAndCompile, 3, 1) \ 158 F(RegExpInitializeAndCompile, 3, 1) \
160 F(RegExpExecMultiple, 4, 1) \ 159 F(RegExpExecMultiple, 4, 1) \
161 \ 160 \
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 F(TypedArrayMaxSizeInHeap, 0, 1) \ 709 F(TypedArrayMaxSizeInHeap, 0, 1) \
711 F(ArrayBufferViewGetByteLength, 1, 1) \ 710 F(ArrayBufferViewGetByteLength, 1, 1) \
712 F(ArrayBufferViewGetByteOffset, 1, 1) \ 711 F(ArrayBufferViewGetByteOffset, 1, 1) \
713 F(TypedArrayGetLength, 1, 1) \ 712 F(TypedArrayGetLength, 1, 1) \
714 /* ArrayBuffer */ \ 713 /* ArrayBuffer */ \
715 F(ArrayBufferGetByteLength, 1, 1) \ 714 F(ArrayBufferGetByteLength, 1, 1) \
716 /* Maths */ \ 715 /* Maths */ \
717 F(ConstructDouble, 2, 1) \ 716 F(ConstructDouble, 2, 1) \
718 F(DoubleHi, 1, 1) \ 717 F(DoubleHi, 1, 1) \
719 F(DoubleLo, 1, 1) \ 718 F(DoubleLo, 1, 1) \
719 F(MathFloor, 1, 1) \
720 F(MathSqrtRT, 1, 1) \ 720 F(MathSqrtRT, 1, 1) \
721 F(MathLogRT, 1, 1) \ 721 F(MathLogRT, 1, 1) \
722 /* ES6 Collections */ \ 722 /* ES6 Collections */ \
723 F(MapClear, 1, 1) \ 723 F(MapClear, 1, 1) \
724 F(MapDelete, 2, 1) \ 724 F(MapDelete, 2, 1) \
725 F(MapGet, 2, 1) \ 725 F(MapGet, 2, 1) \
726 F(MapGetSize, 1, 1) \ 726 F(MapGetSize, 1, 1) \
727 F(MapHas, 2, 1) \ 727 F(MapHas, 2, 1) \
728 F(MapInitialize, 1, 1) \ 728 F(MapInitialize, 1, 1) \
729 F(MapSet, 3, 1) \ 729 F(MapSet, 3, 1) \
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 902
903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 903 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 904 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
905 STATIC_ASSERT(LANGUAGE_END == 3); 905 STATIC_ASSERT(LANGUAGE_END == 3);
906 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 906 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
907 907
908 } // namespace internal 908 } // namespace internal
909 } // namespace v8 909 } // namespace v8
910 910
911 #endif // V8_RUNTIME_RUNTIME_H_ 911 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/runtime/runtime-maths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698