| OLD | NEW |
| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 DCHECK_EQ(offset, | 144 DCHECK_EQ(offset, |
| 145 Context::SlotOffset(static_cast<int>(index)) + kHeapObjectTag); | 145 Context::SlotOffset(static_cast<int>(index)) + kHeapObjectTag); |
| 146 FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), | 146 FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), |
| 147 kMachAnyTagged}; | 147 kMachAnyTagged}; |
| 148 return access; | 148 return access; |
| 149 } | 149 } |
| 150 | 150 |
| 151 | 151 |
| 152 // static | 152 // static |
| 153 FieldAccess AccessBuilder::ForPropertyCellValue() { | 153 FieldAccess AccessBuilder::ForPropertyCellValue() { |
| 154 return ForPropertyCellValue(Type::Tagged()); |
| 155 } |
| 156 |
| 157 |
| 158 // static |
| 159 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { |
| 154 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), | 160 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), |
| 155 Type::Any(), kMachAnyTagged}; | 161 type, kMachAnyTagged}; |
| 156 return access; | 162 return access; |
| 157 } | 163 } |
| 158 | 164 |
| 159 | 165 |
| 160 // static | 166 // static |
| 161 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { | 167 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { |
| 162 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, | 168 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, |
| 163 Handle<Name>(), Type::Any(), kMachAnyTagged}; | 169 Handle<Name>(), Type::Any(), kMachAnyTagged}; |
| 164 return access; | 170 return access; |
| 165 } | 171 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // static | 272 // static |
| 267 FieldAccess AccessBuilder::ForFrameMarker() { | 273 FieldAccess AccessBuilder::ForFrameMarker() { |
| 268 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 274 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
| 269 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 275 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
| 270 return access; | 276 return access; |
| 271 } | 277 } |
| 272 | 278 |
| 273 } // namespace compiler | 279 } // namespace compiler |
| 274 } // namespace internal | 280 } // namespace internal |
| 275 } // namespace v8 | 281 } // namespace v8 |
| OLD | NEW |