Chromium Code Reviews| Index: src/heap.h |
| =================================================================== |
| --- src/heap.h (revision 6082) |
| +++ src/heap.h (working copy) |
| @@ -1968,6 +1968,8 @@ |
| class TranscendentalCache { |
| public: |
| enum Type {ACOS, ASIN, ATAN, COS, EXP, LOG, SIN, TAN, kNumberOfCaches}; |
| + static const int kTranscendentalTypeBits = 3; |
| + STATIC_ASSERT((1 << kTranscendentalTypeBits) >= kNumberOfCaches); |
| explicit TranscendentalCache(Type t); |