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

Unified Diff: src/compiler/access-builder.cc

Issue 1426893002: [turbofan] Optimize JSConvertReceiver if we know something about the receiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js-operator.h » ('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 554d2a3c382e8c05cce65338afc7e042f403b5f5..c314e8046a8a71c6d3334013fa0d18fd880b1b14 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -132,9 +132,17 @@ FieldAccess AccessBuilder::ForStringLength(Zone* zone) {
// static
+FieldAccess AccessBuilder::ForGlobalObjectGlobalProxy() {
+ FieldAccess access = {kTaggedBase, GlobalObject::kGlobalProxyOffset,
+ Handle<Name>(), Type::Receiver(), kMachAnyTagged};
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForGlobalObjectNativeContext() {
FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset,
- Handle<Name>(), Type::Any(), kMachAnyTagged};
+ Handle<Name>(), Type::Internal(), kMachAnyTagged};
return access;
}
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698