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

Unified Diff: src/register-allocator.h

Issue 1604002: Simple register allocation for ARM. Only top of expression... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: src/register-allocator.h
===================================================================
--- src/register-allocator.h (revision 4341)
+++ src/register-allocator.h (working copy)
@@ -213,7 +213,12 @@
}
private:
- static const int kNumRegisters = RegisterAllocatorConstants::kNumRegisters;
+ // C++ doesn't like zero length arrays, so we make the array length 1 even if
+ // we don't need it.
+ static const int kNumRegisters =
Søren Thygesen Gjesse 2010/04/07 10:46:51 4 space indent.
Erik Corry 2010/04/07 12:49:17 Done.
+ (RegisterAllocatorConstants::kNumRegisters == 0 ?
Søren Thygesen Gjesse 2010/04/07 10:46:51 1 : RegisterAllocatorConstants::kNumRegisters on s
Erik Corry 2010/04/07 12:49:17 Done.
+ 1 :
+ RegisterAllocatorConstants::kNumRegisters);
int ref_counts_[kNumRegisters];

Powered by Google App Engine
This is Rietveld 408576698