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

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

Issue 1412113004: [turbofan] Lower unmapped arguments objects in inline frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 2 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-typed-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 146279e94dbf3f092268de7feb045854899630d5..76e8b0688e644f843c4d181c1daed944b826bd3a 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -131,6 +131,14 @@ FieldAccess AccessBuilder::ForStringLength(Zone* zone) {
// static
+FieldAccess AccessBuilder::ForGlobalObjectNativeContext() {
+ FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset,
+ Handle<Name>(), Type::Any(), kMachAnyTagged};
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForValue() {
FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(),
Type::Any(), kMachAnyTagged};
@@ -139,6 +147,25 @@ FieldAccess AccessBuilder::ForValue() {
// static
+FieldAccess AccessBuilder::ForArgumentsLength() {
+ int offset =
+ JSObject::kHeaderSize + Heap::kArgumentsLengthIndex * kPointerSize;
+ FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(),
+ kMachAnyTagged};
+ return access;
+}
+
+
+// static
+FieldAccess AccessBuilder::ForFixedArraySlot(size_t index) {
+ int offset = FixedArray::OffsetOfElementAt(static_cast<int>(index));
+ FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(),
+ kMachAnyTagged};
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForContextSlot(size_t index) {
int offset = Context::kHeaderSize + static_cast<int>(index) * kPointerSize;
DCHECK_EQ(offset,
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698