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

Unified Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 1414883011: Remove receiver conversion from function prologue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/x64/lithium-codegen-x64.cc
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
index a7b4a5c7059038864419146788405797076b23b2..42eb097e53942799c296f6dbbf1d3ec4933ad3ad 100644
--- a/src/crankshaft/x64/lithium-codegen-x64.cc
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc
@@ -125,24 +125,6 @@ bool LCodeGen::GeneratePrologue() {
__ int3();
}
#endif
-
- // Sloppy mode functions need to replace the receiver with the global proxy
- // when called as functions (without an explicit receiver object).
- if (info()->MustReplaceUndefinedReceiverWithGlobalProxy()) {
- Label ok;
- StackArgumentsAccessor args(rsp, scope()->num_parameters());
- __ movp(rcx, args.GetReceiverOperand());
-
- __ CompareRoot(rcx, Heap::kUndefinedValueRootIndex);
- __ j(not_equal, &ok, Label::kNear);
-
- __ movp(rcx, GlobalObjectOperand());
- __ movp(rcx, FieldOperand(rcx, JSGlobalObject::kGlobalProxyOffset));
-
- __ movp(args.GetReceiverOperand(), rcx);
-
- __ bind(&ok);
- }
}
info()->set_prologue_offset(masm_->pc_offset());
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698