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

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

Issue 2006613002: [turbofan] Lower intrinsics %_GeneratorGetInput and %_GeneratorGetResumeMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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') | 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 1a9a501e1c37fd619b486038dac1e1307e7bf1bb..c0818ec408be4b29350a4fa67c6b2c469600ad59 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -153,6 +153,14 @@ FieldAccess AccessBuilder::ForJSGeneratorObjectContinuation() {
}
// static
+FieldAccess AccessBuilder::ForJSGeneratorObjectInput() {
+ FieldAccess access = {
+ kTaggedBase, JSGeneratorObject::kInputOffset, Handle<Name>(),
+ Type::Any(), MachineType::AnyTagged(), kFullWriteBarrier};
+ return access;
+}
+
+// static
FieldAccess AccessBuilder::ForJSGeneratorObjectOperandStack() {
FieldAccess access = {kTaggedBase,
JSGeneratorObject::kOperandStackOffset,
@@ -164,6 +172,18 @@ FieldAccess AccessBuilder::ForJSGeneratorObjectOperandStack() {
}
// static
+FieldAccess AccessBuilder::ForJSGeneratorObjectResumeMode() {
+ TypeCache const& type_cache = TypeCache::Get();
+ FieldAccess access = {kTaggedBase,
+ JSGeneratorObject::kResumeModeOffset,
+ Handle<Name>(),
+ type_cache.kSmi,
+ MachineType::AnyTagged(),
+ kNoWriteBarrier};
+ return access;
+}
+
+// static
FieldAccess AccessBuilder::ForJSArrayLength(ElementsKind elements_kind) {
TypeCache const& type_cache = TypeCache::Get();
FieldAccess access = {kTaggedBase,
« 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