Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Unified Diff: src/compiler/access-builder.cc

Issue 1178103002: [turbofan] Structure AccessBuilder interface a bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-enable
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/access-builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/access-builder.cc
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc
index a28075c24c35940d9d42f1e1037a9d962c8a402a..5046fef5935c4b2ea66565491f3d7f272cfb4b44 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -38,6 +38,13 @@ FieldAccess AccessBuilder::ForJSFunctionContext() {
// static
+FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() {
+ return {kTaggedBase, JSFunction::kSharedFunctionInfoOffset, Handle<Name>(),
+ Type::Any(), kMachAnyTagged};
+}
+
+
+// static
FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() {
return {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, MaybeHandle<Name>(),
Type::UntaggedPointer(), kMachPtr};
@@ -129,15 +136,16 @@ FieldAccess AccessBuilder::ForContextSlot(size_t index) {
// static
-FieldAccess AccessBuilder::ForStatsCounter() {
- return {kUntaggedBase, 0, MaybeHandle<Name>(), Type::Signed32(), kMachInt32};
+FieldAccess AccessBuilder::ForPropertyCellValue() {
+ return {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), Type::Any(),
+ kMachAnyTagged};
}
// static
-FieldAccess AccessBuilder::ForPropertyCellValue() {
- return {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), Type::Any(),
- kMachAnyTagged};
+FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() {
+ return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset,
+ Handle<Name>(), Type::Any(), kMachAnyTagged};
}
@@ -192,16 +200,8 @@ ElementAccess AccessBuilder::ForSeqStringChar(String::Encoding encoding) {
// static
-FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() {
- return {kTaggedBase, JSFunction::kSharedFunctionInfoOffset, Handle<Name>(),
- Type::Any(), kMachAnyTagged};
-}
-
-
-// static
-FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() {
- return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset,
- Handle<Name>(), Type::Any(), kMachAnyTagged};
+FieldAccess AccessBuilder::ForStatsCounter() {
+ return {kUntaggedBase, 0, MaybeHandle<Name>(), Type::Signed32(), kMachInt32};
}
« no previous file with comments | « src/compiler/access-builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698