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