| 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/heap/heap.h" | 9 #include "src/heap/heap.h" |
| 10 #include "src/type-cache.h" | 10 #include "src/type-cache.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // static | 122 // static |
| 123 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { | 123 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { |
| 124 FieldAccess access = { | 124 FieldAccess access = { |
| 125 kTaggedBase, JSDate::kValueOffset + index * kPointerSize, | 125 kTaggedBase, JSDate::kValueOffset + index * kPointerSize, |
| 126 MaybeHandle<Name>(), Type::Number(), MachineType::AnyTagged()}; | 126 MaybeHandle<Name>(), Type::Number(), MachineType::AnyTagged()}; |
| 127 return access; | 127 return access; |
| 128 } | 128 } |
| 129 | 129 |
| 130 | 130 |
| 131 // static | 131 // static |
| 132 FieldAccess AccessBuilder::ForJSRegExpFlags() { |
| 133 FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset, |
| 134 MaybeHandle<Name>(), Type::Tagged(), |
| 135 MachineType::AnyTagged()}; |
| 136 return access; |
| 137 } |
| 138 |
| 139 |
| 140 // static |
| 141 FieldAccess AccessBuilder::ForJSRegExpSource() { |
| 142 FieldAccess access = {kTaggedBase, JSRegExp::kSourceOffset, |
| 143 MaybeHandle<Name>(), Type::Tagged(), |
| 144 MachineType::AnyTagged()}; |
| 145 return access; |
| 146 } |
| 147 |
| 148 |
| 149 // static |
| 132 FieldAccess AccessBuilder::ForFixedArrayLength() { | 150 FieldAccess AccessBuilder::ForFixedArrayLength() { |
| 133 FieldAccess access = { | 151 FieldAccess access = { |
| 134 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), | 152 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), |
| 135 TypeCache::Get().kFixedArrayLengthType, MachineType::AnyTagged()}; | 153 TypeCache::Get().kFixedArrayLengthType, MachineType::AnyTagged()}; |
| 136 return access; | 154 return access; |
| 137 } | 155 } |
| 138 | 156 |
| 139 | 157 |
| 140 // static | 158 // static |
| 141 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { | 159 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // static | 375 // static |
| 358 FieldAccess AccessBuilder::ForStatsCounter() { | 376 FieldAccess AccessBuilder::ForStatsCounter() { |
| 359 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), | 377 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), |
| 360 TypeCache::Get().kInt32, MachineType::Int32()}; | 378 TypeCache::Get().kInt32, MachineType::Int32()}; |
| 361 return access; | 379 return access; |
| 362 } | 380 } |
| 363 | 381 |
| 364 } // namespace compiler | 382 } // namespace compiler |
| 365 } // namespace internal | 383 } // namespace internal |
| 366 } // namespace v8 | 384 } // namespace v8 |
| OLD | NEW |