| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 314 |
| 315 // static | 315 // static |
| 316 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { | 316 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { |
| 317 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), | 317 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), |
| 318 type, MachineType::AnyTagged()}; | 318 type, MachineType::AnyTagged()}; |
| 319 return access; | 319 return access; |
| 320 } | 320 } |
| 321 | 321 |
| 322 | 322 |
| 323 // static | 323 // static |
| 324 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { | 324 FieldAccess AccessBuilder::ForJSFunctionLiterals() { |
| 325 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, | 325 FieldAccess access = {kTaggedBase, JSFunction::kLiteralsOffset, |
| 326 Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; | 326 Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; |
| 327 return access; | 327 return access; |
| 328 } | 328 } |
| 329 |
| 330 |
| 331 // static |
| 332 FieldAccess AccessBuilder::ForLiteralsTypeFeedbackVector() { |
| 333 FieldAccess access = {kTaggedBase, LiteralsArray::kFeedbackVectorOffset, |
| 334 Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; |
| 335 return access; |
| 336 } |
| 329 | 337 |
| 330 | 338 |
| 331 // static | 339 // static |
| 332 ElementAccess AccessBuilder::ForFixedArrayElement() { | 340 ElementAccess AccessBuilder::ForFixedArrayElement() { |
| 333 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), | 341 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), |
| 334 MachineType::AnyTagged()}; | 342 MachineType::AnyTagged()}; |
| 335 return access; | 343 return access; |
| 336 } | 344 } |
| 337 | 345 |
| 338 | 346 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 // static | 409 // static |
| 402 FieldAccess AccessBuilder::ForStatsCounter() { | 410 FieldAccess AccessBuilder::ForStatsCounter() { |
| 403 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), | 411 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), |
| 404 TypeCache::Get().kInt32, MachineType::Int32()}; | 412 TypeCache::Get().kInt32, MachineType::Int32()}; |
| 405 return access; | 413 return access; |
| 406 } | 414 } |
| 407 | 415 |
| 408 } // namespace compiler | 416 } // namespace compiler |
| 409 } // namespace internal | 417 } // namespace internal |
| 410 } // namespace v8 | 418 } // namespace v8 |
| OLD | NEW |