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