Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index 789518b4db56c9c00a224dab4d4481b8d1fc91b1..79ee9a9f775999f7646b70c9282178b995931563 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -120,10 +120,10 @@ RUNTIME_FUNCTION(Runtime_TypedArrayInitialize) { |
// All checks are done, now we can modify objects. |
- DCHECK_EQ(v8::ArrayBufferView::kInternalFieldCount, |
- holder->GetInternalFieldCount()); |
- for (int i = 0; i < v8::ArrayBufferView::kInternalFieldCount; i++) { |
- holder->SetInternalField(i, Smi::kZero); |
+ DCHECK_EQ(v8::ArrayBufferView::kEmbedderFieldCount, |
+ holder->GetEmbedderFieldCount()); |
+ for (int i = 0; i < v8::ArrayBufferView::kEmbedderFieldCount; i++) { |
+ holder->SetEmbedderField(i, Smi::kZero); |
} |
Handle<Object> length_obj = isolate->factory()->NewNumberFromSize(length); |
holder->set_length(*length_obj); |
@@ -193,10 +193,10 @@ RUNTIME_FUNCTION(Runtime_TypedArrayInitializeFromArrayLike) { |
} |
size_t byte_length = length * element_size; |
- DCHECK_EQ(v8::ArrayBufferView::kInternalFieldCount, |
- holder->GetInternalFieldCount()); |
- for (int i = 0; i < v8::ArrayBufferView::kInternalFieldCount; i++) { |
- holder->SetInternalField(i, Smi::kZero); |
+ DCHECK_EQ(v8::ArrayBufferView::kEmbedderFieldCount, |
+ holder->GetEmbedderFieldCount()); |
+ for (int i = 0; i < v8::ArrayBufferView::kEmbedderFieldCount; i++) { |
+ holder->SetEmbedderField(i, Smi::kZero); |
} |
// NOTE: not initializing backing store. |