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

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

Issue 1516753006: [turbofan] Some more cleanup on the intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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') | src/compiler/js-intrinsic-lowering.h » ('j') | 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 bc70bc52d8adbc1cc6096fba53bfdcd911a30e91..273b9ca8461fb8302d54d521fc9efc424ae12754 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -129,6 +129,24 @@ FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) {
// static
+FieldAccess AccessBuilder::ForJSRegExpFlags() {
+ FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset,
+ MaybeHandle<Name>(), Type::Tagged(),
+ MachineType::AnyTagged()};
+ return access;
+}
+
+
+// static
+FieldAccess AccessBuilder::ForJSRegExpSource() {
+ FieldAccess access = {kTaggedBase, JSRegExp::kSourceOffset,
+ MaybeHandle<Name>(), Type::Tagged(),
+ MachineType::AnyTagged()};
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForFixedArrayLength() {
FieldAccess access = {
kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(),
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698