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

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

Issue 2763533002: [WIP] JSForInLowering and JSForInHasOwnProperty.
Patch Set: Hack around the issue with indices not being available always. Created 3 years, 9 months 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
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/effect-control-linearizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // static 415 // static
416 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { 416 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() {
417 FieldAccess access = { 417 FieldAccess access = {
418 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, 418 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset,
419 Handle<Name>(), MaybeHandle<Map>(), 419 Handle<Name>(), MaybeHandle<Map>(),
420 Type::OtherInternal(), MachineType::TaggedPointer(), 420 Type::OtherInternal(), MachineType::TaggedPointer(),
421 kPointerWriteBarrier}; 421 kPointerWriteBarrier};
422 return access; 422 return access;
423 } 423 }
424 424
425 // static
426 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeIndicesCache() {
427 // TODO(bmeurer): Weird hack!
428 FieldAccess access = {
429 kTaggedBase, DescriptorArray::kEnumCacheBridgeIndicesCacheOffset,
430 Handle<Name>(), MaybeHandle<Map>(),
431 Type::Any(), MachineType::AnyTagged(),
432 kFullWriteBarrier};
433 return access;
434 }
425 435
426 // static 436 // static
427 FieldAccess AccessBuilder::ForMapBitField() { 437 FieldAccess AccessBuilder::ForMapBitField() {
428 FieldAccess access = { 438 FieldAccess access = {
429 kTaggedBase, Map::kBitFieldOffset, Handle<Name>(), 439 kTaggedBase, Map::kBitFieldOffset, Handle<Name>(),
430 MaybeHandle<Map>(), TypeCache::Get().kUint8, MachineType::Uint8(), 440 MaybeHandle<Map>(), TypeCache::Get().kUint8, MachineType::Uint8(),
431 kNoWriteBarrier}; 441 kNoWriteBarrier};
432 return access; 442 return access;
433 } 443 }
434 444
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 MaybeHandle<Map>(), 948 MaybeHandle<Map>(),
939 Type::SignedSmall(), 949 Type::SignedSmall(),
940 MachineType::TaggedSigned(), 950 MachineType::TaggedSigned(),
941 kNoWriteBarrier}; 951 kNoWriteBarrier};
942 return access; 952 return access;
943 } 953 }
944 954
945 } // namespace compiler 955 } // namespace compiler
946 } // namespace internal 956 } // namespace internal
947 } // namespace v8 957 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/effect-control-linearizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698