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

Unified Diff: src/a64/lithium-codegen-a64.cc

Issue 146863002: A64: Fix LWrapReceiver for strict mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index 7040946732f628069a0318d8d553981189084f84..af06bf5b751b789ed0d0a53737749e2f5bda9137 100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -5384,12 +5384,14 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) {
// builtins and strict-mode functions.
Label global_object, done, deopt;
- // Do not transform the receiver to object for strict mode functions.
__ Ldr(temp, FieldMemOperand(function,
JSFunction::kSharedFunctionInfoOffset));
- __ Ldr(temp,
- UntagSmiFieldMemOperand(temp,
- SharedFunctionInfo::kCompilerHintsOffset));
+
+ // CompilerHints is an int32 field. See objects.h.
+ __ Ldr(temp.W(),
+ FieldMemOperand(temp, SharedFunctionInfo::kCompilerHintsOffset));
+
+ // Do not transform the receiver to object for strict mode functions.
__ Tbnz(temp, SharedFunctionInfo::kStrictModeFunction, &done);
// Do not transform the receiver to object for builtins.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698