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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), | 143 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), |
144 kMachUint8}; | 144 kMachUint8}; |
145 case String::TWO_BYTE_ENCODING: | 145 case String::TWO_BYTE_ENCODING: |
146 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), | 146 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), |
147 kMachUint16}; | 147 kMachUint16}; |
148 } | 148 } |
149 UNREACHABLE(); | 149 UNREACHABLE(); |
150 return {kUntaggedBase, 0, Type::None(), kMachNone}; | 150 return {kUntaggedBase, 0, Type::None(), kMachNone}; |
151 } | 151 } |
152 | 152 |
| 153 |
| 154 // static |
| 155 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { |
| 156 return {kTaggedBase, JSFunction::kSharedFunctionInfoOffset, Handle<Name>(), |
| 157 Type::Any(), kMachAnyTagged}; |
| 158 } |
| 159 |
| 160 |
| 161 // static |
| 162 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { |
| 163 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, |
| 164 Handle<Name>(), Type::Any(), kMachAnyTagged}; |
| 165 } |
| 166 |
153 } // namespace compiler | 167 } // namespace compiler |
154 } // namespace internal | 168 } // namespace internal |
155 } // namespace v8 | 169 } // namespace v8 |
OLD | NEW |