Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 3e4601a65e1176eeea207dd77e54590c9df40190..20df0b92166d053063432324ba8f616cd4868c6d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1786,6 +1786,10 @@ void HeapObject::IterateBody(InstanceType type, int object_size, |
SharedFunctionInfo::BodyDescriptor::IterateBody(this, v); |
break; |
} |
+ case OPTIMIZED_CODE_ENTRY_TYPE: { |
+ OptimizedCodeEntry::BodyDescriptor::IterateBody(this, v); |
+ break; |
+ } |
#define MAKE_STRUCT_CASE(NAME, Name, name) \ |
case NAME##_TYPE: |
@@ -9471,6 +9475,15 @@ void SharedFunctionInfo::TrimOptimizedCodeMap(int shrink_by) { |
} |
+void OptimizedCodeEntry::Kill() { |
+ set_function(NULL, SKIP_WRITE_BARRIER); |
+ set_code(NULL, SKIP_WRITE_BARRIER); |
+ set_native_context(NULL, SKIP_WRITE_BARRIER); |
+ set_literals(NULL, SKIP_WRITE_BARRIER); |
+ set_cacheable(false); |
+} |
+ |
+ |
bool JSFunction::CompileLazy(Handle<JSFunction> function, |
ClearExceptionFlag flag) { |
bool result = true; |