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

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

Issue 1155313008: [turbofan] First steps towards optimizing for-in loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/graph.h » ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 53
54 // static 54 // static
55 FieldAccess AccessBuilder::ForExternalArrayPointer() { 55 FieldAccess AccessBuilder::ForExternalArrayPointer() {
56 return {kTaggedBase, ExternalArray::kExternalPointerOffset, 56 return {kTaggedBase, ExternalArray::kExternalPointerOffset,
57 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; 57 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
58 } 58 }
59 59
60 60
61 // static 61 // static
62 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() {
63 return {kTaggedBase, DescriptorArray::kEnumCacheOffset, Handle<Name>(),
64 Type::TaggedPointer(), kMachAnyTagged};
65 }
66
67
68 // static
69 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() {
70 return {kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset,
71 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged};
72 }
73
74
75 // static
76 FieldAccess AccessBuilder::ForMapBitField3() {
77 return {kTaggedBase, Map::kBitField3Offset, Handle<Name>(),
78 Type::UntaggedUnsigned32(), kMachUint32};
79 }
80
81
82 // static
83 FieldAccess AccessBuilder::ForMapDescriptors() {
84 return {kTaggedBase, Map::kDescriptorsOffset, Handle<Name>(),
85 Type::TaggedPointer(), kMachAnyTagged};
86 }
87
88
89 // static
62 FieldAccess AccessBuilder::ForMapInstanceType() { 90 FieldAccess AccessBuilder::ForMapInstanceType() {
63 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), 91 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(),
64 Type::UntaggedUnsigned8(), kMachUint8}; 92 Type::UntaggedUnsigned8(), kMachUint8};
65 } 93 }
66 94
67 95
68 // static 96 // static
69 FieldAccess AccessBuilder::ForStringLength(Zone* zone) { 97 FieldAccess AccessBuilder::ForStringLength(Zone* zone) {
70 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), 98 return {kTaggedBase, String::kLengthOffset, Handle<Name>(),
71 Type::Range(0, String::kMaxLength, zone), kMachAnyTagged}; 99 Type::Range(0, String::kMaxLength, zone), kMachAnyTagged};
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 188
161 // static 189 // static
162 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { 190 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() {
163 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, 191 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset,
164 Handle<Name>(), Type::Any(), kMachAnyTagged}; 192 Handle<Name>(), Type::Any(), kMachAnyTagged};
165 } 193 }
166 194
167 } // namespace compiler 195 } // namespace compiler
168 } // namespace internal 196 } // namespace internal
169 } // namespace v8 197 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698