Chromium Code Reviews| Index: src/lithium.h |
| diff --git a/src/lithium.h b/src/lithium.h |
| index e1cd52aa0acc4e9642c7c3f9ef14646de6290a04..fdc61cb6fef3a316c8555433166a690d99e70a5f 100644 |
| --- a/src/lithium.h |
| +++ b/src/lithium.h |
| @@ -153,7 +153,10 @@ class LUnallocated: public LOperand { |
| kVirtualRegisterWidth> { |
| }; |
| - static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth; |
| + // kMaxVirtualRegisters should not exceed 1 << kVirtualRegisterWidth but we |
| + // are setting it to a lower value otherwise crankshaft is too slow. |
| + STATIC_ASSERT(kVirtualRegisterWidth > 13); |
| + static const int kMaxVirtualRegisters = 1 << 13; |
|
Vyacheslav Egorov (Google)
2012/09/21 11:42:08
can you give some of this bits to other fields?
i
|
| static const int kMaxFixedIndex = 63; |
| static const int kMinFixedIndex = -64; |