Reviewers: baptiste.afsa1,

Description:
A64: Fix LWrapReceiver for strict mode

Make LWrapReceiver read the compiler hints fields as int32 and read the correct
strict mode bits.

BUG=none

Please review this at https://codereview.chromium.org/146863002/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+6, -4 lines):
  M src/a64/lithium-codegen-a64.cc


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.


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to