Reviewers: Jakob,
Description:
Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252).
BUG=128252
Please review this at https://chromiumcodereview.appspot.com/10966031/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/lithium.h
Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index
e1cd52aa0acc4e9642c7c3f9ef14646de6290a04..fdc61cb6fef3a316c8555433166a690d9 9e70a5f
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;
static const int kMaxFixedIndex = 63;
static const int kMinFixedIndex = -64;