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

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

Issue 1441573004: [turbofan] Lower JSCreate to an inline allocation in JSTypedLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add unit test. Created 5 years, 1 month 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-typed-lowering.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 ac0be79225a1a8bae269cf712fab5afc09a5a695..3e513c0bd3ebd7a0d40dd67eba9a31f436823edf 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -48,6 +48,16 @@ FieldAccess AccessBuilder::ForJSObjectElements() {
// static
+FieldAccess AccessBuilder::ForJSObjectInObjectProperty(Handle<Map> map,
+ int index) {
+ int const offset = map->GetInObjectPropertyOffset(index);
+ FieldAccess access = {kTaggedBase, offset, MaybeHandle<Name>(),
+ Type::Tagged(), kMachAnyTagged};
+ return access;
+}
+
+
+// static
FieldAccess AccessBuilder::ForJSFunctionContext() {
FieldAccess access = {kTaggedBase, JSFunction::kContextOffset,
MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged};
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698