Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 77b4e3816cd064e3004cedf13f244580c912a5b6..f629d9f19f52b122f9f71c838c787ab91314df5f 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -675,7 +675,6 @@ TYPE_CHECKER(Oddball, ODDBALL_TYPE) |
TYPE_CHECKER(Cell, CELL_TYPE) |
TYPE_CHECKER(PropertyCell, PROPERTY_CELL_TYPE) |
TYPE_CHECKER(SharedFunctionInfo, SHARED_FUNCTION_INFO_TYPE) |
-TYPE_CHECKER(OptimizedCodeEntry, OPTIMIZED_CODE_ENTRY_TYPE) |
TYPE_CHECKER(JSGeneratorObject, JS_GENERATOR_OBJECT_TYPE) |
TYPE_CHECKER(JSModule, JS_MODULE_TYPE) |
TYPE_CHECKER(JSValue, JS_VALUE_TYPE) |
@@ -2573,7 +2572,6 @@ CAST_ACCESSOR(Oddball) |
CAST_ACCESSOR(Cell) |
CAST_ACCESSOR(PropertyCell) |
CAST_ACCESSOR(SharedFunctionInfo) |
-CAST_ACCESSOR(OptimizedCodeEntry) |
CAST_ACCESSOR(Map) |
CAST_ACCESSOR(JSFunction) |
CAST_ACCESSOR(GlobalObject) |
@@ -4926,52 +4924,6 @@ void SharedFunctionInfo::TryReenableOptimization() { |
} |
-ACCESSORS(OptimizedCodeEntry, native_context, Context, kNativeContextOffset) |
-ACCESSORS(OptimizedCodeEntry, function, JSFunction, kFunctionOffset) |
-ACCESSORS(OptimizedCodeEntry, code, Code, kCodeOffset) |
-ACCESSORS(OptimizedCodeEntry, literals, FixedArray, kLiteralsOffset) |
- |
- |
-OptimizedCodeEntry* OptimizedCodeEntry::next_by_shared_info() { |
- Object* object = READ_FIELD(this, kNextBySharedInfoOffset); |
- if (object == NULL) return NULL; |
- return OptimizedCodeEntry::cast(object); |
-} |
- |
- |
-OptimizedCodeEntry* OptimizedCodeEntry::next_by_native_context() { |
- Object* object = READ_FIELD(this, kNextByNativeContextOffset); |
- if (object == NULL) return NULL; |
- return OptimizedCodeEntry::cast(object); |
-} |
- |
- |
-void OptimizedCodeEntry::set_next_by_shared_info(OptimizedCodeEntry* value, |
- WriteBarrierMode mode) { |
- WRITE_FIELD(this, kNextBySharedInfoOffset, value); |
- CONDITIONAL_WRITE_BARRIER( |
- GetHeap(), this, kNextBySharedInfoOffset, value, mode); |
-} |
- |
- |
-void OptimizedCodeEntry::set_next_by_native_context(OptimizedCodeEntry* value, |
- WriteBarrierMode mode) { |
- WRITE_FIELD(this, kNextByNativeContextOffset, value); |
- CONDITIONAL_WRITE_BARRIER( |
- GetHeap(), this, kNextByNativeContextOffset, value, mode); |
-} |
- |
- |
-bool OptimizedCodeEntry::cacheable() { |
- return static_cast<bool>(READ_BYTE_FIELD(this, kCacheableOffset)); |
-} |
- |
- |
-void OptimizedCodeEntry::set_cacheable(bool val) { |
- WRITE_BYTE_FIELD(this, kCacheableOffset, static_cast<byte>(val)); |
-} |
- |
- |
bool JSFunction::IsBuiltin() { |
return context()->global_object()->IsJSBuiltinsObject(); |
} |