Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/compiler/access-builder.cc

Issue 1521953002: [proxies] fix access issue when having proxies on the prototype-chain of global objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ppc code mess Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // static 167 // static
168 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { 168 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() {
169 FieldAccess access = { 169 FieldAccess access = {
170 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, Handle<Name>(), 170 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, Handle<Name>(),
171 Type::TaggedPointer(), MachineType::AnyTagged()}; 171 Type::TaggedPointer(), MachineType::AnyTagged()};
172 return access; 172 return access;
173 } 173 }
174 174
175 175
176 // static 176 // static
177 FieldAccess AccessBuilder::ForMapBitField() {
178 FieldAccess access = {kTaggedBase, Map::kBitFieldOffset, Handle<Name>(),
179 TypeCache::Get().kUint8, MachineType::Uint8()};
180 return access;
181 }
182
183
184 // static
177 FieldAccess AccessBuilder::ForMapBitField3() { 185 FieldAccess AccessBuilder::ForMapBitField3() {
178 FieldAccess access = {kTaggedBase, Map::kBitField3Offset, Handle<Name>(), 186 FieldAccess access = {kTaggedBase, Map::kBitField3Offset, Handle<Name>(),
179 TypeCache::Get().kInt32, MachineType::Int32()}; 187 TypeCache::Get().kInt32, MachineType::Int32()};
180 return access; 188 return access;
181 } 189 }
182 190
183 191
184 // static 192 // static
185 FieldAccess AccessBuilder::ForMapDescriptors() { 193 FieldAccess AccessBuilder::ForMapDescriptors() {
186 FieldAccess access = {kTaggedBase, Map::kDescriptorsOffset, Handle<Name>(), 194 FieldAccess access = {kTaggedBase, Map::kDescriptorsOffset, Handle<Name>(),
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // static 383 // static
376 FieldAccess AccessBuilder::ForStatsCounter() { 384 FieldAccess AccessBuilder::ForStatsCounter() {
377 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), 385 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(),
378 TypeCache::Get().kInt32, MachineType::Int32()}; 386 TypeCache::Get().kInt32, MachineType::Int32()};
379 return access; 387 return access;
380 } 388 }
381 389
382 } // namespace compiler 390 } // namespace compiler
383 } // namespace internal 391 } // namespace internal
384 } // namespace v8 392 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698