Index: src/ffi/ffi-compiler.cc |
diff --git a/src/ffi/ffi-compiler.cc b/src/ffi/ffi-compiler.cc |
index d7fdbb957de122b95dc267620132d987fdeae933..a526ce3d4b0c5fafd86ddebed9699b7ee033993b 100644 |
--- a/src/ffi/ffi-compiler.cc |
+++ b/src/ffi/ffi-compiler.cc |
@@ -16,14 +16,14 @@ void InstallFFIMap(Isolate* isolate) { |
Handle<Map> prev_map = Handle<Map>(context->sloppy_function_map(), isolate); |
InstanceType instance_type = prev_map->instance_type(); |
- int internal_fields = JSObject::GetInternalFieldCount(*prev_map); |
- CHECK_EQ(0, internal_fields); |
+ int embedder_fields = JSObject::GetEmbedderFieldCount(*prev_map); |
+ CHECK_EQ(0, embedder_fields); |
int pre_allocated = |
prev_map->GetInObjectProperties() - prev_map->unused_property_fields(); |
int instance_size; |
int in_object_properties; |
JSFunction::CalculateInstanceSizeHelper( |
- instance_type, internal_fields, 0, &instance_size, &in_object_properties); |
+ instance_type, embedder_fields, 0, &instance_size, &in_object_properties); |
int unused_property_fields = in_object_properties - pre_allocated; |
Handle<Map> map = Map::CopyInitialMap( |
prev_map, instance_size, in_object_properties, unused_property_fields); |