Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index b963868e81c84cc70dffdbf46a14ff0b8b169113..f39e37072d16202254efae172fc6b5a24b1e7111 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -164,8 +164,8 @@ RUNTIME_FUNCTION(Runtime_TypedArrayInitialize) { |
// All checks are done, now we can modify objects. |
- DCHECK(holder->GetInternalFieldCount() == |
- v8::ArrayBufferView::kInternalFieldCount); |
+ DCHECK_EQ(v8::ArrayBufferView::kInternalFieldCount, |
+ holder->GetInternalFieldCount()); |
for (int i = 0; i < v8::ArrayBufferView::kInternalFieldCount; i++) { |
holder->SetInternalField(i, Smi::FromInt(0)); |
} |
@@ -238,8 +238,8 @@ RUNTIME_FUNCTION(Runtime_TypedArrayInitializeFromArrayLike) { |
} |
size_t byte_length = length * element_size; |
- DCHECK(holder->GetInternalFieldCount() == |
- v8::ArrayBufferView::kInternalFieldCount); |
+ DCHECK_EQ(v8::ArrayBufferView::kInternalFieldCount, |
+ holder->GetInternalFieldCount()); |
for (int i = 0; i < v8::ArrayBufferView::kInternalFieldCount; i++) { |
holder->SetInternalField(i, Smi::FromInt(0)); |
} |
@@ -441,8 +441,8 @@ RUNTIME_FUNCTION(Runtime_DataViewInitialize) { |
CONVERT_NUMBER_ARG_HANDLE_CHECKED(byte_offset, 2); |
CONVERT_NUMBER_ARG_HANDLE_CHECKED(byte_length, 3); |
- DCHECK(holder->GetInternalFieldCount() == |
- v8::ArrayBufferView::kInternalFieldCount); |
+ DCHECK_EQ(v8::ArrayBufferView::kInternalFieldCount, |
+ holder->GetInternalFieldCount()); |
for (int i = 0; i < v8::ArrayBufferView::kInternalFieldCount; i++) { |
holder->SetInternalField(i, Smi::FromInt(0)); |
} |