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

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

Issue 1451143005: [turbofan] Decouple inlining and native context specialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove misleading comment about MaybeHandle. Created 5 years, 1 month 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/access-info.cc » ('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 df8cf5e15c44079878404082f7acbf87336b7f2c..bf9e694ce71748ea1c74dded4febe21a306970fe 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -74,6 +74,20 @@ FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() {
// static
+FieldAccess AccessBuilder::ForJSArrayLength(ElementsKind elements_kind) {
+ TypeCache const& type_cache = TypeCache::Get();
+ FieldAccess access = {kTaggedBase, JSArray::kLengthOffset, Handle<Name>(),
+ type_cache.kJSArrayLengthType, kMachAnyTagged};
+ if (IsFastDoubleElementsKind(elements_kind)) {
+ access.type = type_cache.kFixedDoubleArrayLengthType;
+ } else if (IsFastElementsKind(elements_kind)) {
+ access.type = type_cache.kFixedArrayLengthType;
+ }
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() {
FieldAccess access = {kTaggedBase, JSArrayBuffer::kBackingStoreOffset,
MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/access-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698