Revision: 18833
Author: [email protected]
Date: Fri Jan 24 15:42:18 2014 UTC
Log: A64: Fix LWrapReceiver for strict mode
Make LWrapReceiver read the compiler hints fields as int32 and read the
correct
strict mode bits.
BUG=none
[email protected]
Review URL: https://codereview.chromium.org/146863002
http://code.google.com/p/v8/source/detail?r=18833
Modified:
/branches/experimental/a64/src/a64/lithium-codegen-a64.cc
=======================================
--- /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Fri Jan 24
14:09:40 2014 UTC
+++ /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Fri Jan 24
15:42:18 2014 UTC
@@ -5384,12 +5384,14 @@
// 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.