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 | 6 |
7 #include "src/compiler/type-cache.h" | 7 #include "src/compiler/type-cache.h" |
8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 #include "src/handles-inl.h" | 10 #include "src/handles-inl.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 FieldAccess AccessBuilder::ForJSFunctionNextFunctionLink() { | 164 FieldAccess AccessBuilder::ForJSFunctionNextFunctionLink() { |
165 FieldAccess access = { | 165 FieldAccess access = { |
166 kTaggedBase, JSFunction::kNextFunctionLinkOffset, | 166 kTaggedBase, JSFunction::kNextFunctionLinkOffset, |
167 Handle<Name>(), MaybeHandle<Map>(), | 167 Handle<Name>(), MaybeHandle<Map>(), |
168 Type::Any(), MachineType::AnyTagged(), | 168 Type::Any(), MachineType::AnyTagged(), |
169 kPointerWriteBarrier}; | 169 kPointerWriteBarrier}; |
170 return access; | 170 return access; |
171 } | 171 } |
172 | 172 |
173 // static | 173 // static |
| 174 FieldAccess AccessBuilder::ForJSBoundFunctionBoundTargetFunction() { |
| 175 FieldAccess access = { |
| 176 kTaggedBase, JSBoundFunction::kBoundTargetFunctionOffset, |
| 177 Handle<Name>(), MaybeHandle<Map>(), |
| 178 Type::Callable(), MachineType::TaggedPointer(), |
| 179 kPointerWriteBarrier}; |
| 180 return access; |
| 181 } |
| 182 |
| 183 // static |
| 184 FieldAccess AccessBuilder::ForJSBoundFunctionBoundThis() { |
| 185 FieldAccess access = {kTaggedBase, JSBoundFunction::kBoundThisOffset, |
| 186 Handle<Name>(), MaybeHandle<Map>(), |
| 187 Type::NonInternal(), MachineType::AnyTagged(), |
| 188 kFullWriteBarrier}; |
| 189 return access; |
| 190 } |
| 191 |
| 192 // static |
| 193 FieldAccess AccessBuilder::ForJSBoundFunctionBoundArguments() { |
| 194 FieldAccess access = { |
| 195 kTaggedBase, JSBoundFunction::kBoundArgumentsOffset, |
| 196 Handle<Name>(), MaybeHandle<Map>(), |
| 197 Type::Internal(), MachineType::TaggedPointer(), |
| 198 kPointerWriteBarrier}; |
| 199 return access; |
| 200 } |
| 201 |
| 202 // static |
174 FieldAccess AccessBuilder::ForJSGeneratorObjectContext() { | 203 FieldAccess AccessBuilder::ForJSGeneratorObjectContext() { |
175 FieldAccess access = {kTaggedBase, JSGeneratorObject::kContextOffset, | 204 FieldAccess access = {kTaggedBase, JSGeneratorObject::kContextOffset, |
176 Handle<Name>(), MaybeHandle<Map>(), | 205 Handle<Name>(), MaybeHandle<Map>(), |
177 Type::Internal(), MachineType::TaggedPointer(), | 206 Type::Internal(), MachineType::TaggedPointer(), |
178 kPointerWriteBarrier}; | 207 kPointerWriteBarrier}; |
179 return access; | 208 return access; |
180 } | 209 } |
181 | 210 |
182 // static | 211 // static |
183 FieldAccess AccessBuilder::ForJSGeneratorObjectFunction() { | 212 FieldAccess AccessBuilder::ForJSGeneratorObjectFunction() { |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 MaybeHandle<Map>(), | 1016 MaybeHandle<Map>(), |
988 Type::SignedSmall(), | 1017 Type::SignedSmall(), |
989 MachineType::TaggedSigned(), | 1018 MachineType::TaggedSigned(), |
990 kNoWriteBarrier}; | 1019 kNoWriteBarrier}; |
991 return access; | 1020 return access; |
992 } | 1021 } |
993 | 1022 |
994 } // namespace compiler | 1023 } // namespace compiler |
995 } // namespace internal | 1024 } // namespace internal |
996 } // namespace v8 | 1025 } // namespace v8 |
OLD | NEW |