Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 58514bca1cfd5ea04ed63faf8d3a81fc1b7554a1..70e342d3d7832e9edfd037b4eeff081526db6182 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -926,8 +926,8 @@ static void AllocateEmptyJSArray(MacroAssembler* masm, |
Register scratch2, |
Register scratch3, |
Label* gc_required) { |
- int initial_capacity = JSArray::kPreallocatedArrayElements; |
- ASSERT(initial_capacity >= 0); |
+ const int initial_capacity = JSArray::kPreallocatedArrayElements; |
+ STATIC_ASSERT(initial_capacity >= 0); |
// Load the initial map from the array function. |
__ mov(scratch1, FieldOperand(array_function, |
JSFunction::kPrototypeOrInitialMapOffset)); |