| 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/contexts.h" | 7 #include "src/contexts.h" |
| 8 #include "src/frames.h" | 8 #include "src/frames.h" |
| 9 #include "src/handles-inl.h" | 9 #include "src/handles-inl.h" |
| 10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 FieldAccess access = {kTaggedBase, | 145 FieldAccess access = {kTaggedBase, |
| 146 JSGeneratorObject::kContinuationOffset, | 146 JSGeneratorObject::kContinuationOffset, |
| 147 Handle<Name>(), | 147 Handle<Name>(), |
| 148 type_cache.kSmi, | 148 type_cache.kSmi, |
| 149 MachineType::AnyTagged(), | 149 MachineType::AnyTagged(), |
| 150 kNoWriteBarrier}; | 150 kNoWriteBarrier}; |
| 151 return access; | 151 return access; |
| 152 } | 152 } |
| 153 | 153 |
| 154 // static | 154 // static |
| 155 FieldAccess AccessBuilder::ForJSGeneratorObjectInput() { | 155 FieldAccess AccessBuilder::ForJSGeneratorObjectInputOrDebugPos() { |
| 156 FieldAccess access = { | 156 FieldAccess access = {kTaggedBase, |
| 157 kTaggedBase, JSGeneratorObject::kInputOffset, Handle<Name>(), | 157 JSGeneratorObject::kInputOrDebugPosOffset, |
| 158 Type::Any(), MachineType::AnyTagged(), kFullWriteBarrier}; | 158 Handle<Name>(), |
| 159 Type::Any(), |
| 160 MachineType::AnyTagged(), |
| 161 kFullWriteBarrier}; |
| 159 return access; | 162 return access; |
| 160 } | 163 } |
| 161 | 164 |
| 162 // static | 165 // static |
| 163 FieldAccess AccessBuilder::ForJSGeneratorObjectOperandStack() { | 166 FieldAccess AccessBuilder::ForJSGeneratorObjectOperandStack() { |
| 164 FieldAccess access = {kTaggedBase, | 167 FieldAccess access = {kTaggedBase, |
| 165 JSGeneratorObject::kOperandStackOffset, | 168 JSGeneratorObject::kOperandStackOffset, |
| 166 Handle<Name>(), | 169 Handle<Name>(), |
| 167 Type::Internal(), | 170 Type::Internal(), |
| 168 MachineType::AnyTagged(), | 171 MachineType::AnyTagged(), |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 } | 550 } |
| 548 UNREACHABLE(); | 551 UNREACHABLE(); |
| 549 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 552 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
| 550 kNoWriteBarrier}; | 553 kNoWriteBarrier}; |
| 551 return access; | 554 return access; |
| 552 } | 555 } |
| 553 | 556 |
| 554 } // namespace compiler | 557 } // namespace compiler |
| 555 } // namespace internal | 558 } // namespace internal |
| 556 } // namespace v8 | 559 } // namespace v8 |
| OLD | NEW |