Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index 722bbf020ee5ab12b348be5d5493a96e041b09af..547f2d8850a4a97d7bfefcc52a619581be656613 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -61,6 +61,14 @@ FieldAccess AccessBuilder::ForJSObjectInObjectProperty(Handle<Map> map, |
// static |
+FieldAccess AccessBuilder::ForJSFunctionPrototypeOrInitialMap() { |
+ FieldAccess access = {kTaggedBase, JSFunction::kPrototypeOrInitialMapOffset, |
+ MaybeHandle<Name>(), Type::Any(), |
+ MachineType::AnyTagged()}; |
+ return access; |
+} |
+ |
+// static |
FieldAccess AccessBuilder::ForJSFunctionContext() { |
FieldAccess access = {kTaggedBase, JSFunction::kContextOffset, |
MaybeHandle<Name>(), Type::Internal(), |
@@ -78,6 +86,29 @@ FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { |
// static |
+FieldAccess AccessBuilder::ForJSFunctionLiterals() { |
+ FieldAccess access = {kTaggedBase, JSFunction::kLiteralsOffset, |
+ Handle<Name>(), Type::Internal(), |
+ MachineType::AnyTagged()}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSFunctionCodeEntry() { |
+ FieldAccess access = {kTaggedBase, JSFunction::kCodeEntryOffset, |
+ Handle<Name>(), Type::UntaggedPointer(), |
+ MachineType::Pointer()}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSFunctionNextFunctionLink() { |
+ FieldAccess access = {kTaggedBase, JSFunction::kNextFunctionLinkOffset, |
+ Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; |
+ return access; |
+} |
+ |
+// static |
FieldAccess AccessBuilder::ForJSArrayLength(ElementsKind elements_kind) { |
TypeCache const& type_cache = TypeCache::Get(); |
FieldAccess access = {kTaggedBase, JSArray::kLengthOffset, Handle<Name>(), |