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

Side by Side Diff: src/compiler/access-builder.cc

Issue 1254623002: Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/types-inl.h" 6 #include "src/types-inl.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 STATIC_ASSERT(FixedArray::kMaxLength <= 1 << 30); 74 STATIC_ASSERT(FixedArray::kMaxLength <= 1 << 30);
75 FieldAccess access = { 75 FieldAccess access = {
76 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), 76 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(),
77 Type::Intersect(Type::Unsigned30(), Type::TaggedSigned()), 77 Type::Intersect(Type::Unsigned30(), Type::TaggedSigned()),
78 kMachAnyTagged}; 78 kMachAnyTagged};
79 return access; 79 return access;
80 } 80 }
81 81
82 82
83 // static 83 // static
84 FieldAccess AccessBuilder::ForExternalArrayPointer() {
85 FieldAccess access = {kTaggedBase, ExternalArray::kExternalPointerOffset,
86 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
87 return access;
88 }
89
90
91 // static
92 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { 84 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() {
93 FieldAccess access = {kTaggedBase, DescriptorArray::kEnumCacheOffset, 85 FieldAccess access = {kTaggedBase, DescriptorArray::kEnumCacheOffset,
94 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged}; 86 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged};
95 return access; 87 return access;
96 } 88 }
97 89
98 90
99 // static 91 // static
100 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { 92 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() {
101 FieldAccess access = {kTaggedBase, 93 FieldAccess access = {kTaggedBase,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // static 268 // static
277 FieldAccess AccessBuilder::ForFrameMarker() { 269 FieldAccess AccessBuilder::ForFrameMarker() {
278 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, 270 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset,
279 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; 271 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged};
280 return access; 272 return access;
281 } 273 }
282 274
283 } // namespace compiler 275 } // namespace compiler
284 } // namespace internal 276 } // namespace internal
285 } // namespace v8 277 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698