| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 } | 354 } |
| 355 | 355 |
| 356 | 356 |
| 357 // static | 357 // static |
| 358 FieldAccess AccessBuilder::ForStatsCounter() { | 358 FieldAccess AccessBuilder::ForStatsCounter() { |
| 359 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), | 359 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), |
| 360 TypeCache::Get().kInt32, MachineType::Int32()}; | 360 TypeCache::Get().kInt32, MachineType::Int32()}; |
| 361 return access; | 361 return access; |
| 362 } | 362 } |
| 363 | 363 |
| 364 | |
| 365 // static | |
| 366 FieldAccess AccessBuilder::ForFrameCallerFramePtr() { | |
| 367 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kCallerFPOffset, | |
| 368 MaybeHandle<Name>(), Type::Internal(), | |
| 369 MachineType::Pointer()}; | |
| 370 return access; | |
| 371 } | |
| 372 | |
| 373 | |
| 374 // static | |
| 375 FieldAccess AccessBuilder::ForFrameMarker() { | |
| 376 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | |
| 377 MaybeHandle<Name>(), Type::Tagged(), | |
| 378 MachineType::AnyTagged()}; | |
| 379 return access; | |
| 380 } | |
| 381 | |
| 382 } // namespace compiler | 364 } // namespace compiler |
| 383 } // namespace internal | 365 } // namespace internal |
| 384 } // namespace v8 | 366 } // namespace v8 |
| OLD | NEW |