| 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/compiler/type-cache.h" | 7 #include "src/compiler/type-cache.h" |
| 8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
| 9 #include "src/frames.h" | 9 #include "src/frames.h" |
| 10 #include "src/handles-inl.h" | 10 #include "src/handles-inl.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { | 136 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { |
| 137 FieldAccess access = { | 137 FieldAccess access = { |
| 138 kTaggedBase, JSFunction::kSharedFunctionInfoOffset, | 138 kTaggedBase, JSFunction::kSharedFunctionInfoOffset, |
| 139 Handle<Name>(), MaybeHandle<Map>(), | 139 Handle<Name>(), MaybeHandle<Map>(), |
| 140 Type::OtherInternal(), MachineType::TaggedPointer(), | 140 Type::OtherInternal(), MachineType::TaggedPointer(), |
| 141 kPointerWriteBarrier}; | 141 kPointerWriteBarrier}; |
| 142 return access; | 142 return access; |
| 143 } | 143 } |
| 144 | 144 |
| 145 // static | 145 // static |
| 146 FieldAccess AccessBuilder::ForJSFunctionLiterals() { | 146 FieldAccess AccessBuilder::ForJSFunctionFeedbackVector() { |
| 147 FieldAccess access = {kTaggedBase, JSFunction::kLiteralsOffset, | 147 FieldAccess access = {kTaggedBase, JSFunction::kFeedbackVectorOffset, |
| 148 Handle<Name>(), MaybeHandle<Map>(), | 148 Handle<Name>(), MaybeHandle<Map>(), |
| 149 Type::Internal(), MachineType::TaggedPointer(), | 149 Type::Internal(), MachineType::TaggedPointer(), |
| 150 kPointerWriteBarrier}; | 150 kPointerWriteBarrier}; |
| 151 return access; | 151 return access; |
| 152 } | 152 } |
| 153 | 153 |
| 154 // static | 154 // static |
| 155 FieldAccess AccessBuilder::ForJSFunctionCodeEntry() { | 155 FieldAccess AccessBuilder::ForJSFunctionCodeEntry() { |
| 156 FieldAccess access = {kTaggedBase, JSFunction::kCodeEntryOffset, | 156 FieldAccess access = {kTaggedBase, JSFunction::kCodeEntryOffset, |
| 157 Handle<Name>(), MaybeHandle<Map>(), | 157 Handle<Name>(), MaybeHandle<Map>(), |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 MaybeHandle<Map>(), | 938 MaybeHandle<Map>(), |
| 939 Type::SignedSmall(), | 939 Type::SignedSmall(), |
| 940 MachineType::TaggedSigned(), | 940 MachineType::TaggedSigned(), |
| 941 kNoWriteBarrier}; | 941 kNoWriteBarrier}; |
| 942 return access; | 942 return access; |
| 943 } | 943 } |
| 944 | 944 |
| 945 } // namespace compiler | 945 } // namespace compiler |
| 946 } // namespace internal | 946 } // namespace internal |
| 947 } // namespace v8 | 947 } // namespace v8 |
| OLD | NEW |