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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/access-builder.cc
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc
index be1396b28f97508b18c0074c66b75b6a8e9e5648..1710314fd1a759c006b61e9da08e910adca2bd99 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -633,6 +633,25 @@ FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) {
}
// static
+FieldAccess AccessBuilder::ForContextExtensionScopeInfo() {
+ FieldAccess access = {kTaggedBase,
+ ContextExtension::kScopeInfoOffset,
+ Handle<Name>(),
+ Type::OtherInternal(),
+ MachineType::AnyTagged(),
+ kFullWriteBarrier};
+ return access;
+}
+
+// static
+FieldAccess AccessBuilder::ForContextExtensionExtension() {
+ FieldAccess access = {
+ kTaggedBase, ContextExtension::kExtensionOffset, Handle<Name>(),
+ Type::Any(), MachineType::AnyTagged(), kFullWriteBarrier};
+ return access;
+}
+
+// static
ElementAccess AccessBuilder::ForFixedArrayElement() {
ElementAccess access = {kTaggedBase, FixedArray::kHeaderSize, Type::Tagged(),
MachineType::AnyTagged(), kFullWriteBarrier};
« 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