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

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

Issue 2302013002: Store the scope info in catch contexts (Closed)
Patch Set: updates Created 4 years, 3 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/ast-graph-builder.cc » ('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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 w = kNoWriteBarrier; 626 w = kNoWriteBarrier;
627 } else if (type->Is(Type::TaggedPointer())) { 627 } else if (type->Is(Type::TaggedPointer())) {
628 r = MachineType::TaggedPointer(); 628 r = MachineType::TaggedPointer();
629 } 629 }
630 FieldAccess access = { 630 FieldAccess access = {
631 kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), type, r, w}; 631 kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), type, r, w};
632 return access; 632 return access;
633 } 633 }
634 634
635 // static 635 // static
636 FieldAccess AccessBuilder::ForContextExtensionScopeInfo() {
637 FieldAccess access = {kTaggedBase,
638 ContextExtension::kScopeInfoOffset,
639 Handle<Name>(),
640 Type::OtherInternal(),
641 MachineType::AnyTagged(),
642 kFullWriteBarrier};
643 return access;
644 }
645
646 // static
647 FieldAccess AccessBuilder::ForContextExtensionExtension() {
648 FieldAccess access = {
649 kTaggedBase, ContextExtension::kExtensionOffset, Handle<Name>(),
650 Type::Any(), MachineType::AnyTagged(), kFullWriteBarrier};
651 return access;
652 }
653
654 // static
636 ElementAccess AccessBuilder::ForFixedArrayElement() { 655 ElementAccess AccessBuilder::ForFixedArrayElement() {
637 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(), 656 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(),
638 MachineType::AnyTagged(), kFullWriteBarrier}; 657 MachineType::AnyTagged(), kFullWriteBarrier};
639 return access; 658 return access;
640 } 659 }
641 660
642 // static 661 // static
643 ElementAccess AccessBuilder::ForFixedArrayElement(ElementsKind kind) { 662 ElementAccess AccessBuilder::ForFixedArrayElement(ElementsKind kind) {
644 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), 663 ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Any(),
645 MachineType::AnyTagged(), kFullWriteBarrier}; 664 MachineType::AnyTagged(), kFullWriteBarrier};
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 } 752 }
734 UNREACHABLE(); 753 UNREACHABLE();
735 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 754 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
736 kNoWriteBarrier}; 755 kNoWriteBarrier};
737 return access; 756 return access;
738 } 757 }
739 758
740 } // namespace compiler 759 } // namespace compiler
741 } // namespace internal 760 } // namespace internal
742 } // namespace v8 761 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698