| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // static | 133 // static |
| 134 FieldAccess AccessBuilder::ForStringLength() { | 134 FieldAccess AccessBuilder::ForStringLength() { |
| 135 FieldAccess access = {kTaggedBase, String::kLengthOffset, Handle<Name>(), | 135 FieldAccess access = {kTaggedBase, String::kLengthOffset, Handle<Name>(), |
| 136 TypeCache::Get().kStringLengthType, kMachAnyTagged}; | 136 TypeCache::Get().kStringLengthType, kMachAnyTagged}; |
| 137 return access; | 137 return access; |
| 138 } | 138 } |
| 139 | 139 |
| 140 | 140 |
| 141 // static | 141 // static |
| 142 FieldAccess AccessBuilder::ForGlobalObjectGlobalProxy() { | 142 FieldAccess AccessBuilder::ForJSGlobalObjectGlobalProxy() { |
| 143 FieldAccess access = {kTaggedBase, GlobalObject::kGlobalProxyOffset, | 143 FieldAccess access = {kTaggedBase, JSGlobalObject::kGlobalProxyOffset, |
| 144 Handle<Name>(), Type::Receiver(), kMachAnyTagged}; | 144 Handle<Name>(), Type::Receiver(), kMachAnyTagged}; |
| 145 return access; | 145 return access; |
| 146 } | 146 } |
| 147 | 147 |
| 148 | 148 |
| 149 // static | 149 // static |
| 150 FieldAccess AccessBuilder::ForGlobalObjectNativeContext() { | 150 FieldAccess AccessBuilder::ForJSGlobalObjectNativeContext() { |
| 151 FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset, | 151 FieldAccess access = {kTaggedBase, JSGlobalObject::kNativeContextOffset, |
| 152 Handle<Name>(), Type::Internal(), kMachAnyTagged}; | 152 Handle<Name>(), Type::Internal(), kMachAnyTagged}; |
| 153 return access; | 153 return access; |
| 154 } | 154 } |
| 155 | 155 |
| 156 | 156 |
| 157 // static | 157 // static |
| 158 FieldAccess AccessBuilder::ForValue() { | 158 FieldAccess AccessBuilder::ForValue() { |
| 159 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), | 159 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), |
| 160 Type::Any(), kMachAnyTagged}; | 160 Type::Any(), kMachAnyTagged}; |
| 161 return access; | 161 return access; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // static | 325 // static |
| 326 FieldAccess AccessBuilder::ForFrameMarker() { | 326 FieldAccess AccessBuilder::ForFrameMarker() { |
| 327 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 327 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
| 328 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 328 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
| 329 return access; | 329 return access; |
| 330 } | 330 } |
| 331 | 331 |
| 332 } // namespace compiler | 332 } // namespace compiler |
| 333 } // namespace internal | 333 } // namespace internal |
| 334 } // namespace v8 | 334 } // namespace v8 |
| OLD | NEW |