| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 FieldAccess AccessBuilder::ForJSGeneratorObjectInputOrDebugPos() { | 166 FieldAccess AccessBuilder::ForJSGeneratorObjectInputOrDebugPos() { |
| 167 FieldAccess access = { | 167 FieldAccess access = { |
| 168 kTaggedBase, JSGeneratorObject::kInputOrDebugPosOffset, | 168 kTaggedBase, JSGeneratorObject::kInputOrDebugPosOffset, |
| 169 Handle<Name>(), MaybeHandle<Map>(), | 169 Handle<Name>(), MaybeHandle<Map>(), |
| 170 Type::NonInternal(), MachineType::AnyTagged(), | 170 Type::NonInternal(), MachineType::AnyTagged(), |
| 171 kFullWriteBarrier}; | 171 kFullWriteBarrier}; |
| 172 return access; | 172 return access; |
| 173 } | 173 } |
| 174 | 174 |
| 175 // static | 175 // static |
| 176 FieldAccess AccessBuilder::ForJSAsyncGeneratorObjectAwaitInput() { |
| 177 FieldAccess access = { |
| 178 kTaggedBase, JSAsyncGeneratorObject::kAwaitInputOffset, |
| 179 Handle<Name>(), MaybeHandle<Map>(), |
| 180 Type::NonInternal(), MachineType::AnyTagged(), |
| 181 kFullWriteBarrier}; |
| 182 return access; |
| 183 } |
| 184 |
| 185 // static |
| 176 FieldAccess AccessBuilder::ForJSGeneratorObjectRegisterFile() { | 186 FieldAccess AccessBuilder::ForJSGeneratorObjectRegisterFile() { |
| 177 FieldAccess access = { | 187 FieldAccess access = { |
| 178 kTaggedBase, JSGeneratorObject::kRegisterFileOffset, | 188 kTaggedBase, JSGeneratorObject::kRegisterFileOffset, |
| 179 Handle<Name>(), MaybeHandle<Map>(), | 189 Handle<Name>(), MaybeHandle<Map>(), |
| 180 Type::Internal(), MachineType::AnyTagged(), | 190 Type::Internal(), MachineType::AnyTagged(), |
| 181 kPointerWriteBarrier}; | 191 kPointerWriteBarrier}; |
| 182 return access; | 192 return access; |
| 183 } | 193 } |
| 184 | 194 |
| 185 // static | 195 // static |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 } | 858 } |
| 849 UNREACHABLE(); | 859 UNREACHABLE(); |
| 850 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 860 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
| 851 kNoWriteBarrier}; | 861 kNoWriteBarrier}; |
| 852 return access; | 862 return access; |
| 853 } | 863 } |
| 854 | 864 |
| 855 } // namespace compiler | 865 } // namespace compiler |
| 856 } // namespace internal | 866 } // namespace internal |
| 857 } // namespace v8 | 867 } // namespace v8 |
| OLD | NEW |