Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 5457678d38c88784109549f3c16ac93c68404b62..132aa9e69302ffb269c4cc650218bcfe085d4df5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -480,7 +480,7 @@ bool JSObject::IsDirty() { |
if (!cons_obj->IsJSFunction()) |
return true; |
JSFunction* fun = JSFunction::cast(cons_obj); |
- if (!fun->shared()->function_data()->IsFunctionTemplateInfo()) |
+ if (!fun->shared()->IsApiFunction()) |
return true; |
// If the object is fully fast case and has the same map it was |
// created with then no changes can have been made to it. |
@@ -6433,9 +6433,9 @@ void Dictionary<Shape, Key>::CopyValuesTo(FixedArray* elements) { |
InterceptorInfo* JSObject::GetNamedInterceptor() { |
ASSERT(map()->has_named_interceptor()); |
JSFunction* constructor = JSFunction::cast(map()->constructor()); |
- Object* template_info = constructor->shared()->function_data(); |
+ ASSERT(constructor->shared()->IsApiFunction()); |
Object* result = |
- FunctionTemplateInfo::cast(template_info)->named_property_handler(); |
+ constructor->shared()->get_api_func_data()->named_property_handler(); |
return InterceptorInfo::cast(result); |
} |
@@ -6443,9 +6443,9 @@ InterceptorInfo* JSObject::GetNamedInterceptor() { |
InterceptorInfo* JSObject::GetIndexedInterceptor() { |
ASSERT(map()->has_indexed_interceptor()); |
JSFunction* constructor = JSFunction::cast(map()->constructor()); |
- Object* template_info = constructor->shared()->function_data(); |
+ ASSERT(constructor->shared()->IsApiFunction()); |
Object* result = |
- FunctionTemplateInfo::cast(template_info)->indexed_property_handler(); |
+ constructor->shared()->get_api_func_data()->indexed_property_handler(); |
return InterceptorInfo::cast(result); |
} |